mirror of https://gitlab.com/pamhyr/pamhyr2
Study: Add window title translate.
parent
58924aaf3a
commit
0071ef22d7
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue