Skip to content

Commit

Permalink
Update localization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0902 committed Sep 11, 2023
1 parent ff7027f commit 413123f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 413123f

Please sign in to comment.