Wrap warnings message in self.tr()

This commit is contained in:
donoban 2020-12-16 11:30:39 +01:00
parent 9152218921
commit b72cc34a83
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -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])