Results: Add window title translate.

setup.py
Pierre-Antoine Rouby 2024-02-12 15:08:40 +01:00
parent fe5c050c61
commit 18c5d9b480
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# 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
)

View File

@ -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(