Re: installation localization
Olivier Sirven <[email protected]> Wed, 10 Nov 2004 18:40:06 +0100
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Rod Whiteley a écrit:
> var here = Components
> .classes["@mozilla.org/intl/nslocaleservice;1"]
> .getService(Components.interfaces.nsILocaleService)
> .getApplicationLocale()
> .getCategory("NSILOCALE_CTYPE");
Correction: it works in javascript console of mozilla but when i am trying
to use it in an installation script (install.js) it doesn't: the
"Components" object is undefined.....any idea ?
--
Olivier Sirven