mirror of https://github.com/axmolengine/axmol.git
revert language
This commit is contained in:
parent
e9a2818d0d
commit
2998726364
|
@ -129,32 +129,30 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
{
|
||||
ccLanguageType ret = kLanguageEnglish;
|
||||
|
||||
do
|
||||
{
|
||||
int nCount = sizeof(arrayChineseCode) / sizeof(int);
|
||||
for (int i = 0; i < nCount; ++i)
|
||||
{
|
||||
if (arrayChineseCode[i] == LanguageID)
|
||||
{
|
||||
if (LanguageID == 2052)
|
||||
{
|
||||
ret = kLanguageChinese_Simplified;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = kLanguageChinese_Traditional;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CC_BREAK_IF(kLanguageEnglish != ret);
|
||||
|
||||
if (1041 == LanguageID)
|
||||
{
|
||||
ret = kLanguageJapanese;
|
||||
}
|
||||
} while (0);
|
||||
LCID localeID = GetUserDefaultLCID();
|
||||
unsigned short primaryLanguageID = localeID & 0xFF;
|
||||
|
||||
switch (primaryLanguageID)
|
||||
{
|
||||
case LANG_CHINESE:
|
||||
ret = kLanguageChinese;
|
||||
break;
|
||||
case LANG_FRENCH:
|
||||
ret = kLanguageFrench;
|
||||
break;
|
||||
case LANG_ITALIAN:
|
||||
ret = kLanguageItalian;
|
||||
break;
|
||||
case LANG_GERMAN:
|
||||
ret = kLanguageGerman;
|
||||
break;
|
||||
case LANG_SPANISH:
|
||||
ret = kLanguageSpanish;
|
||||
break;
|
||||
case LANG_RUSSIAN:
|
||||
ret = kLanguageRussian;
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue