summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-10-27 10:25:42 +0100
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-28 15:53:57 +0100
commitb176323e89f87e52effc44ab0310fbf736efdc74 (patch)
tree1292c20e2af290d2ff1d1dc931ba4819f8f4e9e1 /searx/webapp.py
parentda28f5280b8f5cac79963e10c79ddc2a3e65f93a (diff)
downloadsearxng-b176323e89f87e52effc44ab0310fbf736efdc74.tar.gz
searxng-b176323e89f87e52effc44ab0310fbf736efdc74.zip
[fix] calculator: use locale from UI (not from selected language)
Closes: https://github.com/searxng/searxng/issues/3956 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 19c477794..d2d486d20 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -517,7 +517,7 @@ def pre_request():
preferences.parse_dict({"language": language})
logger.debug('set language %s (from browser)', preferences.get_value("language"))
- # locale is defined neither in settings nor in preferences
+ # UI locale is defined neither in settings nor in preferences
# use browser headers
if not preferences.get_value("locale"):
locale = _get_browser_language(request, LOCALE_NAMES.keys())