From bf7c253607d761854660f936fd874add757e6866 Mon Sep 17 00:00:00 2001
From: Alexandre Iooss <erdnaxe@crans.org>
Date: Mon, 10 Aug 2020 13:50:23 +0200
Subject: [PATCH] Set HTML lang depending on user locale

---
 note_kfet/templates/base.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/note_kfet/templates/base.html b/note_kfet/templates/base.html
index 5e8d3d90..fd30b199 100644
--- a/note_kfet/templates/base.html
+++ b/note_kfet/templates/base.html
@@ -3,7 +3,7 @@
 SPDX-License-Identifier: GPL-3.0-or-later
 {% endcomment %}
 <!DOCTYPE html>
-<html lang="en" class="position-relative h-100">
+<html lang="{{ LANGUAGE_CODE|default:"en" }}" class="position-relative h-100">
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@@ -22,6 +22,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
     <meta name="msapplication-TileColor" content="#da532c">
     <meta name="msapplication-config" content="{% static "favicon/browserconfig.xml" %}">
     <meta name="theme-color" content="#ffffff">
+
+    {# Disable turbolink cache for some pages #}
     {% if no_cache %}
         <meta name="turbolinks-cache-control" content="no-cache">
     {% endif %}
-- 
GitLab