Renamed setup.py command get_po_files to pull_translations

This commit is contained in:
Philipp Wolfer
2020-09-06 19:45:22 +02:00
parent 5f4e524318
commit 94420d7715
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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,
},