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