mirror of https://github.com/axmolengine/axmol.git
commit
5d8071bdcf
|
@ -66,7 +66,8 @@ enum class LanguageType
|
|||
NORWEGIAN,
|
||||
POLISH,
|
||||
TURKISH,
|
||||
UKRAINIAN
|
||||
UKRAINIAN,
|
||||
ROMANIAN
|
||||
};
|
||||
|
||||
// END of platform group
|
||||
|
|
|
@ -184,6 +184,10 @@ LanguageType Application::getCurrentLanguage()
|
|||
{
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
}
|
||||
else if (0 == strcmp("ro", pLanguageName))
|
||||
{
|
||||
ret = LanguageType::ROMANIAN;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -158,6 +158,9 @@ LanguageType Application::getCurrentLanguage()
|
|||
else if ([languageCode isEqualToString:@"uk"]){
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
}
|
||||
else if ([languageCode isEqualToString:@"ro"]){
|
||||
ret = LanguageType::ROMANIAN;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -253,6 +253,10 @@ LanguageType Application::getCurrentLanguage()
|
|||
{
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
}
|
||||
else if (0 == strcmp("ro", pLanguageName))
|
||||
{
|
||||
ret = LanguageType::ROMANIAN;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -212,6 +212,9 @@ LanguageType Application::getCurrentLanguage()
|
|||
else if ([languageCode isEqualToString:@"uk"]){
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
}
|
||||
else if ([languageCode isEqualToString:@"ro"]){
|
||||
ret = LanguageType::ROMANIAN;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -191,6 +191,9 @@ LanguageType Application::getCurrentLanguage()
|
|||
case LANG_UKRAINIAN:
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
break;
|
||||
case LANG_ROMANIAN:
|
||||
ret = LanguageType::ROMANIAN;
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -201,6 +201,10 @@ LanguageType Application::getCurrentLanguage()
|
|||
{
|
||||
ret = LanguageType::UKRAINIAN;
|
||||
}
|
||||
else if (strncmp(code, "ro", 2) == 0)
|
||||
{
|
||||
ret = LanguageType::ROMANIAN;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue