Skip to content

Commit

Permalink
translation string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 4, 2017
1 parent aaac8bd commit cfaa8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, alg):

self.setMainWidget(GdalParametersPanel(self, alg))

self.runAsBatchButton = QPushButton(self.tr("Run as Batch Process…"))
self.runAsBatchButton = QPushButton(self.trUtf8("Run as Batch Process…"))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
self.buttonBox.addButton(self.runAsBatchButton, QDialogButtonBox.ResetRole) # reset role to ensure left alignment

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, alg):
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)

self.runAsBatchButton = QPushButton(self.tr("Run as Batch Process…"))
self.runAsBatchButton = QPushButton(self.trUtf8("Run as Batch Process…"))
self.runAsBatchButton.clicked.connect(self.runAsBatch)
self.buttonBox.addButton(self.runAsBatchButton, QDialogButtonBox.ResetRole) # reset role to ensure left alignment

Expand Down

1 comment on commit cfaa8f0

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jef-n I had to revert this in 79a095c - I can't see why but it throws a python exception about 'AlgorithmDialog' object has no attribute 'trUtf8'

Please sign in to comment.