0ad/source/tools/i18n
Dunedan 0bbd2ad7dd
Improve linting of PO files
During the mogration to git e9d1cb6cc7 removed the
`lint-translations.sh` script which was used together with
`check_translations.py` to lint POT- and PO-files. By doing so it
removed a valuable option to find problems in translations.

This commit undos that by merging the functionality of the removed
`lint-translations.sh` and `check_translations.py` into the latter
one. The new logic is easier to maintain, produces less false-positives
and has some unit test coverage.
2024-10-17 19:23:50 +02:00
..
i18n_helper Enable various ruff rules 2024-09-21 20:54:30 +02:00
tests Improve linting of PO files 2024-10-17 19:23:50 +02:00
check_diff.py Specify the Python target version in ruff.toml 2024-09-21 20:54:24 +02:00
check_translations.py Improve linting of PO files 2024-10-17 19:23:50 +02:00
clean_translation_files.py Avoid unnecessary computations 2024-09-22 07:59:07 +02:00
credit_translators.py Use PEP 8 naming conventions for i18n tools 2024-09-03 13:51:27 +02:00
generate_debug_translation.py Use PEP 8 naming conventions for i18n tools 2024-09-03 13:51:27 +02:00
get-nightly-translations.sh Fix issues pointed out by shellcheck 2024-08-28 18:23:18 +02:00
pull_translations.py Speed up fetching of translations from Transifex 2024-09-10 07:34:48 +02:00
README.md Add a markdownlint pre-commit hook 2024-08-27 10:06:31 +02:00
requirements.txt Improve linting of PO files 2024-10-17 19:23:50 +02:00
update_templates.py Simplify code by making use of early returns 2024-09-11 17:52:10 +02: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