Skip to content
Permalink
Browse files

processing: fix translation context for AlgorithmDialogBase

  • Loading branch information
jef-n committed Feb 14, 2016
1 parent 5d989ab commit 6a3753e2e8970fceabb7940b99b96447c72f9a3c
@@ -99,11 +99,11 @@ def parametersHaveChanged(self):
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 @@

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 @@ def accept(self):

def finish(self):
pass

class InvalidParameterValue(Exception):

def __init__(self, param, widget):
(self.parameter, self.widget) = (param, widget)

0 comments on commit 6a3753e

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