Skip to content

Commit 6bac317

Browse files
merydiankoebi
authored andcommitted
fix: Remove 'self' argument from tr() function and use "ORStools" as translation context
tr() is a function here and not a class method, thus no self argument is possible
1 parent 61899ab commit 6bac317

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ORStools/utils/processing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,5 @@ def get_snapped_point_features(response: dict, og_features=None, feedback=None)
123123
return feats
124124

125125

126-
def tr(self, string: str, context=None) -> str:
127-
context = context or self.__class__.__name__
128-
return QCoreApplication.translate(context, string)
126+
def tr(string: str) -> str:
127+
return QCoreApplication.translate("ORStools", string)

0 commit comments

Comments
 (0)