Re: obtaining list of available locales
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: obtaining list of available locales

From: Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
Date: Tue Dec 20 2005 - 17:44:16 CET

billposer@alum.mit.edu wrote:
> Good idea, but a look at the msgcat code reveals that it just looks up
> the key "locale" in the registry and tries to convert the result into
> something recognizable outside of the Microsoft world. (The registry
> evidently doesn't use the ISO codes.) There's nothing that reveals how
> to find out what locales are known to the system.

There is no limit of possible locales since locale names are recursively
structured and child locales inherit most things from their parents. If
you want, you could have a locale:
   en_US_Yankee_MA_Cambridge_MIT_Hackish

Would any standard enumeration of locales include such a baroque thing?
I doubt it!

Donal.
Received on Fri Dec 23 19:02:33 2005