Reputation: 1656
I have an app that is localized for two languages: English and Danish. If I set the device to any other language (say, French) the app crashes. It seems as if it's not really loading the XIB files, or getting a generic version of them that is not properly initialized.
I guess that I naively assumed that the app would load the English version if it was set for a language other than English or Danish.
What do I do? Is there a way to ensure that behavior?
Upvotes: 0
Views: 381
Reputation: 1656
Cause: Somehow XCode had created two sets of en.lproj and da.lproj directories. One set was in the project root (oh, an en.lproj was here called English.lproj) and the other was in Classes. The "missing" XIB files were in the directory in Classes.
Solution: Copy XIB files to the proper folders in the root. Remove original ones from project (go ahead and say move to thrash, you just copied them...). Add copies in proper location to project - all in one drag operation - and do not copy to project (they are already in the proper location).
Upvotes: 1
Reputation: 3506
The app should load the english version if you set the device language to, for example, french.
You should give some details how you are loading the XIB. It's rather impossible to give an answer to this question without knowledge about your specific implementation.
Upvotes: 0