BC: Translate window title.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-12 13:58:39 +01:00
1 parent 0391775fed
commit 62aaa276a7
4 files changed
+16 -5

No files matched your search

+2 -3
View File
@@ -105,12 +105,11 @@ class EditBoundaryConditionWindow(PamhyrWindow):
trad = BCETranslate()
self._long_types = trad.get_dict("long_types")
name = self._pamhyr_name
name = trad[self._pamhyr_name]
if self._data is not None:
node_name = (self._data.node.name if self._data.node is not None
else _translate("BoundaryCondition", "Not associate"))
name = (
_translate("Edit boundary condition", self._pamhyr_name) +
name += (
f" - {study.name} " +
f" - {self._data.name} ({self._data.id}) " +
f"({self._long_types[self._data.bctype]} - {node_name})"
@@ -29,6 +29,10 @@ class BCETranslate(BCTranslate):
def __init__(self):
super(BCETranslate, self).__init__()
self._dict["Edit Boundary Conditions"] = _translate(
"BoundaryCondition", "Edit boundary conditions"
)
self._sub_dict["table_headers"] = {
"x": _translate("BoundaryCondition", "X"),
"y": _translate("BoundaryCondition", "Y"),