|
10 | 10 |
|
11 | 11 | from modules.paths import script_path
|
12 | 12 |
|
13 |
| -from modules import devices, sd_samplers, upscaler, extensions |
| 13 | +from modules import devices, sd_samplers, upscaler, extensions, localization |
14 | 14 | import modules.codeformer_model as codeformer
|
15 | 15 | import modules.extras
|
16 | 16 | import modules.face_restoration
|
|
28 | 28 | import modules.script_callbacks
|
29 | 29 |
|
30 | 30 | import modules.ui
|
31 |
| -from modules import devices |
32 | 31 | from modules import modelloader
|
33 |
| -from modules.paths import script_path |
34 | 32 | from modules.shared import cmd_opts
|
35 | 33 | import modules.hypernetworks.hypernetwork
|
36 | 34 |
|
@@ -64,6 +62,7 @@ def f(*args, **kwargs):
|
64 | 62 |
|
65 | 63 | def initialize():
|
66 | 64 | extensions.list_extensions()
|
| 65 | + localization.list_localizations(cmd_opts.localizations_dir) |
67 | 66 |
|
68 | 67 | if cmd_opts.ui_debug_mode:
|
69 | 68 | shared.sd_upscalers = upscaler.UpscalerLanczos().scalers
|
@@ -99,7 +98,6 @@ def initialize():
|
99 | 98 | else:
|
100 | 99 | print("Running with TLS")
|
101 | 100 |
|
102 |
| - |
103 | 101 | # make the program just exit at ctrl+c without waiting for anything
|
104 | 102 | def sigint_handler(sig, frame):
|
105 | 103 | print(f'Interrupted with signal {sig} in {frame}')
|
@@ -185,6 +183,9 @@ def webui():
|
185 | 183 |
|
186 | 184 | print('Reloading extensions')
|
187 | 185 | extensions.list_extensions()
|
| 186 | + |
| 187 | + localization.list_localizations(cmd_opts.localizations_dir) |
| 188 | + |
188 | 189 | print('Reloading custom scripts')
|
189 | 190 | modules.scripts.reload_scripts()
|
190 | 191 | print('Reloading modules: modules.ui')
|
|
0 commit comments