From d9a4fa625d0d69677842c5e3b2ebca16b546ab83 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jul 2016 23:20:51 +0300 Subject: lang: add into translations all item names from item_db.conf --- lang/updatelang.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lang') 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 = "" -- cgit v1.2.3-70-g09d2