[Project_owners] Getting OS language in FF

massey massey at stlouis-shopper.com
Sun Sep 9 08:29:16 PDT 2007


To get the environment variables you could use nsIEnvironment:
     var userEnvironment = 
Components.classes["@mozilla.org/process/environment;1"]
                                                               
.getService(Components.interfaces.nsIEnvironment);
     var envVar = userEnvironment.get("LANG");


Jim

eric.jung at yahoo.com wrote:

> navigator.platform was directed at Gary Johnson.
>
>
> ----- Original Message ----
> From: ady <ady at adylevy.com>
> To: Mozdev Project Owners List <project_owners at mozdev.org>
> Sent: Saturday, September 8, 2007 3:51:46 PM
> Subject: Re: [Project_owners] Getting OS language in FF
>
> navigator.language gives the browsers language, but i'm looking for the
> os language (can be diff)
> and navigator.platform gives the os platform (like os-x, mac, and win32
> etc ..)
>
> :(
> eric.jung at yahoo.com wrote:
> > How about navigator.platform?
> > I'm pretty sure the user can change this, though, by tweaking
> > about:config settings.
> >
> > ----- Original Message ----
> > From: Gary Johnson <gary.johnson.53 at gmail.com>
> > To: Mozdev Project Owners List <project_owners at mozdev.org>
> > Sent: Saturday, September 8, 2007 8:57:04 AM
> > Subject: Re: [Project_owners] Getting OS language in FF
> >
> > I am also interested in getting at environment variables like the
> > HOSTTYPE=powerpc on the MAC
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> >
> >
> > __________ NOD32 2514 (20070908) Information __________
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> >  
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Project_owners mailing list
>Project_owners at mozdev.org
>http://mozdev.org/mailman/listinfo/project_owners
>  
>


More information about the Project_owners mailing list