mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
processing: fix translation context for AlgorithmDialogBase
This commit is contained in:
parent
5d989abd6f
commit
6a3753e2e8
@ -99,11 +99,11 @@ class GdalParametersPanel(ParametersPanel):
|
||||
self.parent.setParamValues()
|
||||
for output in self.alg.outputs:
|
||||
if output.value is None:
|
||||
output.value = "[temporary file]"
|
||||
output.value = self.tr("[temporary file]")
|
||||
commands = self.alg.getConsoleCommands()
|
||||
commands = [c for c in commands if c not in ['cmd.exe', '/C ']]
|
||||
self.text.setPlainText(" ".join(commands))
|
||||
except AlgorithmDialogBase.InvalidParameterValue as e:
|
||||
self.text.setPlainText("Invalid value for parameter '%s'" % e.parameter.description)
|
||||
self.text.setPlainText(self.tr("Invalid value for parameter '%s'") % e.parameter.description)
|
||||
except:
|
||||
self.text.setPlainText("")
|
||||
|
@ -45,11 +45,6 @@ WIDGET, BASE = uic.loadUiType(
|
||||
|
||||
class AlgorithmDialogBase(BASE, WIDGET):
|
||||
|
||||
class InvalidParameterValue(Exception):
|
||||
|
||||
def __init__(self, param, widget):
|
||||
(self.parameter, self.widget) = (param, widget)
|
||||
|
||||
def __init__(self, alg):
|
||||
super(AlgorithmDialogBase, self).__init__(iface.mainWindow())
|
||||
self.setupUi(self)
|
||||
@ -175,3 +170,8 @@ class AlgorithmDialogBase(BASE, WIDGET):
|
||||
|
||||
def finish(self):
|
||||
pass
|
||||
|
||||
class InvalidParameterValue(Exception):
|
||||
|
||||
def __init__(self, param, widget):
|
||||
(self.parameter, self.widget) = (param, widget)
|
||||
|
Loading…
x
Reference in New Issue
Block a user