[Project_owners] Localization

Laeb (hotmail) laebcontact at hotmail.com
Mon Nov 3 21:12:36 EST 2003


Hi,

Does anyone know how to use the "getApplicationLocale" function to get the
string of the locale language (like 'en-US') used by Mozilla's UI ?

I've tried this:

var localeService = Components.classes[
"@mozilla.org/intl/nslocaleservice;1"].getServiceComponents.interfaces.nsILo
caleService);
var locale=localeService.GetApplicationLocale();

...but, this doen't give me 'en-US' !

Is there another method ?

Thanks.
Laeb.


More information about the Project_owners mailing list