From b72cc34a83c67494ecb35d5dda21e793fb93b2b6 Mon Sep 17 00:00:00 2001 From: donoban Date: Wed, 16 Dec 2020 11:30:39 +0100 Subject: [PATCH] Wrap warnings message in self.tr() --- qubesmanager/qube_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 4b023d2..7fda60d 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -827,7 +827,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): errors.append((info.name, str(ex))) for error in errors: - QMessageBox.warning(self, "{0} template change failed!" + QMessageBox.warning(self, self.tr("{0} template change failed!") .format(error[0]), error[1]) @@ -868,7 +868,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): errors.append((info.name, str(ex))) for error in errors: - QMessageBox.warning(self, "{0} network change failed!" + QMessageBox.warning(self, self.tr("{0} network change failed!") .format(error[0]), error[1])