mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Add window title translate.
parent
fe5c050c61
commit
18c5d9b480
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue