Skip to content
Browse files
Always translate Processing debug messages tab title
Fix #14287 (Redmine)
  • Loading branch information
m-kuhn committed Feb 18, 2016
1 parent 3e550e2 commit bcd3d92fa9a2b31b29ffd438a21778e490cf7aef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
@@ -83,7 +83,7 @@ def addToLog(msgtype, msg):
msgtypes = {ProcessingLog.LOG_ERROR: QgsMessageLog.CRITICAL,
ProcessingLog.LOG_INFO: QgsMessageLog.INFO,
ProcessingLog.LOG_WARNING: QgsMessageLog.WARNING, }
QgsMessageLog.logMessage(msg, "Processing", msgtypes[msgtype])
QgsMessageLog.logMessage(msg,"Processing"), msgtypes[msgtype])

@@ -137,6 +137,12 @@ def saveLog(fileName):
for entry in v:
f.write('%s|%s|%s\n' % (k,, entry.text))

def tr(string, context=''):
if context == '':
context = 'ProcessingLog'
return QCoreApplication.translate(context, string)

class LogEntry:

@@ -152,7 +152,7 @@ def popupError(self, error=None, url=None):
widget = iface.messageBar().createMessage('Connection problem', disambiguation),'Could not connect to scripts/models repository', disambiguation))
if error and url:
QgsMessageLog.logMessage("Network error code: {} on URL: {}").format(error, url), u"Processing", QgsMessageLog.CRITICAL)
QgsMessageLog.logMessage("Network error code: {} on URL: {}").format(error, url),"Processing"), QgsMessageLog.CRITICAL)
button = QPushButton(QCoreApplication.translate("Python", "View message log"), pressed=show_message_log)

0 comments on commit bcd3d92

Please sign in to comment.