Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    check your nativ language

    how i can determine the user languagewhich installed in his operating system to link him to the site in his languge
    Last edited by ahmedsoliman; 06-19-2002 at 10:04 PM.

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try to inspect these data:

    var t=0;for(var i in navigator){t+="\n"+navigator[i]+" "+i}+i;alert(t)

    on IE yields:
    navigator.systemLanguage
    and
    navigator.userLanguage

    are your lot.

    On NN4 and NN6 both
    navigator.language

    seems carrying the info you want, obviously all as shortcuts: en for english, it for italian, and so on....
    Alberto http://www.unitedscripters.com/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •