add russian language support

This commit is contained in:
dumganhar 2011-11-01 23:32:26 +08:00
parent cf3cecc108
commit 240aa4c077
2 changed files with 27 additions and 29 deletions

View File

@ -62,6 +62,7 @@ typedef enum LanguageType
kLanguageItalian,
kLanguageGerman,
kLanguageSpanish,
kLanguageRussian
} ccLanguageType;
NS_CC_END;

View File

@ -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;
}