Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ios Localization not working

I have XCode Version 4.3.3 running and iOS 5.1. i can do what i want. i can't get localization running. i added different languages through project files. I adjusted the InfoPlist.strings in every Language like this:

"key" = "value";

I have everywhere:

NSLocalizedString(@"key", nil);

No key is the same like its value. I have checked the which language is chosen:

NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];

But the app constantly just shows the keys and no value when i run the App.

I ran out of ideas

I tried deleting and cleaning everything as described here: Localization not working

I tried copying the files described here: NSLocalizedString Problem

And all the files are in their language folder: iPhone: NSLocalizedString reading from English .strings file even when another lang is set

Does anybody have an idea what else i can do?!? i don't know what i am doing wrong?!

like image 477
NewYearsEve Avatar asked Dec 31 '25 01:12

NewYearsEve


1 Answers

Do you have a Localizable.strings file? That's the default file that

NSLocalizedString(@"key", nil);

looks for.

like image 181
pdesantis Avatar answered Jan 02 '26 18:01

pdesantis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!