using locales

garykpdx at hotmail.com garykpdx at hotmail.com
Wed Apr 20 12:18:38 EDT 2005


Is there some sort of tutorial on locales or the locale module?

I can't seem to find a list showing all possible locales. I made 'en'
work alright, but when I tried 'de' or 'de_DE' or 'es_ES', etc. it said
that those were not valid locaes. Worst of all, when I tried 'es' it
said that this was estonian?! Obviously, this is not what ISO 639 says.
'es' should be Spanish, and Estonian should be 'et.

Anyway, I'd love to have a method called get_available_locales to tell
me what I can use on my machine, or something like that.

Can anyone tell me how I *do* get these names?

Thanks




More information about the Python-list mailing list