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

@ -21,13 +21,14 @@ type URL struct {
}
func generateOpenSearchXML(config Config) {
baseURL := addProtocol(config.Domain)
// Ensure that language is initialized in `main` before calling this function
baseURL := addProtocol(config.Domain)
opensearch := OpenSearchDescription{
Xmlns: "http://a9.com/-/spec/opensearch/1.1/",
ShortName: "QGato",
Description: "QGato search engine",
Tags: "search, spitfire, qgato",
ShortName: Translate("opensearch_shortname"),
Description: Translate("opensearch_description"),
Tags: Translate("opensearch_tags"),
URLs: []URL{
{
Type: "text/html",