Julien
Julien

Reputation: 9432

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?

Upvotes: 4

Views: 4356

Answers (2)

slf
slf

Reputation: 22777

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.

Upvotes: 10

Diego Freniche
Diego Freniche

Reputation: 5414

I've got the exact same problem, but with English & Spanish

The answer is in this question. I've just cleaned all targets and all is fine now.

Upvotes: 4

Related Questions