diff --git a/src/View/Results/CustomPlot/CustomPlotValuesSelectionDialog.py b/src/View/Results/CustomPlot/CustomPlotValuesSelectionDialog.py index 1ffd673245db1eb4c9c00d2a4a83a7075f844663..0ef72c2c71d73660bf128bf6bf48d5766e807a08 100644 --- a/src/View/Results/CustomPlot/CustomPlotValuesSelectionDialog.py +++ b/src/View/Results/CustomPlot/CustomPlotValuesSelectionDialog.py @@ -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 ) diff --git a/src/View/Results/CustomPlot/Translate.py b/src/View/Results/CustomPlot/Translate.py index 43841c01f901de3410e1ade3f6e6e6367a555c1a..170157817079da0d7cf88e31851c651983ccc476 100644 --- a/src/View/Results/CustomPlot/Translate.py +++ b/src/View/Results/CustomPlot/Translate.py @@ -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(