From 6ed558e12bc8a0d3b051352ef432e6a15a187a2a Mon Sep 17 00:00:00 2001
From: Lucas Brandstaetter <lucas@brandstaetter.tech>
Date: Wed, 30 Oct 2024 03:29:36 +0100
Subject: [PATCH] Fix H005 djLint rule

lang attribute in html tag should be set.
---
 deployment/docker/error_403.html                                | 2 +-
 deployment/docker/error_404.html                                | 2 +-
 deployment/docker/error_50x.html                                | 2 +-
 deployment/docker/index.html                                    | 2 +-
 src/backoffice/templates/backoffice/base.html                   | 2 +-
 src/core/templates/core/assembly_notification.html              | 2 +-
 src/core/templates/core/directmessage.html                      | 2 +-
 src/core/templates/oauth2_provider/authorize.html               | 2 +-
 .../templates/oauth2_provider/out-of-band-display-token.html    | 2 +-
 src/plainui/jinja2/plainui/metanav.html.j2                      | 2 +-
 src/plainui/static/error_pages/403.html                         | 2 +-
 src/plainui/static/error_pages/404.html                         | 2 +-
 src/plainui/static/error_pages/500.html                         | 2 +-
 src/plainui/templates/403.html                                  | 2 +-
 src/plainui/templates/404.html                                  | 2 +-
 src/plainui/templates/500.html                                  | 2 +-
 16 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/deployment/docker/error_403.html b/deployment/docker/error_403.html
index 107e6b381..1239488d4 100644
--- a/deployment/docker/error_403.html
+++ b/deployment/docker/error_403.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <body>You don't have access to this location.</body>
 </html>
diff --git a/deployment/docker/error_404.html b/deployment/docker/error_404.html
index 82dcae12e..b9ef2ebcf 100644
--- a/deployment/docker/error_404.html
+++ b/deployment/docker/error_404.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <body>This is not the page you're looking for.</body>
 </html>
diff --git a/deployment/docker/error_50x.html b/deployment/docker/error_50x.html
index 5cab55bde..e96d64eda 100644
--- a/deployment/docker/error_50x.html
+++ b/deployment/docker/error_50x.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <body>Please stand by, application will be available again shortly.</body>
 </html>
diff --git a/deployment/docker/index.html b/deployment/docker/index.html
index a1ed4aa57..c1afa7cd1 100644
--- a/deployment/docker/index.html
+++ b/deployment/docker/index.html
@@ -1,4 +1,4 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <body>There is nothing to be seen here.</body>
 </html>
diff --git a/src/backoffice/templates/backoffice/base.html b/src/backoffice/templates/backoffice/base.html
index 6f0571e4a..afda8cb2f 100644
--- a/src/backoffice/templates/backoffice/base.html
+++ b/src/backoffice/templates/backoffice/base.html
@@ -2,7 +2,7 @@
 {% load static %}
 {% trans "nav_activetab_srmarker" as activetab_srmarker %}
 <!DOCTYPE html>
-<html>
+<html lang="{{ request.LANGUAGE_CODE | default:"en" }}">
   <head>
     <title>
       {% block title %}
diff --git a/src/core/templates/core/assembly_notification.html b/src/core/templates/core/assembly_notification.html
index bfd1bd3ee..75bbedc36 100644
--- a/src/core/templates/core/assembly_notification.html
+++ b/src/core/templates/core/assembly_notification.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="de">
   <head>
     <title>{{ subject }}</title>
   </head>
diff --git a/src/core/templates/core/directmessage.html b/src/core/templates/core/directmessage.html
index fff718c1e..1f0ef673e 100644
--- a/src/core/templates/core/directmessage.html
+++ b/src/core/templates/core/directmessage.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html5>
-<html>
+<html lang="de">
   <body>
     {% if conference != None %}
       <h1>
diff --git a/src/core/templates/oauth2_provider/authorize.html b/src/core/templates/oauth2_provider/authorize.html
index bc5729595..af49e6903 100644
--- a/src/core/templates/oauth2_provider/authorize.html
+++ b/src/core/templates/oauth2_provider/authorize.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>Hub SSO</title>
     <style>
diff --git a/src/core/templates/oauth2_provider/out-of-band-display-token.html b/src/core/templates/oauth2_provider/out-of-band-display-token.html
index fe86066a8..5e381b614 100644
--- a/src/core/templates/oauth2_provider/out-of-band-display-token.html
+++ b/src/core/templates/oauth2_provider/out-of-band-display-token.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="end">
   <head>
     <title>Hub SSO</title>
     <style>
diff --git a/src/plainui/jinja2/plainui/metanav.html.j2 b/src/plainui/jinja2/plainui/metanav.html.j2
index a530c226d..9e434152d 100644
--- a/src/plainui/jinja2/plainui/metanav.html.j2
+++ b/src/plainui/jinja2/plainui/metanav.html.j2
@@ -1,6 +1,6 @@
 {% if include_header %}
   <!DOCTYPE html>
-  <html>
+  <html lang="en">
     <head>
       <title>{{ conf.slug }} Meta Navigation</title>
     </head>
diff --git a/src/plainui/static/error_pages/403.html b/src/plainui/static/error_pages/403.html
index 5084ab474..3dc29f434 100644
--- a/src/plainui/static/error_pages/403.html
+++ b/src/plainui/static/error_pages/403.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>403 - Forbidden</title>
     <style type="text/css">
diff --git a/src/plainui/static/error_pages/404.html b/src/plainui/static/error_pages/404.html
index 869911e13..3eabccd38 100644
--- a/src/plainui/static/error_pages/404.html
+++ b/src/plainui/static/error_pages/404.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>404 - OOOOOPS (not found)</title>
     <style type="text/css">
diff --git a/src/plainui/static/error_pages/500.html b/src/plainui/static/error_pages/500.html
index 313f0bb35..125def779 100644
--- a/src/plainui/static/error_pages/500.html
+++ b/src/plainui/static/error_pages/500.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>500 - Internal Server Error</title>
     <style type="text/css">
diff --git a/src/plainui/templates/403.html b/src/plainui/templates/403.html
index 7e2594a1f..23f9e8682 100644
--- a/src/plainui/templates/403.html
+++ b/src/plainui/templates/403.html
@@ -1,6 +1,6 @@
 {% load static %}
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>403 - Forbidden</title>
     <style type="text/css">
diff --git a/src/plainui/templates/404.html b/src/plainui/templates/404.html
index c2064bfa9..7ab1dc90c 100644
--- a/src/plainui/templates/404.html
+++ b/src/plainui/templates/404.html
@@ -1,6 +1,6 @@
 {% load static %}
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>404 - OOOOOPS (not found)</title>
     <style type="text/css">
diff --git a/src/plainui/templates/500.html b/src/plainui/templates/500.html
index b54aff748..4f13dae2b 100644
--- a/src/plainui/templates/500.html
+++ b/src/plainui/templates/500.html
@@ -1,6 +1,6 @@
 {% load static %}
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <title>500 - Internal Server Error</title>
     <style type="text/css">
-- 
GitLab