How to get localized CFBundleDisplayName

Umgre picture Umgre · Feb 6, 2012 · Viewed 16.1k times · Source
[[[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.

Answer

justin picture justin · Feb 6, 2012

Have you tried -[NSBundle localizedInfoDictionary]?

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