开发者

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 MainWin开发者_高级运维dow.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?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜