diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-13 18:27:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-13 18:27:04 +1200 |
commit | b5e5718ca139bac9debc2d0de7026478a8cb127a (patch) | |
tree | fcc5f8d8bae972bb05ec9ae947587ded2215b240 | |
parent | 64cfb89dcd87280559ec6d5867c8f309b9df4181 (diff) | |
download | traccar-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.tar.gz traccar-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.tar.bz2 traccar-server-b5e5718ca139bac9debc2d0de7026478a8cb127a.zip |
Update translation script
-rwxr-xr-x | tools/translate.py | 3 |
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 + "'") |