SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question JavaScript:browser Language detection

    Hi folks,

    Is there any way for JavaScript to detect a user's preferred browser Language? which is being set via Tools>InternetOptions>GeneralTab>LanguagesButton...

    I found out from my investigation that:
    the ff. navigator object properties only detects:system related languages
    navigator.browserLanguage : browser's default language
    navigator.userLanguage : local language in task bar, date/time, being set
    via ControlPanel>Regional&LanguageOptions>Languages
    navigartor.systemLanguage : Operating System Language


    What I need is to detect the user's preferred Language from Tools>InternetOptions...


    Hope you've learned something and anybody out there who can give me solution to my problem?

    Thanks for time,
    dharyl

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    International sites typically allow the user to select a language, which is saved in a cookie for subsequent visits.


Bookmarks

Posting Permissions

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