mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Add window title translate.
This commit is contained in:
1 parent
a519228856
commit
a7c56e3920
2 files changed
+9
-2
No files matched your search
@@ -56,11 +56,14 @@ class NetworkWindow(PamhyrWindow):
|
|||||||
_pamhyr_name = "River network"
|
_pamhyr_name = "River network"
|
||||||
|
|
||||||
def __init__(self, study=None, config=None, parent=None):
|
def __init__(self, study=None, config=None, parent=None):
|
||||||
|
trad = NetworkTranslate()
|
||||||
|
name = trad[self._pamhyr_name] + " - " + study.name
|
||||||
|
|
||||||
super(NetworkWindow, self).__init__(
|
super(NetworkWindow, self).__init__(
|
||||||
title=self._pamhyr_name + " - " + study.name,
|
title=name,
|
||||||
study=study,
|
study=study,
|
||||||
config=config,
|
config=config,
|
||||||
trad=NetworkTranslate(),
|
trad=trad,
|
||||||
options=['undo'],
|
options=['undo'],
|
||||||
parent=parent,
|
parent=parent,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ class NetworkTranslate(PamhyrTranslate):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(NetworkTranslate, self).__init__()
|
super(NetworkTranslate, self).__init__()
|
||||||
|
|
||||||
|
self._dict["River network"] = _translate(
|
||||||
|
"Network", "River network"
|
||||||
|
)
|
||||||
|
|
||||||
self._sub_dict["table_headers_node"] = {
|
self._sub_dict["table_headers_node"] = {
|
||||||
"name": _translate("Network", "Name"),
|
"name": _translate("Network", "Name"),
|
||||||
"type": _translate("Network", "Type"),
|
"type": _translate("Network", "Type"),
|
||||||
|
|||||||
Reference in new issue
Block a user