Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localized nib not working in a iPhone project

I am working on an iPhone project which I have translated to two languages : French and Spanish.

The issue I have is just with one file : the RootViewController nib.

I localized the MainWindow.nib, and it works (when I change the language, the text in the app changes according to what I specified). I also have several NSLocalizedStrings, with a Localizable.strings file, which also works, but this RootViewController doesn't:

I made the file localizable, added two languages (fr and es), which I modified, the files are located in the fr.lproj folder and es.lproj folder, and they are included in the Target/App/"Copy Bundle Ressources". The text in the app is always the one from the English nib, even when I change the language.

Any idea where this would come from?

like image 545
Julien Avatar asked Dec 09 '22 13:12

Julien


1 Answers

Is your English xib in the en.lproj folder side by side with the other languages? If your english xib is in the root, it may just be finding that and not looking elsewhere.

like image 70
slf Avatar answered Dec 17 '22 23:12

slf