I\'ve recently upgraded from Xcode 3 to Xcode 4.2, and migrated an existing iOS apps to use this new version. This app is localized, and I now want to add another language.
The file structure on disk is mostly irrelevant in Xcode. Just move the directory in Finder, then in Xcode you can either: (a) remove the fr.lproj directory and re-add it, or (b) select the red entry, open the right-hand (properties) panel, and near the top you should see the path. Change the path to the new location and it'll go back to black.
Found the solution. It's not pretty, but it works.
Here's what I did:
.xcodeproj
folder in Finderproject.pbxproj
file.lproj
within the filepath =
section to include the Resources
part of the path.This smoothed everything over, and allowed the Localization to reside in the Resources subdirectory.
Here's a way how to solve it w/o editing .pbxproj file (Xcode 4.6.3):
UPD: doesn't work in Xcode 8 :(
This way works on Xcode 5.1 also (Greek example):
Resources/el.lproj
folder within Localizable.strings
file in FinderResource
folderResources/el.lproj
folder -> OK.
Greek Localizable.strings
automatically will be added to Localizable.strings
files. You can use the same way to add localization for xib files.