aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-13 18:27:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-13 18:27:04 +1200
commitb5e5718ca139bac9debc2d0de7026478a8cb127a (patch)
treefcc5f8d8bae972bb05ec9ae947587ded2215b240 /tools
parent64cfb89dcd87280559ec6d5867c8f309b9df4181 (diff)
downloadtrackermap-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.tar.gz
trackermap-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.tar.bz2
trackermap-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.zip
Update translation script
Diffstat (limited to 'tools')
-rwxr-xr-xtools/translate.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/translate.py b/tools/translate.py
index 8087e3161..fd7d139df 100755
--- a/tools/translate.py
+++ b/tools/translate.py
@@ -13,6 +13,8 @@ files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith(
for f in files:
f = path + f
+ print 'en -> ' + f[-5:-3]
+
dict = {}
for line in open(f).read().splitlines():
@@ -28,6 +30,7 @@ for f in files:
if dict.has_key(match.group(1)):
value = dict[match.group(1)]
else:
+ print '"' + match.group(2) + '"'
value = match.group(2) + ' (*)'
out.write(' ' + match.group(1) + ": '" + value + "'")