all groups > dotnet internationalization > march 2007 >
You're in the

dotnet internationalization

group:

?? Simplified Chinese "Browser Language Setting"


?? Simplified Chinese "Browser Language Setting" tsaltd
3/2/2007 10:36:42 AM
dotnet internationalization:

I need to be able to detect users coming to my website who have
Simplified Chinese as their "Browser Language Setting".

In order to test for that condition I have installed the Eastern Asian
Languages on my desktop machine and installed Simplified Chinese
keyboard layout

However -- after doing that -- there is still no "Simplified Chinese"
option in IE7 under Tools / Internet Options / Languages / Add ...

Must I download the Simplified Chinese version of IE to be able to
come to my website as a user with that language choice ??


Puzzling to say the least ...

I've looked for FAQs and other documentation on the subject with no
clear answer.

Thank you,

Steve
Re: ?? Simplified Chinese "Browser Language Setting" Michael S. Kaplan [MSFT]
3/2/2007 8:52:49 PM
The choice is not there -- only the various Chinese locales are listed.

You can fill in the choice yourself in the "user-defined" space if you want.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.



[quoted text, click to view]

Re: ?? Simplified Chinese "Browser Language Setting" Mihai N.
3/2/2007 9:25:48 PM
[quoted text, click to view]
Try using Chinese - China (that is Simplified Chinese).
You can try "user-defined" as MichKa suggested, but in reality nobody will
hit your site with that setting.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Re: ?? Simplified Chinese "Browser Language Setting" Michael S. Kaplan [MSFT]
3/2/2007 9:55:29 PM
I was thinking zh-hans or zh-CHS. :-)

MichKa

[quoted text, click to view]

RE: ?? Simplified Chinese "Browser Language Setting" Shawn Steele [MSFT]
3/5/2007 11:26:20 AM
In Steve's private mail he mentioned that he was trying this to test his .Net
application as part of trying to load Simplified Chinese resources. In this
case zh-CN will allow him to see his zh-CHS resources

In most cases, users will have IE configured to use a specific region, ie:
Chinese (PRC) or zh-CN. The parents of all the Chinese locales are either
zh-CHS or zh-CHT. .Net will look at the http-accept-language header and fine
zh-CN. The resource loader will then look at the parents until it finds an
appropriate resource (if possible). In this case it'd look for zh-CN, then
zh-CHS, then (on Vista/.Net V2 QFE) zh-Hans and load the appropriate resource.

Note that zh-Hans is the RFC 4646 name for simplified chinese. In the past
we'd used zh-CHS, however that name is non-standard. If your .Net app is
running on XP/Server 2003 then you have to tag the resources with zh-CHS. It
would probably be wise to make sure that resources load with all 3 language
tags (zh-CN, zh-CHS, zh-Hans) since some users may have reconfigured to use
other languages.

Also it is worth mentioning that there are many cases where uses can visit
web sites from mismatched language tags. For example, using an en-US machine
instead of a zh-CN and not changing the language in IE. Using a public
machine, such as at a library, where you may want chinese but it could have
an English default, etc. Some method to allow the user to switch languages
if your server makes the wrong guess might be required.

- Shawn

AddThis Social Bookmark Button