Localization on xib won't work

Ive been doing this simple process to setup localization for my app.


1) Export xliff

2) Translate xliff to Spanish(es)

3) Import xliff -> Creates Localizable.strings and a strings file for a few of the Xib I want to localize


Now the localization works for all the instances I used NSLocalizedString in my code but it never translates the xibs! Ive been stuck trying to get this working for hours!


On thing I noticed that concerns me that might have lead to a problem is that in the documentation xcode creates en.lproj, es.lproj etc in the project root to hold the localized string files however my xib is nested in projectRoot/ViewControllers/AboutMeterViewController.xib but when I import my translations it creates en.lproj under my view controller folder instead of the root (perhaps this is intended behavior?).

projectRoot/ViewControllers/es.lproj/AboutMeterViewController.strings

projectRoot/ViewControllers/Base.lproj/AboutMeterViewController.xib


Im not sure whats going on but it never translates the xib strings. Any help?


Also what is the difference between .xib and .strings translations? Does a .xib translation mean I have to maintain multiple copies of the xib?


--Thomas

Localization on xib won't work
 
 
Q