0ad/source/tools/i18n
Dunedan 57308bb847
Avoid unnecessary computations
This refactors the script for cleaning the translations to get the
same result by doing less. This is achieved by the following changes:

- Use glob-patterns for finding the files to clean more efficiently,
  without the need to exclude collected files again.
- Only write files which are supposed to be modified (previously all
  portable object files did get rewritten by this script, no matter if
  it did change something or not).
- Stop searching for sections in files to clean up, once they are
  already passed.
2024-09-22 07:59:07 +02:00
..
i18n_helper Enable various ruff rules 2024-09-21 20:54:30 +02:00
tests Specify the Python target version in ruff.toml 2024-09-21 20:54:24 +02:00
check_diff.py Specify the Python target version in ruff.toml 2024-09-21 20:54:24 +02:00
check_translations.py Use PEP 8 naming conventions for i18n tools 2024-09-03 13:51:27 +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 Remove contrib JS-lexer and use upstream one 2024-06-23 19:04:07 +00: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