[Project_owners] Localization

Biju G C bijumaillist at yahoo.com
Tue Nov 4 02:54:24 EST 2003


 --- "Laeb (hotmail)" <laebcontact at hotmail.com> wrote: 
> 
> var localeService = Components.classes[
> "@mozilla.org/intl/nslocaleservice;1"].getServiceComponents.interfaces.nsILo
> caleService);
> var locale=localeService.GetApplicationLocale();
> 

try
var locale  = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
         .getService( Components.interfaces.nsILocaleService )
         .GetApplicationLocale()
         .GetCategory( "NSILOCALE_MESSAGES" );

alert( locale );


you were missing "(" in getServiceComponents
and "GetCategory()"

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


More information about the Project_owners mailing list