Merge pull request #1726 from fape/hungarian_language_support

Add Hungarian language support
This commit is contained in:
minggo 2012-12-05 17:39:46 -08:00
commit cfd6e6c82a
10 changed files with 32 additions and 2 deletions

View File

@ -65,7 +65,8 @@ typedef enum LanguageType
kLanguageSpanish,
kLanguageRussian,
kLanguageKorean,
kLanguageJapanese
kLanguageJapanese,
kLanguageHungarian
} ccLanguageType;
// end of platform group

View File

@ -116,6 +116,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
{
ret = kLanguageJapanese;
}
else if (0 == strcmp("hu", pLanguageName))
{
ret = kLanguageHungarian;
}
return ret;
}

View File

@ -155,6 +155,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
{
ret_language = kLanguageJapanese;
}
else if (strcmp(language, "hu") == 0)
{
ret_language = kLanguageHungarian;
}
free(language);
free(country);

View File

@ -110,6 +110,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
else if ([languageCode isEqualToString:@"ja"]){
ret = kLanguageJapanese;
}
else if ([languageCode isEqualToString:@"hu"]){
ret = kLanguageHungarian;
}
return ret;
}

View File

@ -148,6 +148,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
{
ret = kLanguageJapanese;
}
else if (0 == strcmp("hu", pLanguageName))
{
ret = kLanguageHungarian;
}
return ret;
}

View File

@ -116,6 +116,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
else if ([languageCode isEqualToString:@"ja"]){
ret = kLanguageJapanese;
}
else if ([languageCode isEqualToString:@"hu"]){
ret = kLanguageHungarian;
}
return ret;
}

View File

@ -181,6 +181,10 @@ ccLanguageType CCApplication::getCurrentLanguage()
currentLanguage = kLanguageJapanese;
break;
case S3E_DEVICE_LANGUAGE_HUNGARIAN:
currentLanguage = kLanguageHungarian;
break;
default:
currentLanguage = kLanguageEnglish;
break;

View File

@ -142,6 +142,9 @@ ccLanguageType CCApplication::getCurrentLanguage()
case LANG_JAPANESE:
ret = kLanguageJapanese;
break;
case LANG_HUNGARIAN:
ret = kLanguageHungarian;
break;
}
return ret;

View File

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

View File

@ -9,7 +9,8 @@ typedef enum LanguageType
kLanguageSpanish,
kLanguageRussian,
kLanguageKorean,
kLanguageJapanese
kLanguageJapanese,
kLanguageHungarian
} ccLanguageType;
enum TargetPlatform