Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] gettext can't work with f-strings (i10n)

Markus Heiser3f4e0b0859e2
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"],
)