Bundle mapping name localization not performed in Xcode 4

I have an application that is localized in two languages. I am trying to change the display name of a package according to the selected localization. Many articles on the Internet do this to localize the Info plist file.

I am using Xcode 4 and it automatically creates a MyProject-Info.plist file containing the display name of the package. As soon as I try to localize it (even having only the first language), I can no longer create the application, because the Identifier field in the "Summary → Purpose of the iOS application" section in the project properties becomes empty (and I can’t edit it).

What happens in the file structure of the project is that the source files of MyProject-Info.plist are moved to the en.lproj folder, and also duplicated to other .lproj folders I have (one for each supported language).

Any clues?

+4
source share
2 answers

1. Select the file "InfoPlist.strings"

2. Open the "File Inspector"
3.add your localization language in the localization section.
4. Open the file "InfoPlist.strings (English)", add CFBundleDisplayName = "Your display name for the application in English";
5.Open "InfoPlist.strings (your local language)" file, add CFBundleDisplayName = "Yours Local Application Display Name";

+6
source

Given the risk of redundancy, let me just make it clear (as I tested it now) that the trick is to translate InfoPlist.strings and never MyProject-Info.plist.

0
source

All Articles