Skip to content

Commit bd13693

Browse files
committedOct 4, 2014
[processing] make bunch of strings translatable (sorry translators)
1 parent f935316 commit bd13693

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+331
-317
lines changed
 

‎python/plugins/processing/core/GeoAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def getPostProcessingErrorMessage(self, wrongLayers):
521521
for layer in wrongLayers:
522522
html += self.tr('<li>%s: <font size=3 face="Courier New" '
523523
'color="#ff0000">%s</font></li>\n') % \
524-
(layer.description, layer.value)
524+
(layer.description, layer.value)
525525
html += self.tr('</ul><p>The above files could not be opened, which '
526526
'probably indicates that they were not correctly '
527527
'produced by the executed algorithm</p>'
@@ -532,4 +532,4 @@ def getPostProcessingErrorMessage(self, wrongLayers):
532532
def tr(self, string, context=''):
533533
if context == '':
534534
context = 'GeoAlgorithm'
535-
return QtCore.QCoreApplication.translate(context, string)
535+
return QCoreApplication.translate(context, string)

‎python/plugins/processing/core/Processing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def addProvider(provider, updateList=False):
9595
Processing.updateAlgsList()
9696
except:
9797
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
98-
self.tr('Could not load provider: %s\n%s')
99-
% (provider.getDescription(), unicode(sys.exc_info()[1])))
98+
self.tr('Could not load provider: %s\n%s')
99+
% (provider.getDescription(), unicode(sys.exc_info()[1])))
100100
Processing.removeProvider(provider)
101101

102102
@staticmethod
@@ -284,16 +284,16 @@ def runAlgorithm(algOrName, onFinish, *args):
284284
print 'Error: Wrong parameter value %s for parameter %s.' \
285285
% (value, name)
286286
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
287-
self.tr("Error in %s. Wrong parameter value %s for parameter %s.") \
287+
self.tr('Error in %s. Wrong parameter value %s for parameter %s.') \
288288
% (alg.name, value, name))
289289
return
290290
# fill any missing parameters with default values if allowed
291291
for param in alg.parameters:
292292
if param.name not in setParams:
293293
if not param.setValue(None):
294-
print ("Error: Missing parameter value for parameter %s." % (param.name))
294+
print ('Error: Missing parameter value for parameter %s.' % (param.name))
295295
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
296-
self.tr("Error in %s. Missing parameter value for parameter %s.") \
296+
self.tr('Error in %s. Missing parameter value for parameter %s.') \
297297
% (alg.name, param.name))
298298
return
299299
else:

0 commit comments

Comments
 (0)
Please sign in to comment.