From 42d6525c50beecdf11a6577f350681758fcbcaef Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 6 Jan 2017 18:48:32 +0100 Subject: [PATCH] Bring back i18n --- material/base.html | 2 +- material/partials/footer.html | 5 +++-- material/partials/i18n.html | 7 +++++++ material/partials/search.html | 3 ++- material/partials/source.html | 3 ++- material/partials/toc.html | 3 ++- src/base.html | 2 +- src/partials/footer.html | 6 ++++-- src/partials/i18n.html | 30 ++++++++++++++++++++++++++++++ src/partials/search.html | 5 ++++- src/partials/source.html | 6 ++++-- src/partials/toc.html | 4 +++- 12 files changed, 63 insertions(+), 13 deletions(-) create mode 100644 material/partials/i18n.html create mode 100644 src/partials/i18n.html diff --git a/material/base.html b/material/base.html index 626bc038a..bbf53da4e 100644 --- a/material/base.html +++ b/material/base.html @@ -100,7 +100,7 @@ {% block footer %} - {% include "partials/footer.html" %} + {% include "partials/footer.html" with context %} {% endblock %} {% block scripts %} diff --git a/material/partials/footer.html b/material/partials/footer.html index 3cff5e622..bdd6ca1c3 100644 --- a/material/partials/footer.html +++ b/material/partials/footer.html @@ -1,3 +1,4 @@ +{% import "partials/i18n.html" as i18n %}