add Hungarian language support

This commit is contained in:
fape 2012-12-05 11:31:05 +01:00
parent c620b0f5bf
commit 320d532e15
10 changed files with 32 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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