作者:flower_hj | 来源:互联网 | 2023-09-24 21:27
Applehasrecentlyintroducedanewprocessfortranslatingfiles.Younolongerhavetousegenstri
Apple has recently introduced a new process for translating files. You no longer have to use genstrings/ibtool for generating .strings
file - instead you simply use the .xliff
files export/import tool built right into Xcode:
Apple最近推出了一种翻译文件的新流程。您不再需要使用genstrings / ibtool来生成.strings文件 - 而只需使用内置于Xcode中的.xliff文件导出/导入工具:
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/LocalizingYourApp/LocalizingYourApp.html
Unfortunately when I'm trying to import right from Xcode, it crashes. I wanted to test it out using xcodebuild -importLocalizations
as is described here (page 68):
不幸的是,当我尝试从Xcode导入时,它崩溃了。我想使用xcodebuild -importLocalizations测试它,如此处所述(第68页):
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.pdf
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.pdf
It turns out that there's no such importLocalizations
argument for xcodebuild (although there is an exportLocalization
)?! (man
command confirms this) Am I missing something? This has also been tested in Xcode 6.1.
事实证明xcodebuild没有这样的importLocalizations参数(虽然有一个exportLocalization)?! (man命令证实了这一点)我错过了什么吗?这也在Xcode 6.1中进行了测试。
6 个解决方案