问题
I have just discovered that after upgrading to the latest Xcode 3.2.2, I am not able anymore to localize Settings.bundle. The "Make File Localizable button always appears grayed out, and the Settings.bundle files appear with "No Explicit File Encoding", instead of UTF-16.
This happens not just for my old projects, it happens even for new projects. Any clue? Is the localization procedure changed?
Thank you in advance.
回答1:
Looks very strange, maybe need to report to bugreport? But here is workaround that works.
- Reveal your
Settings.bundle
in Finder. - Right click (or Ctrl-click) on it and select Show Package contents.
- Copy
en.lproj
and rename to desired language (e.g.,fr.lproj
).
Now you can go back to Xcode and edit localized Root.strings
and files as you need.
来源:https://stackoverflow.com/questions/2661619/xcode-3-2-2-and-localization-of-settings-bundle