From 59b3b0fadd4da5ff05d3e2ca9f45a2b51ea1c9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Fri, 23 Jan 2015 22:33:24 +0100 Subject: [PATCH] Translate ebook --- theme/i18n/fr.json | 1 + theme/templates/ebook/glossary.html | 2 +- theme/templates/ebook/layout.html | 2 +- theme/templates/ebook/summary.html | 6 +++--- 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 0ef937e83..3ac2b359a 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 ce10c637f..0bd7ab6f0 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 %}
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html index 76efdf6cc..ba969cbba 100644 --- a/theme/templates/ebook/layout.html +++ b/theme/templates/ebook/layout.html @@ -1,5 +1,5 @@ - + {{ htmlSnippet("html:start")|default("") }} {{ htmlSnippet("head:start")|default("") }} diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html index 2e540a646..16de1e889 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 %}
-

Table of Contents

+

{% i18n "SUMMARY" %}Table of Contents{% endi18n %}

    {{ articles(summary.chapters) }} {% if glossary.length > 0 %} -
  1. Glossary
  2. +
  3. {% i18n "GLOSSARY" %}Glossary{% endi18n %}
  4. {% endif %}
diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html index 5dc7c5e47..415763455 100644 --- a/theme/templates/website/layout.html +++ b/theme/templates/website/layout.html @@ -1,5 +1,5 @@ - + {{ htmlSnippet("html:start")|default("") }} {{ htmlSnippet("head:start")|default("") }}