diff --git a/python/plugins/processing/gui/Postprocessing.py b/python/plugins/processing/gui/Postprocessing.py index ffe40ad7b355..bcfdbc0694bc 100644 --- a/python/plugins/processing/gui/Postprocessing.py +++ b/python/plugins/processing/gui/Postprocessing.py @@ -78,15 +78,15 @@ def handleAlgorithmResults(alg, context, feedback=None, showResults=True): layer.loadNamedStyle(style) details.project.addMapLayer(context.temporaryLayerStore().takeMapLayer(layer)) except Exception: - QgsMessageLog.logMessage("Error loading result layer:\n" + traceback.format_exc(), 'Processing', QgsMessageLog.CRITICAL) + QgsMessageLog.logMessage(QCoreApplication.translate('Postprocessing', "Error loading result layer:") + "\n" + traceback.format_exc(), 'Processing', QgsMessageLog.CRITICAL) wrongLayers.append(str(l)) i += 1 QApplication.restoreOverrideCursor() if wrongLayers: - msg = "The following layers were not correctly generated." - msg += "You can check the log messages to find more information about the execution of the algorithm" + msg = QCoreApplication.translate('Postprocessing', "The following layers were not correctly generated.") + msg += "" + msg += QCoreApplication.translate('Postprocessing', "You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.") feedback.reportError(msg) return len(wrongLayers) == 0