Translate ebook

This commit is contained in:
Samy Pessé
2015-01-23 22:33:24 +01:00
parent b426aba846
commit 59b3b0fadd
5 changed files with 7 additions and 6 deletions
+1
View File
@@ -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",
+1 -1
View File
@@ -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">
+1 -1
View File
@@ -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("") }}
+3 -3
View File
@@ -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>
+1 -1
View File
@@ -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("") }}