Commit 6340d9ea authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

CheckList: Add window title translate.

Showing with 8 additions and 2 deletions
+8 -2
...@@ -27,6 +27,10 @@ class CheckListTranslate(PamhyrTranslate): ...@@ -27,6 +27,10 @@ class CheckListTranslate(PamhyrTranslate):
def __init__(self): def __init__(self):
super(CheckListTranslate, self).__init__() super(CheckListTranslate, self).__init__()
self._dict["Check list"] = _translate(
"Checklist", "Check list"
)
self._sub_dict["table_headers"] = { self._sub_dict["table_headers"] = {
"name": _translate("CheckList", "Name"), "name": _translate("CheckList", "Name"),
"status": _translate("CheckList", "Status"), "status": _translate("CheckList", "Status"),
......
...@@ -54,16 +54,18 @@ class CheckListWindow(PamhyrWindow): ...@@ -54,16 +54,18 @@ class CheckListWindow(PamhyrWindow):
def __init__(self, autorun: bool = True, def __init__(self, autorun: bool = True,
study=None, config=None, study=None, config=None,
solver=None, parent=None): solver=None, parent=None):
trad = CheckListTranslate()
self._autorun = autorun self._autorun = autorun
self._solver = solver self._solver = solver
name = self._pamhyr_name + " - " + study.name name = trad[self._pamhyr_name] + " - " + study.name
super(CheckListWindow, self).__init__( super(CheckListWindow, self).__init__(
title=name, title=name,
study=study, study=study,
config=config, config=config,
trad=CheckListTranslate(), trad=trad,
options=[], options=[],
parent=parent parent=parent
) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment