Skip to content

Commit

Permalink
de-plenk exclamation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 25, 2016
1 parent e1d3dd5 commit 962726c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/ext/r_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def checkParameterValuesBeforeExecuting(alg):
raster = alg.getParameterValue(u'raster')

if rules and txtrules:
return alg.tr("You need to set either a rules file or write directly the rules !")
return alg.tr("You need to set either a rules file or write directly the rules!")
elif (rules and raster) or (txtrules and raster):
return alg.tr("You need to set either rules or a raster from which to copy categories !")
return alg.tr("You need to set either rules or a raster from which to copy categories!")

return None

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue('rules_txt') and alg.getParameterValue('rules'):
return alg.tr("You need to set either inline rules or a rules file !")
return alg.tr("You need to set either inline rules or a rules file!")

return None

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_drain.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue('start_coordinates') and alg.getParameterValue('start_points'):
return alg.tr("You need to set either start coordinates OR a start points vector layer !")
return alg.tr("You need to set either start coordinates OR a start points vector layer!")

parameters = [alg.getParameterValue(f) for f in ['-c', '-a', '-n']]
paramscore = [f for f in parameters if f]
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_li.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def checkMovingWindow(alg, outputTxt=False):
configTxt = alg.getParameterValue('config_txt')
config = alg.getParameterValue('config')
if configTxt and config:
return alg.tr("You need to set either inline configuration or a configuration file !")
return alg.tr("You need to set either inline configuration or a configuration file!")

# Verify that configuration is in moving window
movingWindow = False
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_orig.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def checkMovingWindow(alg):
configTxt = alg.getParameterValue('config_txt')
config = alg.getParameterValue('config')
if configTxt and config:
return alg.tr("You need to set either inline configuration or a configuration file !")
return alg.tr("You need to set either inline configuration or a configuration file!")

# Verify that configuration is in moving window
movingWindow = False
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_mapcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue('expression') and alg.getParameterValue('file'):
return alg.tr("You need to set either inline expression or a rules file !")
return alg.tr("You need to set either inline expression or a rules file!")

return None

Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/ext/r_resamp_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def checkParameterValuesBeforeExecuting(alg):
y_radius = alg.getParameterValue(u'y_radius')

if (not radius and not x_radius and not y_radius) or (radius and (x_radius or y_radius)):
return alg.tr("You need to set either radius or x_radius and y_radius !")
return alg.tr("You need to set either radius or x_radius and y_radius!")
elif (x_radius and not y_radius) or (y_radius and not x_radius):
return alg.tr("You need to set x_radius and y_radius !")
return alg.tr("You need to set x_radius and y_radius!")
return None
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/grass7/ext/r_series_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def checkParameterValuesBeforeExecuting(alg):
outfile = alg.getParameterValue(u'outfile')

if datapos and infile:
return alg.tr("You need to set either inline data positions or an input data positions file !")
return alg.tr("You need to set either inline data positions or an input data positions file!")
if output and outfile:
return alg.tr("You need to set either sampling data positions or an output sampling data positions file !")
return alg.tr("You need to set either sampling data positions or an output sampling data positions file!")
if not (datapos or infile or output or outfile):
return alg.tr("You need to set input and output data positions parameters !")
return alg.tr("You need to set input and output data positions parameters!")
return None


Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_shade.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue('brighten') and alg.getParameterValue('bgcolor'):
return alg.tr("You need to set either a brighten percentage or a NULL color !")
return alg.tr("You need to set either a brighten percentage or a NULL color!")
return None


Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
def checkParameterValuesBeforeExecuting(alg):
methodList = alg.getParameterValue('method').split(",")
if len([f for f in methodList if f not in methodRef.keys()]) > 0 and not alg.getParameterValue('-a'):
return alg.tr("You need to set the method list with the following values only: asm, contrast, corr, var, idm, sa, se, sv, entr, dv, de, moc1, moc2 !")
return alg.tr("You need to set the method list with the following values only: asm, contrast, corr, var, idm, sa, se, sv, entr, dv, de, moc1, moc2!")

return None

Expand Down

0 comments on commit 962726c

Please sign in to comment.