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. General Programming
  3. C#
  4. How to get the language of the Windows 2000?

How to get the language of the Windows 2000?

Scheduled Pinned Locked Moved C#
tutorialquestion
6 Posts 5 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.
  • R Offline
    R Offline
    rushing
    wrote on last edited by
    #1

    There is a website which supports several languages. I want to get the language of Windows OS. Then the hyperlink could turn to different pages. How to do this? Thanks!

    H S J 3 Replies Last reply
    0
    • R rushing

      There is a website which supports several languages. I want to get the language of Windows OS. Then the hyperlink could turn to different pages. How to do this? Thanks!

      H Offline
      H Offline
      HakunaMatada
      wrote on last edited by
      #2

      WTF are you talking about? :confused: --- With best regards, A Manchester United Fan The Genius of a true fool is that he can mess up a foolproof plan!

      1 Reply Last reply
      0
      • R rushing

        There is a website which supports several languages. I want to get the language of Windows OS. Then the hyperlink could turn to different pages. How to do this? Thanks!

        S Offline
        S Offline
        Stefan Troschuetz
        wrote on last edited by
        #3

        Maybe you're looking for CultureInfo.InstalledUICulture.


        www.troschuetz.de

        D 1 Reply Last reply
        0
        • S Stefan Troschuetz

          Maybe you're looking for CultureInfo.InstalledUICulture.


          www.troschuetz.de

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          I think he wants to do this for webpage readers. If doable at all it would require some sort of clientside scripting.

          S 1 Reply Last reply
          0
          • R rushing

            There is a website which supports several languages. I want to get the language of Windows OS. Then the hyperlink could turn to different pages. How to do this? Thanks!

            J Offline
            J Offline
            J Dunlap
            wrote on last edited by
            #5

            The user's language can be found via the "Accept-Language" HTTP header in ASP.NET 1.1 (get it via Request.Headers), and then you can redirect or use some kind of custom language adaptation. For ASP.NET, you can do localization easily through resources - see here[^]. On the client side, you can use var langCode=navigator.language? navigator.language : navigator.userLanguage;.

            1 Reply Last reply
            0
            • D Dan Neely

              I think he wants to do this for webpage readers. If doable at all it would require some sort of clientside scripting.

              S Offline
              S Offline
              Stefan Troschuetz
              wrote on last edited by
              #6

              That was my first thought too, but maybe he wants to put some link in his windows application (wouldn't be that unusual). Hard to tell with this kind of phrasing, so I just gave it a try.


              www.troschuetz.de

              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