使用 Xcode 4.5 本地化 Localizable.strings
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12546355/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Localize Localizable.strings with Xcode 4.5
提问by Fry
Possible Duplicate:
Localization - Add additional language to localizable.strings file
With Xcode 4.5 SDK iOS 6.0, I cannot add localization to Localizable.strings file. In Xcode 4.4.1- under the list of all added languages was a "+" to add other languages. But in Xcode 4.5 I can't see it and I can't add any other languages apart the default English.
使用 Xcode 4.5 SDK iOS 6.0,我无法向 Localizable.strings 文件添加本地化。在 Xcode 4.4.1- 所有添加的语言列表下是一个“+”来添加其他语言。但是在 Xcode 4.5 中我看不到它,除了默认的英语之外,我无法添加任何其他语言。
Someone has resolved this problem ?
有人解决了这个问题吗?
Thanks !
谢谢 !
回答by Richard Altenburg - Brainchild
If you select your top level project file in the Project Navigator, and then in the area on the right select your project under "PROJECT" and more to the right click the "Info" pane, there is a part called "Localizations" where you can add new languages to your project. Once done, you can add these languages to any file you wish to localize.
如果您在 Project Navigator 中选择您的顶级项目文件,然后在右侧的区域中选择“PROJECT”下的项目,然后在右侧单击“Info”窗格,则有一个名为“Localizations”的部分可以为您的项目添加新语言。完成后,您可以将这些语言添加到要本地化的任何文件中。
This is for Xcode 4.4.1 but I am pretty sure 4.5 allows this as well.
这是针对 Xcode 4.4.1 但我很确定 4.5 也允许这样做。