diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-26 00:43:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-26 00:43:04 +0300 |
commit | 5e41522f8e2b9b26d2ee4db34f1a7a4cbfe2b194 (patch) | |
tree | bac01b9546d6693732b6637c726c4a099f2ebf8a /lang | |
parent | 9936e788d97c76bee0a4c9e3592ddbf32d85894f (diff) | |
download | evol-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-x | lang/updatelang.py | 8 |
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") |