From 94420d77157b7df6e08fce1f13bb7bf830b9c2ff Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Sun, 6 Sep 2020 19:45:22 +0200 Subject: [PATCH] Renamed setup.py command get_po_files to pull_translations --- RELEASING.md | 2 +- po/README.md | 4 ++-- setup.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RELEASING.md b/RELEASING.md index f974f4e84..496ad1753 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -52,7 +52,7 @@ git ls-tree --full-tree -r HEAD --name-only |while read f; do sed -i '1s/^\xEF\x ## Get latest translations from Transifex ```bash -python setup.py get_po_files && git diff --quiet || git commit -m 'Update .po files' -- po/ +python setup.py pull_translations && git diff --quiet || git commit -m 'Update .po files' -- po/ ``` ## Synchronize generated consts diff --git a/po/README.md b/po/README.md index a516c1208..ed29107da 100644 --- a/po/README.md +++ b/po/README.md @@ -45,13 +45,13 @@ To fetch latest translations from Transifex Use the following command: ```bash -$ python setup.py get_po_files +$ python setup.py pull_translations ``` It will fetch all po files from Transifex, but the most incomplete ones. The minimum acceptable percentage of a translation in order to download it can be seen using: ```bash -$ python setup.py get_po_files --help +$ python setup.py pull_translations --help ``` The percentage value is passed to the `tx pull` command. diff --git a/setup.py b/setup.py index 3b800989d..daf289f44 100644 --- a/setup.py +++ b/setup.py @@ -472,7 +472,7 @@ class picard_regen_appdata_pot_file(Command): ]) -class picard_get_po_files(Command): +class picard_pull_translations(Command): description = "Retrieve po files from transifex" minimum_perc_default = 5 user_options = [ @@ -767,7 +767,7 @@ args = { 'install': picard_install, 'install_locales': picard_install_locales, 'update_constants': picard_update_constants, - 'get_po_files': picard_get_po_files, + 'pull_translations': picard_pull_translations, 'regen_pot_file': picard_regen_pot_file, 'patch_version': picard_patch_version, },