Detecting User Language from JavaScript

Last post 12-15-2006 4:01 AM by tvdPatrick. 0 replies.

Sort Posts:

  • Detecting User Language from JavaScript

    12-15-2006, 4:01 AM
    • Loading...
    • tvdPatrick
    • Joined on 07-06-2002, 5:57 AM
    • Posts 26

    hi there

    i'm searching for a way to get the user languages from the browser (internet explorer and firefox) within javascript.
    and not just the first language choice, i'd like all of them, so that i'm able to programm a fallback-mechanism when
    the first language of choice is not supported but the second is. (i'm taking about the languages set by the user
    under "internet options" - "languages" inside ie, and more or less the same way for firefox).

    i did some testing but didn't succeed:

    navigator.language
    navigator.browserLanguage
    navigator.userLanguage
    navigator.systemLanguage

    all of this options do not return several languages. further i couldn't find a way to get the user language (not the browser-installation
    language) from firefox.

     

    every idea is welcome.

    best regards
    patrick

     

    Patrick S.
    http://sharpcuts.blogspot.com
Page 1 of 1 (1 items)
Microsoft Communities
Page view counter