summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2025-01-29 05:28:39 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-01-29 06:04:09 +0100
commit3f4e0b0859e2cf8737333a1dc331e4538a18780e (patch)
tree1929815ffed9d4a833d2a5b16586d2fe516134ea /searx
parenta235c54f8c8442242fe727908162e5ece8739b5a (diff)
[fix] gettext can't work with f-strings (i10n)
``str.format`` is the pythonic way of handling strings returned by gettext.gettext that retain interpolation tokens. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r--searx/answerers/statistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/answerers/statistics.py b/searx/answerers/statistics.py
index e6cbdd008..5f5ef0c99 100644
--- a/searx/answerers/statistics.py
+++ b/searx/answerers/statistics.py
@@ -33,7 +33,7 @@ class SXNGAnswerer(Answerer):
return AnswererInfo(
name=gettext(self.__doc__),
- description=gettext(f"Compute {'/'.join(self.keywords)} of the arguments"),
+ description=gettext("Compute {func} of the arguments".format(func='/'.join(self.keywords))),
keywords=self.keywords,
examples=["avg 123 548 2.04 24.2"],
)