xcode 将 localizable.strings 转换为电子表格?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3117761/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:29:19  来源:igfitidea点击:

Convert localizable.strings to spreadsheet?

iphonexcodelocalizationinternationalization

提问by DenverCoder9

Is there a standard way to convert the localizable.strings file to csv format, or something else than can be imported by a spreadsheet program such as OpenOffice? Thanks.

是否有标准方法可以将 localizable.strings 文件转换为 csv 格式,或者可以通过电子表格程序(例如 OpenOffice)导入的其他格式?谢谢。

采纳答案by Claus Broch

You can just import in your spreadsheet program and use the "=" character as delimiter between the two columns. Just make sure that your spreadsheet program preserves UTF-8 or UTF-16 characters when importing and exporting.

您可以在电子表格程序中导入并使用“=”字符作为两列之间的分隔符。只需确保您的电子表格程序在导入和导出时保留 UTF-8 或 UTF-16 字符。

回答by Lefteris

A bit outdated answer, but this online tool, does the job better and faster:

有点过时的答案,但这个在线工具可以更好更快地完成工作:

http://localise.biz/free/converter/ios-to-android

http://localise.biz/free/converter/ios-to-android

回答by livingtech

I just spent the last few hours installing and playing with Babelish, a ruby script to do this. I'm still looking around a bit, because I really wish it preserved the comments in my .strings file, but I thought I'd comment here anyway.

我刚刚花了最后几个小时安装和玩Babelish,这是一个 ruby​​ 脚本来做到这一点。我还在四处看看,因为我真的希望它保留我的 .strings 文件中的注释,但我想无论如何我都会在这里发表评论。