Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization of Bundle Display Name fails in XCode 4

I have an app that is localized in two languages. I'm trying to change the bundle display name according to the selected localization. In many articles on the Internet, this is done localizing the info plist file.

I'm using XCode 4 and it automatically creates a MyProject-Info.plist file containing the bundle display name. As soon as I try to localize it (even having only the first language added) I cannot build the app anymore, cause the Identifier field in the "Summary -> iOS Application Target" section in the project properties becomes blank (and I cannot edit it).

What happens in the file structure of the project is that the original MyProject-Info.plist files is moved to the en.lproj folder, as well as duplicated into the other *.lproj folders I have (one for each supported language).

Any hint?

like image 505
showerapps Avatar asked Apr 26 '11 12:04

showerapps


1 Answers

1.select "InfoPlist.strings" file
2.Open “File Inspector"
3.add your localization language at Localization Section.
4.Open "InfoPlist.strings(English)" file, add CFBundleDisplayName = "Yours English Application Display Name";
5.Open "InfoPlist.strings(your local language)" file, add CFBundleDisplayName = "Yours Local Application Display Name";

like image 119
Roc Peng Avatar answered Sep 20 '22 08:09

Roc Peng