SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    detecting it is English or not

    I like to detect whether the basic language of the client browser(O/S) is English or not .


    The following would-be code doesn't work correctly, but it will show what I want.

    Code:
    would-be code
    
    <if it is English>
    
    send to English version page
    
    <else>
    
    send to my mother tongue version page
    
    </if>

  2. #2
    SitePoint Member JAdriaansen's Avatar
    Join Date
    Sep 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't test it on different browsers but this seems to be working:
    http://javascript.internet.com/user-.../language.html

    It reads the language setting from the browser


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
  •