Split Chinese language into Simplified script and Traditional script
ArchHooks function modified for Windows.
This commit is contained in:
+2
-2
@@ -547,7 +547,6 @@ RString ConvertI64FormatString( const RString &sStr ) { return sStr; }
|
||||
#endif
|
||||
|
||||
/* ISO-639-1 codes: http://www.loc.gov/standards/iso639-2/php/code_list.php
|
||||
* native forms: http://people.w3.org/rishida/names/languages.html
|
||||
* We don't use 3-letter codes, so we don't bother supporting them. */
|
||||
static const LanguageInfo g_langs[] =
|
||||
{
|
||||
@@ -688,7 +687,8 @@ static const LanguageInfo g_langs[] =
|
||||
{"xh", "Xhosa"},
|
||||
{"yi", "Yiddish"},
|
||||
{"yo", "Yoruba"},
|
||||
{"zh", "Chinese"},
|
||||
{"zh-Hans", "Chinese (Simplified)"},
|
||||
{"zh-Hant", "Chinese (Traditional)"},
|
||||
{"zu", "Zulu"},
|
||||
};
|
||||
|
||||
|
||||
@@ -98,7 +98,19 @@ static RString LangIdToString( LANGID l )
|
||||
case LANG_ARABIC: return "ar";
|
||||
case LANG_BULGARIAN: return "bg";
|
||||
case LANG_CATALAN: return "ca";
|
||||
case LANG_CHINESE: return "zh";
|
||||
case LANG_CHINESE:
|
||||
{
|
||||
switch (SUBLANGID(l))
|
||||
{
|
||||
case SUBLANG_CHINESE_TRADITIONAL:
|
||||
case SUBLANG_CHINESE_HONGKONG:
|
||||
case SUBLANG_CHINESE_MACAU:
|
||||
return "zh-Hant";
|
||||
case SUBLANG_CHINESE_SIMPLIFIED:
|
||||
case SUBLANG_CHINESE_SINGAPORE:
|
||||
return "zh-Hans";
|
||||
}
|
||||
}
|
||||
case LANG_CZECH: return "cs";
|
||||
case LANG_DANISH: return "da";
|
||||
case LANG_GERMAN: return "de";
|
||||
|
||||
Reference in New Issue
Block a user