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