开发者

How to set the Default chinese version in localized app for windows phone

There are 2 version chinese , there are 1) Simplified 2) Traditional and there are at least 3 sub version under these 2 which are Taiwan chinese, Singapore Chinese, Hong Kong Chinese.

I have create resource files for simplified chinese, japanese, Korea. And My App work for main Simplified chinese and sub version republic of china

The problem: resource.zh-CN.resx contains simplified Chinese character.

1) If user from Hong Kong set Display format: Traditional and region format :Hong Kong chinese. My app has problem to display. The same if user from taiwan set up Display Format :Traditional and Region Format: Taiwan chinese.

Any1 experience this?

2) How to inform user to use Display format: Simplified Chinese? If the system detect you select traditional and resource file contains simplified chinese, it will display english!!

-1-- Update :

fact : There is only one language code for chinese : zh-CN Only one resource format for chinese . example : resource.zh-CN.resx

-2--- Update

Look at the emulator. Goto Settings and select region ad Language.

select 1)) Display Chinese

   2) This is the sub version of chinese. </br>

-3-- Upd开发者_StackOverflow中文版ate:

How Do I create resources file for Chinese? Is this the only format ? Ie Resource.zh-CN.resx?

In setting (in the phone or emulator), It has Display format : Simplified and Traditional.

If only one resource for a language, how can it contains both simplified and traditional characters?

Thanks


You can offer a settings menu and let the user explicit set a desired culture. In the app constructor (befor InitializeComponent) you set the CurrentUICulture property of the current thread to the desired culture. With this you set the culture to load the UI strings etc.

System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(preferedCultureString)

If formatting of dates, numbers etc. differes between the cultures then set CurrentCulture also.


System Locale have both Hong Kong, Macao, PRC, Signapore and Taiwan as supported english languages.

While the overall system language only have one version of Chinese (I think, I can't read Chinese graphic character), you can simply set the Culture to the UI Culture, which would use the System Locale, supporting several versions of Chinese.

This is done by

Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜