Search code examples
pythonlocalizationinternationalizationtimezonepytz

Time Zone names in local language


Is there a method to retrieve time zone names in another language?

In Python, if I do something like this:

for tz in pytz.common_timezones_set :
 print tz

The result is in English, but what if I would like to have it in Spanish or Arabic?


Solution

  • No, unfortunately there are no translations for the timezone names. The names are part of the Olson timezone database (not part of Python or pytz). New ones are added from time to time, so any potential translation project would have to stay in sync with that database.