-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization broken in iOS 9 #1602
Comments
I have found the same issue. I have debugged the CCBLocalizationManager and found out that the preferred languages provides by NSLocale have the format "de-DE" or "en-DE" for example. The first part of this language code in the language and the second part the region. There are two ways to fix this issue: Change the language keys in the strings.ccb file or split the language codes from NSLocale into language and region and use only the language part. Edit: The best fix is using [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode] to get the current user language code. Check this language code again the activeLanguages. If this array contains ths current user language code, the translations can be created. |
Both the built-in localization system and CCBLocalize do not seem to be working in iOS 9. I have compiled several projects in both Xcode 6.4 and the latest beta of Xcode 7.
When I debug from Xcode and specifically change the scheme to run under an alternate language, the code will run fine, and the language is set properly.
When I designate it to run under the system language (which has been changed in the Settings), it defaults the base language.
I will look into this myself, and contribute back to the community, but my understanding of the internals of Cocos2D are limited.
Thanks,
Roger Pingleton
The text was updated successfully, but these errors were encountered: