mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1726 from fape/hungarian_language_support
Add Hungarian language support
This commit is contained in:
commit
cfd6e6c82a
|
@ -65,7 +65,8 @@ typedef enum LanguageType
|
|||
kLanguageSpanish,
|
||||
kLanguageRussian,
|
||||
kLanguageKorean,
|
||||
kLanguageJapanese
|
||||
kLanguageJapanese,
|
||||
kLanguageHungarian
|
||||
} ccLanguageType;
|
||||
|
||||
// end of platform group
|
||||
|
|
|
@ -116,6 +116,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
{
|
||||
ret = kLanguageJapanese;
|
||||
}
|
||||
else if (0 == strcmp("hu", pLanguageName))
|
||||
{
|
||||
ret = kLanguageHungarian;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -155,6 +155,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
{
|
||||
ret_language = kLanguageJapanese;
|
||||
}
|
||||
else if (strcmp(language, "hu") == 0)
|
||||
{
|
||||
ret_language = kLanguageHungarian;
|
||||
}
|
||||
|
||||
free(language);
|
||||
free(country);
|
||||
|
|
|
@ -110,6 +110,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
else if ([languageCode isEqualToString:@"ja"]){
|
||||
ret = kLanguageJapanese;
|
||||
}
|
||||
else if ([languageCode isEqualToString:@"hu"]){
|
||||
ret = kLanguageHungarian;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -148,6 +148,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
{
|
||||
ret = kLanguageJapanese;
|
||||
}
|
||||
else if (0 == strcmp("hu", pLanguageName))
|
||||
{
|
||||
ret = kLanguageHungarian;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -116,6 +116,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
else if ([languageCode isEqualToString:@"ja"]){
|
||||
ret = kLanguageJapanese;
|
||||
}
|
||||
else if ([languageCode isEqualToString:@"hu"]){
|
||||
ret = kLanguageHungarian;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -181,6 +181,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
currentLanguage = kLanguageJapanese;
|
||||
break;
|
||||
|
||||
case S3E_DEVICE_LANGUAGE_HUNGARIAN:
|
||||
currentLanguage = kLanguageHungarian;
|
||||
break;
|
||||
|
||||
default:
|
||||
currentLanguage = kLanguageEnglish;
|
||||
break;
|
||||
|
|
|
@ -142,6 +142,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
|
|||
case LANG_JAPANESE:
|
||||
ret = kLanguageJapanese;
|
||||
break;
|
||||
case LANG_HUNGARIAN:
|
||||
ret = kLanguageHungarian;
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -39,6 +39,9 @@ CurrentLanguageTest::CurrentLanguageTest()
|
|||
case kLanguageJapanese:
|
||||
labelLanguage->setString("current language is Japanese");
|
||||
break;
|
||||
case kLanguageHungarian:
|
||||
labelLanguage->setString("current language is Hungarian");
|
||||
break;
|
||||
}
|
||||
|
||||
addChild(labelLanguage);
|
||||
|
|
|
@ -9,7 +9,8 @@ typedef enum LanguageType
|
|||
kLanguageSpanish,
|
||||
kLanguageRussian,
|
||||
kLanguageKorean,
|
||||
kLanguageJapanese
|
||||
kLanguageJapanese,
|
||||
kLanguageHungarian
|
||||
} ccLanguageType;
|
||||
|
||||
enum TargetPlatform
|
||||
|
|
Loading…
Reference in New Issue