summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-10 23:20:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-10 23:20:51 +0300
commitd9a4fa625d0d69677842c5e3b2ebca16b546ab83 (patch)
tree15e656d43585fc5c493284059de3ca1218dcccac /lang
parent80ce4b3733a7c63a357bfe21468e81c201cca1e0 (diff)
downloadevol-tools-d9a4fa625d0d69677842c5e3b2ebca16b546ab83.tar.gz
evol-tools-d9a4fa625d0d69677842c5e3b2ebca16b546ab83.tar.bz2
evol-tools-d9a4fa625d0d69677842c5e3b2ebca16b546ab83.tar.xz
evol-tools-d9a4fa625d0d69677842c5e3b2ebca16b546ab83.zip
lang: add into translations all item names from item_db.conf
Diffstat (limited to 'lang')
-rwxr-xr-xlang/updatelang.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index 07d2b72..6ba74c5 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -316,8 +316,14 @@ def stripQuotes(data):
def loadItemDb(dir):
global itemNamesByName
with open(dir + "/item_db.conf", "r") as f:
+ cnt = -1
for line in f:
line = line.strip()
+
+ idx = line.find("Name: \"")
+ if idx != 0 or line[len(line) - 1] != "\"":
+ continue
+ addStr(line[idx + 7: len(line) - 1], line, "item_db.conf", cnt, True)
if line == "{":
itemId = ""
itemName = ""