How to get the language of the Windows 2000?
-
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!
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!
-
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!
-
-
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!
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;
. -
I think he wants to do this for webpage readers. If doable at all it would require some sort of clientside scripting.
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.