diff options
author | Alexandre Flament <alex@al-f.net> | 2021-10-05 15:03:28 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-10-12 21:06:20 +0200 |
commit | 988910d451b4360209307ef2c3070fdb563d7c35 (patch) | |
tree | 969df0dbf26abefd52539c9e0e7699b2328e878f /searx/templates/oscar/base.html | |
parent | 66b7be09656798b745f95ff0ce7669db014b3b38 (diff) | |
download | searxng-988910d451b4360209307ef2c3070fdb563d7c35.tar.gz searxng-988910d451b4360209307ef2c3070fdb563d7c35.zip |
[fix] templates: lang attribute of html uses hyphen
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang
https://www.w3.org/TR/REC-xml/#sec-lang-tag
Diffstat (limited to 'searx/templates/oscar/base.html')
-rw-r--r-- | searx/templates/oscar/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index 01dedc782..de7d05bf6 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -1,6 +1,6 @@ {% from 'oscar/macros.html' import icon %} <!DOCTYPE html> -<html lang="{{ preferences.get_value('locale') }}" xml:lang="{{ preferences.get_value('locale') }}"{% if rtl %} dir="rtl"{% endif %} class="nojs"> +<html lang="{{ locale_rfc5646 }}" xml:lang="{{ locale_rfc5646 }}"{% if rtl %} dir="rtl"{% endif %} class="nojs"> <head> <meta charset="UTF-8" /> <meta name="description" content="SearXNG - a privacy-respecting, hackable metasearch engine" /> |