Hello,
I am trying to make my app localized. I have followed this procedure http://www.switchonthecode.com/tutorials/a-simple-localization-example-for-the-iphone. And have deleted all localization and done it over again. I've seen other tutorials with exactly the same procedure.
My view to localize is named InfoView.xib.
I have:
- rigth-clicked InfoView.xib->Get info -> Make File Localizable
- added Localization and named it to "sv" (for Swedish language)
- edited the sv-xib
When the simulator is set to English or any other language, I do get the xib loaded and can present it. But when setting the simulator to Swedish language, the view is not instantiated.
When doing
NSLog(@"Language: %@ ",[NSLocale preferredLanguages]);
I do get "sv" as the top language code.
("NSLog(@"Locale: %@ ",localeString);" gives "sv_SE")
When trying this
[[NSBundle mainBundle] loadNibNamed:@"InfoView" owner:self options:nil];
NSLog(@"InfoView in loadView %@", infoView);
It prints "(null)" when simulator is set to "Swedish" but instanstiate with any other language.
This is my setting if I do Get info on my sv-xib, in case it matters:
I have done the cleant targets and did reset the simulator.
What can the problem be? And how is the mapping done between the name I choose when adding a locale (sv) and the simultar/device language setting? Is it the acutal "sv" I named my locale to that must match the device's language code ("sv" is one)?
Thanks in advnace!
/Niklas