mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-03 07:42:15 -08:00
Update localization.py
This commit is contained in:
parent
0c1c9e74cd
commit
ff7027ffc0
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from modules import errors
|
from modules import errors, scripts
|
||||||
|
|
||||||
localizations = {}
|
localizations = {}
|
||||||
|
|
||||||
|
|
@ -17,7 +17,6 @@ def list_localizations(dirname):
|
||||||
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
|
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
|
||||||
localizations[fn] = [os.path.join(dirname, file)]
|
localizations[fn] = [os.path.join(dirname, file)]
|
||||||
|
|
||||||
from modules import scripts
|
|
||||||
for file in scripts.list_scripts("localizations", ".json"):
|
for file in scripts.list_scripts("localizations", ".json"):
|
||||||
fn, ext = os.path.splitext(file.filename)
|
fn, ext = os.path.splitext(file.filename)
|
||||||
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
|
fn = fn.replace(" ", "").replace("(", "_").replace(")","")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue