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.
Localizable.strings
to your project? Did you go through "New/File..." dialog, and picked "Strings File" under the "iOS/Resource" tab? – PulleyLocalizable.strings
. Now it is working fine.In my project so many pods with language changes, so it is not reloading immediately, after second time reopening the app then it's working. So I have replaced with default file nameLocalizable.strings
. – Hanuman