Skip to content
Permalink
Browse files

Translate strings before making changes to them.

  • Loading branch information
ajolma authored and nyalldawson committed Mar 9, 2018
1 parent 198bf77 commit b0cd3fb5f0927c2f67044a59c4fc50afc5f6e63c
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/AlgorithmDialog.py
@@ -221,7 +221,7 @@ def accept(self):
self.cancelButton().setEnabled(self.algorithm().flags() & QgsProcessingAlgorithm.FlagCanCancel)
if executeIterating(self.algorithm(), parameters, self.iterateParam, context, feedback):
feedback.pushInfo(
self.tr('Execution completed in {0:0.2f} seconds'.format(time.time() - start_time)))
self.tr('Execution completed in {0:0.2f} seconds').format(time.time() - start_time))
self.cancelButton().setEnabled(False)
self.finish(True, parameters, context, feedback)
else:
@@ -235,12 +235,12 @@ def accept(self):

def on_complete(ok, results):
if ok:
feedback.pushInfo(self.tr('Execution completed in {0:0.2f} seconds'.format(time.time() - start_time)))
feedback.pushInfo(self.tr('Execution completed in {0:0.2f} seconds').format(time.time() - start_time))
feedback.pushInfo(self.tr('Results:'))
feedback.pushCommandInfo(pformat(results))
else:
feedback.reportError(
self.tr('Execution failed after {0:0.2f} seconds'.format(time.time() - start_time)))
self.tr('Execution failed after {0:0.2f} seconds').format(time.time() - start_time))
feedback.pushInfo('')

if self.feedback_dialog is not None:

0 comments on commit b0cd3fb

Please sign in to comment.
You can’t perform that action at this time.