mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
Update localization.py
This commit is contained in:
parent
ff7027ffc0
commit
413123f08a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user