diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-23 23:06:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-23 23:06:07 +0300 |
commit | 0d7986dc7ab311c9dbcf2e5cb879b124fe13119a (patch) | |
tree | 460ad45f4b44bbdbb1c27d7a9e49f3900bf25c42 | |
parent | 62463632a40e53428bd2adcc1a531d040c65b63f (diff) | |
download | evol-tools-0d7986dc7ab311c9dbcf2e5cb879b124fe13119a.tar.gz evol-tools-0d7986dc7ab311c9dbcf2e5cb879b124fe13119a.tar.bz2 evol-tools-0d7986dc7ab311c9dbcf2e5cb879b124fe13119a.tar.xz evol-tools-0d7986dc7ab311c9dbcf2e5cb879b124fe13119a.zip |
lang: add parse mesn "name".
-rwxr-xr-x | lang/updatelang.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/updatelang.py b/lang/updatelang.py index 2166c7f..dbb8950 100755 --- a/lang/updatelang.py +++ b/lang/updatelang.py @@ -17,6 +17,7 @@ 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>[^\"]+)[\"][)]") +strre6 = re.compile("[\t ]mesn[ ][\"](?P<str>[^\"]+)[\"]") itemsplit = re.compile(",") langFiles = dict() @@ -56,6 +57,11 @@ def collectStrings(parentDir): if len(m) > 0: for str in m: allStrings.add(itemNamesByName[str.lower()]) + m = strre6.findall(line) + if len(m) > 0: + for str in m: + allStrings.add(str) + |