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. Chnaging language depending upon country choose in the PC - HTML

Chnaging language depending upon country choose in the PC - HTML

Scheduled Pinned Locked Moved Web Development
csharpjavascripthtmlasp-netquestion
2 Posts 2 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.
  • A Offline
    A Offline
    Amjath Rahman
    wrote on last edited by
    #1

    Hi All, I want to change text in my html page to the language selected by the user in his/her PC. how can i do this im using only HTML and javascript(no asp.net) With Regards Amjath

    M 1 Reply Last reply
    0
    • A Amjath Rahman

      Hi All, I want to change text in my html page to the language selected by the user in his/her PC. how can i do this im using only HTML and javascript(no asp.net) With Regards Amjath

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Amjath Rahman wrote:

      im using only HTML and javascript(

      You can get the client's IP address by using Javascript. (The fact whether JS can get the correct IP address or not is the different story. Generally, you can get it with JS.) then, In order to know the client's country based on IP address, you should the countries list and IP addresses range for all countries.. OR you can use the free service like GeoDirection[^] to get the country name based on the IP address. then, you can redirect the HTML page that is already localized. (example[^])

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      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