Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Localization (Localizable.strings) not working

I have an app with an "Error" message. I want to translate this error message.

OK, first I created a file named "Localizable.strings". In the file I wrote:

"ERR" = "Error";

then in my .m file I wrote:

self.label1.text = NSLocalizedString(@"ERR", nil);

and this will not work. I also tried (of course) to make the file localized and added more languages. But it will not work.

like image 565
Jonathan Gurebo Avatar asked Dec 24 '12 13:12

Jonathan Gurebo


1 Answers

Follow the following tutorial to create language files, than after filling them do the followihg:

  1. Do ultraclean (function key + shift + k)
  2. Rebuild
  3. Remove your app
  4. Install your app again
like image 64
Misha Avatar answered Oct 07 '22 22:10

Misha