Skip to content

Python command line tool for conversion between iOS strings files and excel files & between android strings.xml files and excl files. & strings files to android strings.xml files.

License

Notifications You must be signed in to change notification settings

workless/Localizable.strings2Excel

Repository files navigation

Localizable.strings2Excel

Python command line tool for conversion between iOS Localizable.strings and excel file & Localizable.strings to android strings.xml file.

Buguibu's clone

My version works in this way:

Extract strings to xls

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

Convert xls to strings

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

中文请点击

Convert iOS Localizable.strings files to excel.

strings to excel

Convert Android strings.xml files to excel.

strings to android xml

Convert excel file to iOS & Android Localizable files.

excel to strings

Convert iOS Localizable.strings file to Android strings.xml file.

strings to android xml

ChangeLog

V0.5.0

1.Support convert Android strings.xml files to excel.

V0.4.0

1.Support convert multiple languages meanwhile.

V0.3.0

1.Support Localizable.strings to android strings.xml file.

V0.2.0

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.

V0.1.0

Add project.

Usage

1.install pyexcelerator component

change to pyexcelerator-0.6.4.1 directory,run sudo python setup.py install

install pyexcelerator

2.install xld component

change to xlrd-1.0.0 directory,run sudo python setup.py install

3.use python file

python Localizable.py -f xxx/xxx -t xxx/xxx.xls :convert iOS Localizable.strings files to xls file

stoeu

python LocalizableStringsXml.py -f xxx/xxx -t xxx/xxx.xls :convert Android strings.xml files to xls file

xmltoe

python LocalizableBack.py -f xxx/xxx.xls -t xxx/xxx :convert xls file to iOS Localizable.strings files & Android strings.xml files

etosu

python LocalizableToStringXml.py -f xxx/xxx.strings -t xxx/xxx.xml : convert Localizable.strings to strings.xml file

stoau

About

Python command line tool for conversion between iOS strings files and excel files & between android strings.xml files and excl files. & strings files to android strings.xml files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%