Apply suggested changes from code review

Don't rename translation context
This commit is contained in:
Andrea Giudiceandrea 2024-03-11 02:35:59 +01:00 committed by Nyall Dawson
parent a3bb769887
commit 5c46dab5ce
2 changed files with 2 additions and 2 deletions

View File

@ -180,5 +180,5 @@ class GrassProvider(QgsProcessingProvider):
def tr(self, string, context=''):
if context == '':
context = 'GrassProvider'
context = 'Grass7AlgorithmProvider'
return QCoreApplication.translate(context, string)

View File

@ -602,7 +602,7 @@ class GrassUtils:
@staticmethod
def tr(string, context=''):
if context == '':
context = 'GrassUtils'
context = 'Grass7Utils'
return QCoreApplication.translate(context, string)
@staticmethod