Skip to content

Commit

Permalink
Apply suggested changes from code review
Browse files Browse the repository at this point in the history
Don't rename translation context
  • Loading branch information
agiudiceandrea authored Mar 11, 2024
1 parent 6d7eaa9 commit 236a517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/grassprovider/grass_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ def canBeActivated(self):

def tr(self, string, context=''):
if context == '':
context = 'GrassProvider'
context = 'Grass7AlgorithmProvider'
return QCoreApplication.translate(context, string)
2 changes: 1 addition & 1 deletion python/plugins/grassprovider/grass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def checkGrassIsInstalled(ignorePreviousState=False):
@staticmethod
def tr(string, context=''):
if context == '':
context = 'GrassUtils'
context = 'Grass7Utils'
return QCoreApplication.translate(context, string)

@staticmethod
Expand Down

0 comments on commit 236a517

Please sign in to comment.