summaryrefslogtreecommitdiff
path: root/lang/updatelang.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-03 16:11:58 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-03 16:11:58 +0300
commit9fa9025760c597f80da97776789c8400b7b5f18c (patch)
treed90fd0d7119baf9c1d088b4bb1d0a417b346c3e6 /lang/updatelang.py
parentff4a2d28a121144c8f7f92234fc226cd2be5a7a1 (diff)
downloadevol-tools-9fa9025760c597f80da97776789c8400b7b5f18c.tar.gz
evol-tools-9fa9025760c597f80da97776789c8400b7b5f18c.tar.bz2
evol-tools-9fa9025760c597f80da97776789c8400b7b5f18c.tar.xz
evol-tools-9fa9025760c597f80da97776789c8400b7b5f18c.zip
lang: dont translate english to english in pot file.
Diffstat (limited to 'lang/updatelang.py')
-rwxr-xr-xlang/updatelang.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index d6afd4e..07d2b72 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -295,8 +295,7 @@ def writePoFile(poDir, texts, trans):
w.write ("msgid \"" + srcLine + "\"\n")
trLine = line[1]
if trans == "en":
- if len(trLine) > 2 and (trLine[-2:] == "#0" or trLine[-2:] == "#1"):
- trLine = trLine[:-2]
+ trLine = ""
trLine = trLine.replace("\\", "\\\\");
trLine = trLine.replace("\"", "\\\"")
w.write ("msgstr \"" + trLine + "\"\n\n")
@@ -365,7 +364,7 @@ def loadMobNames(dir):
idx = line.find("Name: \"")
if idx != 0 or line[len(line) - 1] != "\"":
continue
- addStr(line[idx + 7: len(line) - 1], line, "mob_db.txt", cnt, True)
+ addStr(line[idx + 7: len(line) - 1], line, "mob_db.conf", cnt, True)
rootPath = "../../server-data/"