Commit 413123f0 authored by liubo0902's avatar liubo0902 Committed by GitHub

Update localization.py

parent ff7027ff
......@@ -14,12 +14,10 @@ def list_localizations(dirname):
if ext.lower() != ".json":
continue
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
localizations[fn] = [os.path.join(dirname, file)]
for file in scripts.list_scripts("localizations", ".json"):
fn, ext = os.path.splitext(file.filename)
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
if fn not in localizations:
localizations[fn] = []
localizations[fn].append(file.path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment