Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. localization - Browser's language and javascript

localization - Browser's language and javascript

Scheduled Pinned Locked Moved Web Development
helpjavascriptsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    militiaware
    wrote on last edited by
    #1

    hello fellows, I'm facing a problem with localization. You know each time the browser create a request, it will send its language (en, en_us, ..etc) with the it where the web application can determine the language of the client and send the proper response. Now, what i want is to play around with this option on the client-side not from the server-side. And I want the language option to be displayed as a choice as a select-box on login page. My first option (as i think) is to modify the browser's language using javascript when the user select (event) a choice from the select-box. My second option is to override the value of the header "accept-language" using javascript also. Until now I couldn't know it those two options are possible or there's any other choices. I really appreciate it if you can help :) Regards, Faris Madi Nothing Comes Easy (N.C.E.)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups