fixed translations in opensearch.xml
This commit is contained in:
parent
5a4be6dad6
commit
90d3964ca2
12 changed files with 39 additions and 5 deletions
7
main.go
7
main.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue