CheckList: Add window title translate.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-12 14:02:55 +01:00
1 parent 62aaa276a7
commit 6340d9ea0b
2 files changed
+8 -2

No files matched your search

+4
View File
@@ -27,6 +27,10 @@ class CheckListTranslate(PamhyrTranslate):
def __init__(self):
super(CheckListTranslate, self).__init__()
self._dict["Check list"] = _translate(
"Checklist", "Check list"
)
self._sub_dict["table_headers"] = {
"name": _translate("CheckList", "Name"),
"status": _translate("CheckList", "Status"),
+4 -2
View File
@@ -54,16 +54,18 @@ class CheckListWindow(PamhyrWindow):
def __init__(self, autorun: bool = True,
study=None, config=None,
solver=None, parent=None):
trad = CheckListTranslate()
self._autorun = autorun
self._solver = solver
name = self._pamhyr_name + " - " + study.name
name = trad[self._pamhyr_name] + " - " + study.name
super(CheckListWindow, self).__init__(
title=name,
study=study,
config=config,
trad=CheckListTranslate(),
trad=trad,
options=[],
parent=parent
)