is a nightmare. I've just spent some time experimenting under MacOS  
and Windows; MacOS names the locales in a standard way and seems to  
support all of them; Windows uses its own locale names (French_France. 
1252 instead of fr_FR.ISO-8859-1 for instance) and seems to only  
support the locale set for the current user...

So for date/time localization, I suggest the following:

* Try to setlocale() using the user's prefered language
* If it fails, fallback to the default system locale (maybe displaying  
a warning dialog with a "don't show this anymore" checkbox)

I'm going to try this out.

Reply via email to