summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-26 00:43:04 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-26 00:43:04 +0300
commit5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194 (patch)
treebac01b9546d6693732b6637c726c4a099f2ebf8a /lang
parent9936e788d97c76bee0a4c9e3592ddbf32d85894f (diff)
downloadevol-tools-5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194.tar.gz
evol-tools-5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194.tar.bz2
evol-tools-5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194.tar.xz
evol-tools-5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194.zip
lang: add support for lg function with two arguments.
Diffstat (limited to 'lang')
-rwxr-xr-xlang/updatelang.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py
index fe2dbd3..fa4a157 100755
--- a/lang/updatelang.py
+++ b/lang/updatelang.py
@@ -15,9 +15,10 @@ allStrings = set()
strre1 = re.compile("[\t +(]l[(][\"](?P<str>[^\"]+)[\"]")
strre3 = re.compile("[\t +(]getitemlink[(][\"](?P<str>[^\"]+)[\"][)]")
strre2 = re.compile("^[^/](.+)([^\t]+)[\t](script|shop)[\t](?P<str>[^\t]+)[\t]([\d]+),")
-strre4 = re.compile("[\t +(]lg[(][\"](?P<str>[^\"]+)[\"]")
+strre4 = re.compile("[\t +(]lg[(][\"](?P<str>[^\"]+)[\"][)]")
strre5 = re.compile("[\t +(]getitemname[(][\"](?P<str>[^\"]+)[\"][)]")
strre6 = re.compile("[\t ]mesn[ ][\"](?P<str>[^\"]+)[\"]")
+strre7 = re.compile("[\t +(]lg[(][\"](?P<str1>[^\"]+)[\"],([ ]*)[\"](?P<str2>[^\"]+)[\"]")
itemsplit = re.compile(",")
langFiles = dict()
@@ -63,6 +64,11 @@ def collectStrings(parentDir):
if len(m) > 0:
for str in m:
allStrings.add(str)
+ m = strre7.findall(line)
+ if len(m) > 0:
+ for str in m:
+ allStrings.add(str[0] + "#0")
+ allStrings.add(str[2] + "#1")