How to localize Settings.bundle in xcode4?

UpCat picture UpCat · Mar 22, 2011 · Viewed 15k times · Source

I am working on xcode4 and created a Settings.bundle for my project. I can edit the Root.plist file in xcode4 but it is not possible to edit the Root.strings file. It isn't even displayed in the editor.

enter image description here

I can not expand the en.lproj folder as you see in the picture.

But when I do right-click, open in external editor it gives me:

enter image description here

Double click on Root.strings gives me:

enter image description here

I tried it several times, creating a new window-based application project and creating a new Settings.bundle. I always can not localize it. Any ideas?

Answer

Javi picture Javi · Nov 22, 2011

In XCode 4.2 you have to follow this steps (just a modification of Xcode 3.2.2 and localization of Settings.bundle)

  1. Reveal your Settings.bundle in Finder.
  2. Right click (or Ctrl-click) on it and select Show Package contents.
  3. Create a new folder called as the desired language (e.g., fr.lproj).
  4. Copy the Root.strings file from the en.lproj folder and paste in fr.lproj folder.