mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 08:34:01 +00:00
Renamed setup.py command get_po_files to pull_translations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
4
setup.py
4
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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user