简体   繁体   English

Xcode 3.2.2和Settings.bundle的本地化

[英]Xcode 3.2.2 and localization of Settings.bundle

I have just discovered that after upgrading to the latest Xcode 3.2.2, I am not able anymore to localize Settings.bundle. 我刚刚发现在升级到最新的Xcode 3.2.2之后,我无法再对本地化的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. “Make File Localizable”按钮始终显示为灰色,Settings.bundle文件显示为“No Explicit File Encoding”,而不是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. 先感谢您。

Looks very strange, maybe need to report to bugreport ? 看起来很奇怪,也许需要向bugreport报告? But here is workaround that works. 但这是有效的解决方法。

  1. Reveal your Settings.bundle in Finder. 在Finder中显示您的Settings.bundle
  2. Right click (or Ctrl-click) on it and select Show Package contents . 右键单击(或按住Ctrl键单击),然后选择“ 显示包内容”
  3. Copy en.lproj and rename to desired language (eg, fr.lproj ). 复制en.lproj并重命名为所需语言(例如, fr.lproj )。

Now you can go back to Xcode and edit localized Root.strings and files as you need. 现在,您可以根据需要返回Xcode并编辑本地化的Root.strings和文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM