将po/pot文件转换为apple.strings或android.xml语言环境文件。
po2strings的Python项目详细描述
po2strings可用于将po/pot gettext文件转换为apple.strings或android/java.xml文件。
安装
pip install po2strings
命令行用法
root@host$ po2strings <PO_FILE> <STRINGS_FILE>
例如
root@host$ po2strings en.po Localizable.strings root@host$ po2strings en.po values.xml
代码使用
from po2strings import po2strings executed, error_message = po2strings.run("en.po", "Localizable.strings")