Reputation: 2040
I am implementing localization in my app.
Here is the code,
C_TITLE.text = NSLocalizedString(@"C_TITLE", nil);
// strings files
localizable.strings (English)
"C_TITLE" = "English";
localizable.strings (French)
"C_TITLE" = "French";
But the label displays text "C_TITLE", which is key not value.
I done localization in my previous app but not faced this issue.
Code is working in simulator but not on device. Please help...
Thanks.
Upvotes: 1
Views: 1609
Reputation: 2976
I'm pretty sure that it's spelled Localizable.strings, not localizable.strings. That would explain why it works on the Simulator and not on the device as the OS X file system is not case sensitive but the iPhone's is.
Upvotes: 6
Reputation: 285
use [C_TITLE setText:NSLocalizedString(@"key",nil)]; will solve this.
Upvotes: 0