diff options
| author | 2014-03-09 03:14:40 +0100 | |
|---|---|---|
| committer | 2014-03-09 03:14:40 +0100 | |
| commit | fa50632a9d87c3989566fed3e49c160a132e0d14 (patch) | |
| tree | 81f58cc0dcfbb34710856b59c034bc47c53d91dc /scripts/import_po.py | |
| parent | 2828399ba5cbb14502b023d4de1ba02f13dd5055 (diff) | |
Imported Upstream version 6.4.0upstream/6.4.0
Diffstat (limited to 'scripts/import_po.py')
| -rwxr-xr-x | scripts/import_po.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/import_po.py b/scripts/import_po.py index 224826c..7e99064 100755 --- a/scripts/import_po.py +++ b/scripts/import_po.py @@ -6,10 +6,12 @@ from __future__ import unicode_literals, print_function import codecs from glob import glob import os - +import sys import polib -os.system("tx pull -a") +if 'nopull' not in sys.argv: + os.system("tx pull -a") + trans_files = glob(os.path.join('translations', 'nikola.messages', '*.po')) for fname in trans_files: lang = os.path.splitext(os.path.basename(fname))[0].lower() |
