diff --git a/cura/CrashHandler.py b/cura/CrashHandler.py index 57d25b9bfa..9e1dc0897d 100644 --- a/cura/CrashHandler.py +++ b/cura/CrashHandler.py @@ -5,6 +5,7 @@ import webbrowser from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, QCoreApplication from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QTextEdit +from UM.i18n import i18nCatalog def show(type, value, tb): if not hasattr(sys, "frozen"): @@ -15,13 +16,13 @@ def show(type, value, tb): sys.exit(1) dialog = QDialog() - dialog.setWindowTitle("Oops!") + dialog.setWindowTitle(self._i18n_catalog.i18nc("@title:errormessage", "Oops!")) layout = QVBoxLayout(dialog) label = QLabel(dialog) layout.addWidget(label) - label.setText("
An uncaught exception has occurred!
Please use the information below to post a bug report at http://github.com/Ultimaker/Cura/issues
") + label.setText(self._i18n_catalog.i18nc("@info:errormessage", "An uncaught exception has occurred!
Please use the information below to post a bug report at http://github.com/Ultimaker/Cura/issues
")) textarea = QTextEdit(dialog) layout.addWidget(textarea) @@ -41,7 +42,7 @@ def show(type, value, tb): buttons = QDialogButtonBox(QDialogButtonBox.Close, dialog) layout.addWidget(buttons) - buttons.addButton("Open Web Page", QDialogButtonBox.HelpRole) + buttons.addButton(self._i18n_catalog.i18nc("action:button", "Open Web Page"), QDialogButtonBox.HelpRole) buttons.rejected.connect(lambda: dialog.close()) buttons.helpRequested.connect(lambda: webbrowser.open("http://github.com/Ultimaker/Cura/issues")) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 74cf9d8beb..47b52912ac 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -132,7 +132,7 @@ class CuraApplication(QtApplication): "message": "font color=UM.Theme.colors.message_text;", }) - self.showSplashMessage(self._i18n_catalog.i18nc("Splash screen message", "Setting up scene...")) + self.showSplashMessage(self._i18n_catalog.i18nc("@info:splashscreen", "Setting up scene...")) controller = self.getController() @@ -166,7 +166,7 @@ class CuraApplication(QtApplication): controller.getScene().setActiveCamera("3d") - self.showSplashMessage(self._i18n_catalog.i18nc("Splash screen message", "Loading interface...")) + self.showSplashMessage(self._i18n_catalog.i18nc("@info:splashscreen", "Loading interface...")) self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml")) self.initializeEngine()