From 3f4e0b0859e2cf8737333a1dc331e4538a18780e Mon Sep 17 00:00:00 2001
From: Markus Heiser <markus.heiser@darmarit.de>
Date: Wed, 29 Jan 2025 05:28:39 +0100
Subject: [PATCH] [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>
---
 searx/answerers/statistics.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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