mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Friction: Add window title translate.
This commit is contained in:
1 parent
87fcf1c610
commit
77de17d7e3
2 files changed
+8
-2
No files matched your search
@@ -62,6 +62,8 @@ class FrictionsWindow(PamhyrWindow):
|
||||
_pamhyr_name = "Edit frictions"
|
||||
|
||||
def __init__(self, reach=None, study=None, config=None, parent=None):
|
||||
trad = FrictionsTranslate()
|
||||
|
||||
if reach is not None:
|
||||
self._reach = reach
|
||||
else:
|
||||
@@ -70,7 +72,7 @@ class FrictionsWindow(PamhyrWindow):
|
||||
self._frictions = self._reach.frictions
|
||||
|
||||
name = (
|
||||
self._pamhyr_name + " - "
|
||||
trad[self._pamhyr_name] + " - "
|
||||
+ study.name + " - "
|
||||
+ self._reach.name
|
||||
)
|
||||
@@ -79,7 +81,7 @@ class FrictionsWindow(PamhyrWindow):
|
||||
title=name,
|
||||
study=study,
|
||||
config=config,
|
||||
trad=FrictionsTranslate(),
|
||||
trad=trad,
|
||||
parent=parent
|
||||
)
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@ class FrictionsTranslate(PamhyrTranslate):
|
||||
def __init__(self):
|
||||
super(FrictionsTranslate, self).__init__()
|
||||
|
||||
self._dict["Edit frictions"] = _translate(
|
||||
"Frictions", "Edit frictions"
|
||||
)
|
||||
|
||||
self._sub_dict["table_headers"] = {
|
||||
# "name": _translate("Frictions", "Name"),
|
||||
# "edge": _translate("Frictions", "Reach"),
|
||||
|
||||
Reference in new issue
Block a user