转自:http://blog.csdn.net/tangaowen/article/details/8878193
//default language is local language ccLanguageType currentLanguageType = CCApplication::sharedApplication()->getCurrentLanguage(); switch (currentLanguageType) { case kLanguageEnglish: language_ = "english"; break; case kLanguageChinese: //判断是否是简体的还是繁体的 //如果是繁体的 if (isTaiWanChinese() == true) { language_ = "zhcnt"; } //是简体的 else { language_ = "zhcn"; } break; default: language_ = "english"; break; } } //是否是繁体中文 bool LanguageManager::isTaiWanChinese() { // get the current language and country config NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSArray *languages = [defaults objectForKey:@"AppleLanguages"]; NSString *currentLanguage = [languages objectAtIndex:0]; if ( [currentLanguage isEqualToString:@"zh-Hant"]) { return true; } else { return false; } }