Просмотр исходного кода

Set lang attribute on html tag to reflect used language. #127

Ralfp 12 лет назад
Родитель
Сommit
9790ad474e
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      templates/_email/base.html
  2. 1 1
      templates/admin/base.html
  3. 1 1
      templates/cranefly/base.html

+ 1 - 1
templates/_email/base.html

@@ -4,7 +4,7 @@
 {%- set style_well_big = "style=\"background-color: #F0F0F0; border-radius: 3px; margin: 24px 0px; padding: 12px 16px; font-size: 18px; text-align: center;\"" -%}
 {%- set style_button = "style=\"background-color: #08C; border-radius: 3px; color: #FFF; display: block; text-align: center; margin: 24px 0px; padding: 12px 0px; text-decoration: none; font-weight: bold; font-size: 18px;\"" -%}
 <!DOCTYPE html>
-<html lang="en">
+<html lang="{{ LANGUAGE_CODE }}">
   <head>
     <meta charset="utf-8">
   </head>

+ 1 - 1
templates/admin/base.html

@@ -1,6 +1,6 @@
 {% from "admin/macros.html" import page_title -%}
 <!DOCTYPE html>
-<html lang="en">
+<html lang="{{ LANGUAGE_CODE }}">
   <head>
     <meta charset="utf-8">
     <title>{% block title %}{{ page_title() }}{% endblock %}</title>

+ 1 - 1
templates/cranefly/base.html

@@ -1,6 +1,6 @@
 {% from "cranefly/macros.html" import page_title -%}
 <!DOCTYPE html>
-<html lang="en">
+<html lang="{{ LANGUAGE_CODE }}">
   <head>
     <meta charset="utf-8">
     <title>{% block title %}{{ page_title() }}{% endblock %}</title>