Link to home
Start Free TrialLog in
Avatar of J N
J N

asked on

Change php language output

Hi,

Php has the datetimezone function. if i was to loop through it. The timezones would be outputted into english

$tzlist = DateTimeZone::listIdentifiers(DateTimeZone::ALL);

foreach($tzlist as $t(
    echo $t."</br>";
}

Open in new window


Is there a way to change the output to french/spanish/german?

Essentially, im worried about localization for countries/states and timezones. Initially, i havent worried about these and just printed these in english.

im curious if i will need to create separate db create a reference to particular countries likely using region/country code and then use that as an index among the db tables

then create multiple country/states/timezones in different languages documents that i would include when needed

or is there a simple way to accomplish this

i would not need to include the countries ./ timezones / state files in every page

Also, timezones should i just rely on the users browsers via js to convert database datetime vars stored in UTC standard into local time? if so then i dont need to worry about the timezones above

any help is greatly appreciated!
ASKER CERTIFIED SOLUTION
Avatar of Florian Lenschow
Florian Lenschow

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial