Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CFBundleDisplayName localization doesn't work

I'm trying to localize my app name, but can't get it working. I've got a localized InfoPlist.strings with the following content:

CFBundleDisplayName = "Application Name in English";
CFBundleName = "App Name – in English";

as well as the LSHasLocalizedDisplayName (Application has localized Display Name) set to YES. What else could I be missing?

What could I be missing? In another app it works seemlessly, but for this one app I can't get the name to be localized.

InfoPlist.strings is in the same directory as the other localized strings and the target Membership is selected as well.

EDIT: as I found out, I've got two langauages (german, english) and it works for german, but not for english... the app locatization (localizable.strings) in the same en-directory works perfect, but the InfoPlist.strings doesn't...

like image 637
swalkner Avatar asked Nov 17 '14 12:11

swalkner


2 Answers

Did you try this on the device or in the simulator?

Because in the simulator it will always run in English (or maybe your Macs language, which is English for me), it will not take the settings from the simulator itself.

It's weird, but you need to adjust the language for the app at compile time in the scheme:

enter image description here

like image 55
dogsgod Avatar answered Oct 14 '22 22:10

dogsgod


I know this is old, but if anyone is not seeing your app name being localized on an iOS device, even though you edited the target's scheme for the language, that's because it will only be displayed if you change the device's language directly (in Settings / General / Language & Region).

like image 2
ScottyB Avatar answered Oct 14 '22 23:10

ScottyB