diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/i18n/fr.json | 1 | ||||
-rw-r--r-- | theme/templates/ebook/glossary.html | 2 | ||||
-rw-r--r-- | theme/templates/ebook/layout.html | 2 | ||||
-rw-r--r-- | theme/templates/ebook/summary.html | 6 | ||||
-rw-r--r-- | theme/templates/website/layout.html | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/theme/i18n/fr.json b/theme/i18n/fr.json index 0ef937e..3ac2b35 100644 --- a/theme/i18n/fr.json +++ b/theme/i18n/fr.json @@ -4,6 +4,7 @@ "GLOSSARY_INDEX": "Index", "GLOSSARY_OPEN": "Glossaire", "GITBOOK_LINK": "Publié avec GitBook", + "SUMMARY": "Table des matières", "SUMMARY_TOGGLE": "Sommaire", "SEARCH_TOGGLE": "Recherche", "SEARCH_PLACEHOLDER": "Tapez pour rechercher", diff --git a/theme/templates/ebook/glossary.html b/theme/templates/ebook/glossary.html index ce10c63..0bd7ab6 100644 --- a/theme/templates/ebook/glossary.html +++ b/theme/templates/ebook/glossary.html @@ -1,6 +1,6 @@ {% extends "./page.html" %} -{% block title %}Glossary | {{ title }}{% endblock %} +{% block title %}{% i18n "GLOSSARY" %}Glossary{% endi18n %} | {{ title }}{% endblock %} {% block content %} <div class="page page-toc"> diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html index 76efdf6..ba969cb 100644 --- a/theme/templates/ebook/layout.html +++ b/theme/templates/ebook/layout.html @@ -1,5 +1,5 @@ <!DOCTYPE HTML> -<html lang="en-US" {% block htmlTag %}{% endblock %}> +<html lang="{{ language }}" {% block htmlTag %}{% endblock %}> {{ htmlSnippet("html:start")|default("") }} <head> {{ htmlSnippet("head:start")|default("") }} diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html index 2e540a6..16de1e8 100644 --- a/theme/templates/ebook/summary.html +++ b/theme/templates/ebook/summary.html @@ -1,6 +1,6 @@ {% extends "./page.html" %} -{% block title %}Table of Contents | {{ title }}{% endblock %} +{% block title %}{% i18n "SUMMARY" %}Table of Contents{% endi18n %} | {{ title }}{% endblock %} {% macro articles(_articles) %} {% for item in _articles %} @@ -25,12 +25,12 @@ {% block content %} <div class="page page-toc"> - <h1>Table of Contents</h1> + <h1>{% i18n "SUMMARY" %}Table of Contents{% endi18n %}</h1> <ol> {{ articles(summary.chapters) }} {% if glossary.length > 0 %} - <li><a href="{{ basePath }}/GLOSSARY.html">Glossary</a></li> + <li><a href="{{ basePath }}/GLOSSARY.html">{% i18n "GLOSSARY" %}Glossary{% endi18n %}</a></li> {% endif %} </ol> </div> diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html index 5dc7c5e..4157634 100644 --- a/theme/templates/website/layout.html +++ b/theme/templates/website/layout.html @@ -1,5 +1,5 @@ <!DOCTYPE HTML> -<html lang="en-US" {% block htmlTag %}{% endblock %}> +<html lang="{{ language }}"> {{ htmlSnippet("html:start")|default("") }} <head> {{ htmlSnippet("head:start")|default("") }} |