1
0
forked from 0ad/0ad
0ad/source/tools/i18n
wraitii 1b150b303f Update i18n scripts to run on Python3
The `pology` library runs on Python2 and development appears stalled. It
is also not available on pip.
The `babel` library, BSD-licensed, provides, amongst many other things,
a replacement for .POT / .PO manipulation.

The `poediff` tool that we used to detect spurious i18n change is
replaced with a Python script that does a simpler but good enough job
(it is also much, much faster).

These replacements let the i18n scripts run on Python3 entirely.

Makes D506 redundant.

Comments by: Itms
Reviewed By: Gallaecio
Refs #5694

Differential Revision: https://code.wildfiregames.com/D2757
This was SVN commit r24313.
2020-12-02 10:05:27 +00:00
..
extractors Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
i18n_helper Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
tests Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
checkDiff.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
checkTranslationsForSpam.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
creditTranslators.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
generateLongStringTranslations.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
maintenanceTasks.sh Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
pullTranslations.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
README.md Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
requirements.txt Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00
updateTemplates.py Update i18n scripts to run on Python3 2020-12-02 10:05:27 +00:00

i18n helper

This is a collection of scripts to automate 0 A.D.'s i18n process.

See maintenanceTasks.sh for the full process.

Run tests

pip3 install pytest
python3 -m pytest