diff options
Diffstat (limited to 'lang/updatelang.py')
-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: |