mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-17 00:05:41 -05:00
Apply suggested changes from code review
Don't rename translation context
This commit is contained in:
parent
a3bb769887
commit
5c46dab5ce
@ -180,5 +180,5 @@ class GrassProvider(QgsProcessingProvider):
|
|||||||
|
|
||||||
def tr(self, string, context=''):
|
def tr(self, string, context=''):
|
||||||
if context == '':
|
if context == '':
|
||||||
context = 'GrassProvider'
|
context = 'Grass7AlgorithmProvider'
|
||||||
return QCoreApplication.translate(context, string)
|
return QCoreApplication.translate(context, string)
|
||||||
|
|||||||
@ -602,7 +602,7 @@ class GrassUtils:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def tr(string, context=''):
|
def tr(string, context=''):
|
||||||
if context == '':
|
if context == '':
|
||||||
context = 'GrassUtils'
|
context = 'Grass7Utils'
|
||||||
return QCoreApplication.translate(context, string)
|
return QCoreApplication.translate(context, string)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user