Commit 0071ef22 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Study: Add window title translate.

Showing with 5 additions and 2 deletions
+5 -2
...@@ -34,9 +34,12 @@ class NewStudyWindow(PamhyrDialog): ...@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment