Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get localized CFBundleDisplayName

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"] 

this API returns Bundle Display Name in plist.

However my app is localized and has different display name.

so i need to get localized display name in InfoPlist.strings that should vary with device language setting.

like image 950
Umgre Avatar asked Feb 06 '12 05:02

Umgre


People also ask

How do I localize CFBundleDisplayName?

To set the actual localized name we need to add a localized file to the project InfoPlist. strings and add the key-value pair “CFBundleDisplayName” = “<Localized app name>”;. When you now start the app in the simulator you should see the localized app name.


1 Answers

Have you tried -[NSBundle localizedInfoDictionary]?

[[[NSBundle mainBundle] localizedInfoDictionary]        objectForKey:@"CFBundleDisplayName"] 
like image 145
justin Avatar answered Oct 13 '22 23:10

justin