From b8ede8ceab883aa68ac6dffa4e470cfc72b1d467 Mon Sep 17 00:00:00 2001
From: Malte Bublitz
Date: Tue, 29 Apr 2025 15:58:07 +0200
Subject: [PATCH] SearXNG-Suche: Accept-Language weitergeben
---
index.php | 5 +++++
template.inc.php | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/index.php b/index.php
index 997a79b..6df0824 100644
--- a/index.php
+++ b/index.php
@@ -13,6 +13,11 @@ if (strlen($_SERVER["HTTP_ACCEPT_LANGUAGE"]) >= 2) {
$lang = "en";
}
+/**
+ * Provide search using the user's preferred language
+ */
+$search_lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2);
+
$Data = Array(
"Meta" => Array(
"Lang" => "en",
diff --git a/template.inc.php b/template.inc.php
index 99056b6..fb677ce 100644
--- a/template.inc.php
+++ b/template.inc.php
@@ -124,7 +124,7 @@ unset($i);
-
+ ">
@@ -182,7 +182,6 @@ foreach ($Data["Links"] as $LinkRow) {
© =$Data["Footer"]["CopyrightYear"]?> " rel="me nofollow">=$Data["Footer"]["AuthorName"]?>
- · Download Git main (.tar.gz)
--
2.30.2