The app's internationalization script can convert translated documents into Android and iOS formats.
The text first behavior translates the type of language, and the script automatically generates translated text based on the type (with the first column composing the translated text in the form of key-value)
The first column of the text is the index value of the translated text, that is, the key in the translation of each country (the key is available in all translations, so this column cannot be empty), and the other values are the value of the translated text of each country (automatically when switching languages) Change to this text)
The translate.py script supports txt text and Excel tables, but you need to introduce xlrd and openpyxl libraries for xls and xlsx format tables.
The translate_nolib.py script does not need to introduce third-party libraries, but only supports txt text. You can save the data in the Excel table as a txt file, or copy it into a text editor to generate a txt file (do not use the notepad that comes with Windows). Then use the script to generate a translation document with one click.
The above script is for Python 2 environment, not compatible with Python 3 (the main reason is the difference of Tkinter library, you can modify the Tkinter reference, or directly remove the GUI interface, the code can basically run)
- Python3 compatible
Excel document supportGUI interfaceDo not use third-party libraries to generate xml textSub-category to generate folders for translations of countries- ~~ One button to generate Android translation text~~
- ~~ One button to generate iOS translation text~~