Commit 18c5d9b4 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Results: Add window title translate.

Showing with 8 additions and 3 deletions
+8 -3
# CustomPlotValuesSelectionDialog.py -- Pamhyr
# Copyright (C) 2023 INRAE
# Copyright (C) 2023 - 2024 INRAE
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
......@@ -30,10 +30,11 @@ class CustomPlotValuesSelectionDialog(PamhyrDialog):
_pamhyr_name = "Custom Plot Selection"
def __init__(self, parent=None):
trad = CustomPlotTranslate()
super(CustomPlotValuesSelectionDialog, self).__init__(
title=self._pamhyr_name,
title=trad[self._pamhyr_name],
options=[],
trad=CustomPlotTranslate(),
trad=trad,
parent=parent
)
......
......@@ -27,6 +27,10 @@ class CustomPlotTranslate(ResultsTranslate):
def __init__(self):
super(CustomPlotTranslate, self).__init__()
self._dict["Custom Plot Selection"] = _translate(
"CustomPlot", "Custom Plot Selection"
)
# Value type
self._dict['time'] = _translate(
......
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