I'm having this really mind breaking problem.
I created a Localizable.strings file in XCode and then 2 languages in it.
I filled up these files with the language translations, did a build/clean and then a fresh build, but there is no way the Localization strings show up in my project. If I try something like:
self.title = NSLocalizedString(@"HEAD", nil);
only "HEAD" instead of the translation shows up in the device simulator.
This is my project hierarchy:
And this are the content of the English localization file:
Any ideas?
I found the answer myself.
Besides cleaning and building the project again and all that I described above. You must also delete the app in the iPhone simulator and then build it again! After that it works perfectly.
Talk about making it simple Apple...
Be sure that:
A few checks:
Localizable.strings
and is included in the target;
"
//
(NOT #
)Make sure you have Localizable.strings under Build Phases, Copy Bundle Resources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With