mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Study: Add window title translate.
This commit is contained in:
1 parent
58924aaf3a
commit
0071ef22d7
1 file changed
+5
-2
@@ -34,9 +34,12 @@ class NewStudyWindow(PamhyrDialog):
|
|||||||
|
|
||||||
def __init__(self, study=None, config=None, parent=None):
|
def __init__(self, study=None, config=None, parent=None):
|
||||||
if study is not None:
|
if study is not None:
|
||||||
name = f"Edit study - {study.name}"
|
name = (
|
||||||
|
_translate("Study", "Edit study")
|
||||||
|
+ f" - {study.name}"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
name = "New study"
|
name = _translate("Study", "New study")
|
||||||
|
|
||||||
super(NewStudyWindow, self).__init__(
|
super(NewStudyWindow, self).__init__(
|
||||||
title=name,
|
title=name,
|
||||||
|
|||||||
Reference in new issue
Block a user