RunSolver: Add windows title translate.

setup.py
Pierre-Antoine Rouby 2024-02-12 15:17:17 +01:00
parent 6ea00200b0
commit a200adb51a
2 changed files with 8 additions and 5 deletions

View File

@ -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=[],

View File

@ -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=[],