mirror of https://github.com/axmolengine/axmol.git
add russian language support
This commit is contained in:
parent
cf3cecc108
commit
240aa4c077
|
@ -62,6 +62,7 @@ typedef enum LanguageType
|
|||
kLanguageItalian,
|
||||
kLanguageGerman,
|
||||
kLanguageSpanish,
|
||||
kLanguageRussian
|
||||
} ccLanguageType;
|
||||
|
||||
NS_CC_END;
|
||||
|
|
|
@ -58,8 +58,6 @@ CCApplication& CCApplication::sharedApplication()
|
|||
ccLanguageType CCApplication::getCurrentLanguage()
|
||||
{
|
||||
ccLanguageType ret = kLanguageEnglish;
|
||||
do
|
||||
{
|
||||
result r = E_SUCCESS;
|
||||
String value;
|
||||
r = SettingInfo::GetValue(L"Language", value);
|
||||
|
@ -83,11 +81,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
{
|
||||
ret = kLanguageSpanish;
|
||||
}
|
||||
else
|
||||
else if (value.Equals("RUS", false))
|
||||
{
|
||||
ret = kLanguageEnglish;
|
||||
ret = kLanguageRussian;
|
||||
}
|
||||
} while (0);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue