summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-23 22:33:24 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-23 22:33:24 +0100
commit59b3b0fadd4da5ff05d3e2ca9f45a2b51ea1c9b0 (patch)
treedf352db64866617cd0ecc302ca2121278afa0de9 /theme
parentb426aba846b0daa199e506cbd089df5dd4086169 (diff)
downloadgitbook-59b3b0fadd4da5ff05d3e2ca9f45a2b51ea1c9b0.zip
gitbook-59b3b0fadd4da5ff05d3e2ca9f45a2b51ea1c9b0.tar.gz
gitbook-59b3b0fadd4da5ff05d3e2ca9f45a2b51ea1c9b0.tar.bz2
Translate ebook
Diffstat (limited to 'theme')
-rw-r--r--theme/i18n/fr.json1
-rw-r--r--theme/templates/ebook/glossary.html2
-rw-r--r--theme/templates/ebook/layout.html2
-rw-r--r--theme/templates/ebook/summary.html6
-rw-r--r--theme/templates/website/layout.html2
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("") }}