Re: installation localization

Rod Whiteley <[email protected]> Wed, 10 Nov 2004 17:05:49 +0000
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Olivier Sirven wrote:
> Any idea to determine which is the locale configured by default for a user

In JavaScript?  Something like this, perhaps:

var here = Components
   .classes["@mozilla.org/intl/nslocaleservice;1"]
   .getService(Components.interfaces.nsILocaleService)
   .getApplicationLocale()
   .getCategory("NSILOCALE_CTYPE");