fixed translations in opensearch.xml

This commit is contained in:
partisan 2024-10-25 13:54:29 +02:00
parent 5a4be6dad6
commit 90d3964ca2
12 changed files with 39 additions and 5 deletions

View file

@ -109,6 +109,13 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
InitializeLanguage(settings.SiteLanguage)
// Translate the "Any Language" option after initialization
for i, option := range languageOptions {
if option.Code == "" {
languageOptions[i].Name = Translate("any_language")
}
}
if query == "" {
data := struct {
LanguageOptions []LanguageOption