Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Translate strings before making changes to them.
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+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: |
|
|