Skip to content

Commit be8467d

Browse files
committed
revue de la translation dengines
1 parent 7ad52a3 commit be8467d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/engines_loader/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def apply_translations(gui, tr: dict) -> None:
128128
for eid, inst in list(_INSTANCES.items()):
129129
try:
130130
fn = getattr(inst, "apply_i18n", None)
131-
if callable(fn):
131+
if callable(fn) and isinstance(tr, dict):
132132
fn(gui, tr)
133133
except Exception:
134134
continue

0 commit comments

Comments
 (0)