From fa50632a9d87c3989566fed3e49c160a132e0d14 Mon Sep 17 00:00:00 2001 From: Agustin Henze Date: Sun, 9 Mar 2014 03:14:40 +0100 Subject: Imported Upstream version 6.4.0 --- scripts/import_po.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/import_po.py') 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() -- cgit v1.2.3