Support Chinese Traditional and Chinese Simplified

As part of the localization for our product, we need to support both Chinese and simplified Chinese, but I see some of these crops zh-CN, zh-TW, zh-hans, zh-hant. I do not want to create 4 folders with resource files in each folder. I want to zh-CN, zh-hansbe the same and zh-TW, zh-hantwere the same.

I created 2 folders with zh-hansand zh-hant, and ResourceManagerautomatically resolves zh-CNbefore zh-hansand zh-TWbefore zh-hans. Is there any documentation about this that ResourceManagerthis comparison always makes, I could not find.

+4
source share
1 answer

I found various "notes" on MSDN:

Class CultureInfo

Neutral culture is defined only by a two-letter lower case register language code. For example, β€œfr” indicates a neutral culture for French and β€œde” indicates a neutral culture for German.

There are two names of culture that contradict this rule. Cultures Chinese (simplified), called zh-Hans, and Chinese (traditional), called zh-Hant, are neutral cultures. The names of the cultures are current standard and should be used if you have no reason to use the older names "zh-CHS" and "zh-CHT".

CultureInfo.CreateSpecificCulture

zh-CHS zh-CHT. , , Windows Vista , zh-Hans zh-CHS zh-Hant zh-CHT. - - , .

, Windows, () (zh, zh-CHT zh-Hant) ZH-TW.

CultureInfo.Parent

zh-CHS zh-CHT 0x0004 0x7C04, . Windows Vista zh-Hans zh-CHS zh-Hant zh-CHT. - - , .

+3

All Articles