使用方法
0.先把
Localizable.strings2Excel
拷贝到电脑1.安装
pyexcelerator
组件
切换到pyexcelerator-0.6.4.1
目录,执行sudo python setup.py install
安装
注意:
Localizable.string
文件内的内容,必须是下面这样(就是等号左右两边都有一个空格)
"PLAY" = "运行";
- 2.使用脚本(先cd到 Localizable.strings2Excel-master 文件夹内)
把Localizable.strings转换成xls文件
python Localizable.py -f xxx/xxx.strings -t xxx/xxx.xls
把xls文件转换成Localizable.strings文件
python LocalizableBack.py -f xxx/xxx.xls -t xxx/xxx.strings
将Localizable.strings转换成strings.xml文件
python LocalizableToStringXml.py -f xxx/xxx.strings -t xxx/xxx.xml