English always being loaded.

Hi!


In our project we use English as the base language, and we support 65 more languages. Recently something weird started happening in Xcode 7 and iOS 9. We noticed that when we added new languages all of sudden, iOS stopped loading the correct strings for the language currently set in the sim / device. Instead it always shows English.


What's funny about this, is that we were able to pinpoint the commit where this breaks. That is, if we go to the previous commits strings load correctly. If we go to the latest commit, strings for the current language won't load. The only changes from one commit to another reside in the Xcode project file.


Another funny thing is that when we select the Localizable.strings file and in the inspector we uncheck a couple of languages, say Turkish and Greek, strings load correctly. Check them again, and strings stop loading correctly.


I've been trying to figure out what's wrong for the last few days, and still can't understand what's the problem. It has lead me to think that's an Xcode / iOS bug. Any ideas of what could be wrong?


We are using NSLocalizedString, so we shouldn't need to do anything of what's described in this technical note (https://developer.apple.com/library/ios/technotes/tn2418/_index.html#//apple_ref/doc/uid/DTS40016588).


Also, I already run (plutil -lint Localizable.strings) in all Localizable.strings files, and there are no errors...


Thanks!

That was known to me, Apple!

Quite. You should push back on this.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Sorry, Quinn.

What do you mean?

To keep you guys posted, they replied this to me:


#######

Engineering believes this issue has been resolved in iOS 9.1 beta 3 (Build 13B5130b).

The software is available for download at https://developer.apple.com/ios/download/.

Please verify whether or not the problem is resolved on this latest release.

#######


And I replied:


#######

I still see the problem in both, our app and in the test app I created just for this purpose (https://www.dropbox.com/sh/a9yy4ympc14i9dk/AADZ7XtRLDU7ZUYYEA0w96Fga?dl=0). I compiled with Xcode 7.1 beta (7B75), and run the app in an iPhone 5th gen with iOS 9.1 (13B136).


I also tried compiling with 7.1 beta 3 (7B85), the one released yesterday, and the problem is still there…

#######


They said, they'll keep looking!


Can anyone else also try in latest iOS 9.1 beta, just in case?


Thanks!

FYI, the issue appears to be fixed in iOS 9.1 (13B137), that is in iOS 9.1 beta 5. Can you guys please also confirm that it works for you there?

Hi Eskimo!


Same problem here. My solution was to uncheck "Use Base Internationalization"...


English always being loaded.
 
 
Q