Hallo
IE has a navigator property which is
navigator.syste mLanguage
and also
navigator.userL anguage
it returns intenrational codes for nationalities: exaple 'it' for Italy.
NS6 has a
navigator.langu age
property which returns a slightly different value: for english it returns
en-US
if you want you can open with different browsers the following file I made:
http://www.unitedscripters.com/hotvamps/browsers.html
upon loading it will list all the properties for each object in a select
menu (starts with the window object of course), upon selection it will
unfold the selected object too (if it is an object). In the second half of
the file you can provide yourself objects, such as "navigator" and click
"Populate" - on both sections you'll see properties, data type, and values
as well. You can check with all the browsers you prefer. I think that can be
helpful to inspect a great deal of properties we webmasters are not always
familiar with or we didn't even know they existed.
You can also check DOM objects as they get unfolded. To reset, reload the
page.
I have not checked with NS4 though - ok I do it now...
yeah it has
navigator.langu age
too and for it reports "en" for english.
You can check by
var
language=(navig ator["language"])?navigator["language"]:navigator["userLangua
ge"];
allow for a value "undefined" for browsers that don't fall in either scope.
ciao
Alberto Vallini
http://www.unitedscripters.com/
"Chris Fynn" <remove%20chris _fynn%20@%20hot mail.%20com%20. remove> ha scritto
nel messaggio news:bn******** **@titan.btinte rnet.com...
Is there an easy way to detect the local language settings of a client
browser or system?
I want to for example determine if the users browser or system is set to
English, French, or Italian and display a message in the appropriate
language.
--
Christopher J. Fynn