diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-16 17:24:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-16 17:24:29 +0300 |
commit | 36f4fb3c6dcf2d7c6a50cc9c6ae1f91e09ffe69a (patch) | |
tree | 821d013b3c54821e8467d7cae9a6ff40fbc3cdf7 /lang | |
parent | 2276dbc8c7413043993004199f658dfb8712447d (diff) | |
download | evol-tools-36f4fb3c6dcf2d7c6a50cc9c6ae1f91e09ffe69a.tar.gz evol-tools-36f4fb3c6dcf2d7c6a50cc9c6ae1f91e09ffe69a.tar.bz2 evol-tools-36f4fb3c6dcf2d7c6a50cc9c6ae1f91e09ffe69a.tar.xz evol-tools-36f4fb3c6dcf2d7c6a50cc9c6ae1f91e09ffe69a.zip |
lang: add support for parsing function itemname().
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 9fd1459..2166c7f 100755 --- a/lang/updatelang.py +++ b/lang/updatelang.py @@ -16,6 +16,7 @@ strre1 = re.compile("[\t +(]l[(][\"](?P<str>[^\"]+)[\"]") strre3 = re.compile("[\t +(]getitemlink[(][\"](?P<str>[^\"]+)[\"][)]") strre2 = re.compile("^[^/](.+)[.]gat([^\t]+)[\t](script|shop)[\t](?P<str>[\w ]+)[\t]([\d]+),") strre4 = re.compile("[\t +(]lg[(][\"](?P<str>[^\"]+)[\"]") +strre5 = re.compile("[\t +(]getitemname[(][\"](?P<str>[^\"]+)[\"][)]") itemsplit = re.compile(",") langFiles = dict() @@ -51,7 +52,12 @@ def collectStrings(parentDir): if len(m) > 0: for str in m: allStrings.add(itemNamesByName[str.lower()]) - + m = strre5.findall(line) + if len(m) > 0: + for str in m: + allStrings.add(itemNamesByName[str.lower()]) + + def loadFiles(dir): with open(dir + "/langs.txt", "r") as f: |