Browse Source

Change HTML lang according to page lang

use_django_admin
Alexandre Iooss 7 years ago
committed by Alexandre IOOSS
parent
commit
ae6ae4a151
  1. 3
      templates/base.html

3
templates/base.html

@ -30,8 +30,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load i18n %}
{% self_adhesion as var_sa %}
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<!DOCTYPE html>
<html lang="fr">
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head prefix="og: http://ogp.me/ns#">
{# Open Graph for social media #}
<meta property="og:title" content="{{ name_website }}" />

Loading…
Cancel
Save