From a200adb51a1786b4285c28fc7acfea0a546f625c Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Mon, 12 Feb 2024 15:17:17 +0100 Subject: [PATCH] RunSolver: Add windows title translate. --- src/View/RunSolver/Log/Window.py | 5 +++-- src/View/RunSolver/Window.py | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/View/RunSolver/Log/Window.py b/src/View/RunSolver/Log/Window.py index 3e343a45..ddac9c69 100644 --- a/src/View/RunSolver/Log/Window.py +++ b/src/View/RunSolver/Log/Window.py @@ -1,5 +1,5 @@ # Window.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 @@ -55,8 +55,9 @@ class SolverLogFileWindow(PamhyrWindow): self._solver = solver self._file_name = file_name + name = _translate("Solver", "Solver logs") super(SolverLogFileWindow, self).__init__( - title=self._pamhyr_name, + title=name, study=study, config=config, options=[], diff --git a/src/View/RunSolver/Window.py b/src/View/RunSolver/Window.py index bc7f62cf..2e090668 100644 --- a/src/View/RunSolver/Window.py +++ b/src/View/RunSolver/Window.py @@ -1,5 +1,5 @@ # Window.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 @@ -64,8 +64,9 @@ class SelectSolverWindow(PamhyrDialog): parent=None): self._solver = None + name = _translate("Solver", "Select solver") super(SelectSolverWindow, self).__init__( - title=self._pamhyr_name, + title=name, study=study, config=config, options=[], @@ -141,8 +142,9 @@ class SolverLogWindow(PamhyrWindow): self._solver = solver self._results = None + name = _translate("Solver", "Select log") super(SolverLogWindow, self).__init__( - title=self._pamhyr_name, + title=name, study=study, config=config, options=[], -- GitLab