Python command line tool for conversion between iOS Localizable.strings and excel file & Localizable.strings to android strings.xml file.
My version works in this way:
python ~/Projects/Localizable.strings2Excel/python/Localizable.py -f ~/Projects/app-root/folder-that-contains-all-*.lprjoj-directories/ -t ~/Desktop
This generates the following structure:
- Desktop/strings-files-to-xls_YYYYmmmdd_hhmmss
- ex.xls whithin this file you will have a sheet tab for each file, for example:
- Localizable.string
- Main.string
- InfoPlist.strings
- ex.xls whithin this file you will have a sheet tab for each file, for example:
python ~/Projects/Localizable.strings2Excel/python/LocalizableBack.py -f ~/folder-that-contains-xls-by-lang-files/ -t ~/destination-path -i ios
This generates the following structure:
- Desktop/iOS:
- en (or the langs you have in xls files)
- Localizable.string
- Main.string
- InfoPlist.strings
- en (or the langs you have in xls files)
1.Support convert Android strings.xml files to excel.
1.Support convert multiple languages meanwhile.
1.Support Localizable.strings to android strings.xml file.
1.Fix bugs.
2.Add -h(help command) for python files.
3.Add -t(target file path )、-f(source file path) configuration for python files.
Add project.
change to pyexcelerator-0.6.4.1 directory,run sudo python setup.py install
change to xlrd-1.0.0 directory,run sudo python setup.py install
python Localizable.py -f xxx/xxx -t xxx/xxx.xls :convert iOS Localizable.strings files to xls file
python LocalizableStringsXml.py -f xxx/xxx -t xxx/xxx.xls :convert Android strings.xml files to xls file
python LocalizableBack.py -f xxx/xxx.xls -t xxx/xxx :convert xls file to iOS Localizable.strings files & Android strings.xml files
python LocalizableToStringXml.py -f xxx/xxx.strings -t xxx/xxx.xml : convert Localizable.strings to strings.xml file