0
votes

I am trying to localize my Settings.bundle. There does not appear to be anything in Xcode 4 that allows you to add localization to the Settings.bundle similar to localizing a xib file. So I used finder to navigate to the Settings.bundle and copied the en.lproj directory to create directories in the bundle called fr.lproj and de.lproj. From there, you can modify the strings file to localize the titles in the Root.plist.

But the problem is that the new directory is not under source code control. If I try to add the directory to source code control, I get the following error: The operation could not be performed because the selection is invalid.

How can I resolve this problem and get the new settings.bundle directory under source code control?

Below is an image of the localized directories I added to my Settings.bundle. As you can see, the question mark indicates that the directory is not under source code control

2

2 Answers

1
votes

Correct strings file format is: "Title" = "title in correct language";

Pay attention "Title" from Root.Plist NOT "Identifier"

0
votes

What you are doing is right. I can't explain why you are unable to add your new subfolders/files to source control. I have the exact same structure in an iOS project of mine and these files are under source control like all the others. I don't recall having difficulties adding them.

Have you tried using git commands directly to add them? The integration in XCode is great but in my experience there are time when you do have to use the command line for git.