From 9fa9025760c597f80da97776789c8400b7b5f18c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Mar 2016 16:11:58 +0300 Subject: lang: dont translate english to english in pot file. --- lang/updatelang.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lang') 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/" -- cgit v1.2.3-70-g09d2