Skip to content

Commit 94420d7

Browse files
committed
Renamed setup.py command get_po_files to pull_translations
1 parent 5f4e524 commit 94420d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

RELEASING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ git ls-tree --full-tree -r HEAD --name-only |while read f; do sed -i '1s/^\xEF\x
5252
## Get latest translations from Transifex
5353

5454
```bash
55-
python setup.py get_po_files && git diff --quiet || git commit -m 'Update .po files' -- po/
55+
python setup.py pull_translations && git diff --quiet || git commit -m 'Update .po files' -- po/
5656
```
5757

5858
## Synchronize generated consts

po/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ To fetch latest translations from Transifex
4545
Use the following command:
4646

4747
```bash
48-
$ python setup.py get_po_files
48+
$ python setup.py pull_translations
4949
```
5050

5151
It will fetch all po files from Transifex, but the most incomplete ones.
5252

5353
The minimum acceptable percentage of a translation in order to download it can be seen using:
5454
```bash
55-
$ python setup.py get_po_files --help
55+
$ python setup.py pull_translations --help
5656
```
5757
The percentage value is passed to the `tx pull` command.

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def run(self):
472472
])
473473

474474

475-
class picard_get_po_files(Command):
475+
class picard_pull_translations(Command):
476476
description = "Retrieve po files from transifex"
477477
minimum_perc_default = 5
478478
user_options = [
@@ -767,7 +767,7 @@ def _picard_packages():
767767
'install': picard_install,
768768
'install_locales': picard_install_locales,
769769
'update_constants': picard_update_constants,
770-
'get_po_files': picard_get_po_files,
770+
'pull_translations': picard_pull_translations,
771771
'regen_pot_file': picard_regen_pot_file,
772772
'patch_version': picard_patch_version,
773773
},

0 commit comments

Comments
 (0)