From 5c46dab5ce7343f5f99ad03226378f271f00594c Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea <andreaerdna@libero.it> Date: Mon, 11 Mar 2024 02:35:59 +0100 Subject: [PATCH] Apply suggested changes from code review Don't rename translation context --- python/plugins/grassprovider/grass_provider.py | 2 +- python/plugins/grassprovider/grass_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/grassprovider/grass_provider.py b/python/plugins/grassprovider/grass_provider.py index 3975938d56d0..4db424ab26f6 100644 --- a/python/plugins/grassprovider/grass_provider.py +++ b/python/plugins/grassprovider/grass_provider.py @@ -180,5 +180,5 @@ def canBeActivated(self): def tr(self, string, context=''): if context == '': - context = 'GrassProvider' + context = 'Grass7AlgorithmProvider' return QCoreApplication.translate(context, string) diff --git a/python/plugins/grassprovider/grass_utils.py b/python/plugins/grassprovider/grass_utils.py index 62acf546618b..814e3fe13b15 100644 --- a/python/plugins/grassprovider/grass_utils.py +++ b/python/plugins/grassprovider/grass_utils.py @@ -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