From 21588b23faa7981136e01ec80b280dc2223f71e8 Mon Sep 17 00:00:00 2001 From: Sylvain GARANCHER Date: Wed, 28 Aug 2013 04:07:40 +0200 Subject: [IMP] Add language management for theme tuxlite_tbs --- tuxlite_tbs/templates/base.html | 2 +- tuxlite_tbs/templates/metadata.html | 6 ++++++ tuxlite_tbs/templates/page.html | 10 +++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html index 2c18586..4dd1f52 100644 --- a/tuxlite_tbs/templates/base.html +++ b/tuxlite_tbs/templates/base.html @@ -1,5 +1,5 @@ - + {% block windowtitle %}{{ SITENAME }}{% endblock %} diff --git a/tuxlite_tbs/templates/metadata.html b/tuxlite_tbs/templates/metadata.html index 3f7e987..1ee8b86 100644 --- a/tuxlite_tbs/templates/metadata.html +++ b/tuxlite_tbs/templates/metadata.html @@ -2,6 +2,12 @@ {% if article.author %} by {{ article.author }} + {% if article.translations %} + {{ article.lang or DEFAULT_LANG }} + {% for translation in article.translations %} + {{ translation.lang }}  + {% endfor %} + {% endif %} {% endif %} {# Filed under {{ article.category }} #} diff --git a/tuxlite_tbs/templates/page.html b/tuxlite_tbs/templates/page.html index 65470ea..df15a33 100644 --- a/tuxlite_tbs/templates/page.html +++ b/tuxlite_tbs/templates/page.html @@ -2,7 +2,15 @@ {% block title %} {% endblock %} {% block content %}
-

{{ page.title }}

+

+ {{ page.title }} + {% if page.translations %} + {{ page.lang or DEFAULT_LANG }} + {% for translation in page.translations %} + {{ translation.lang }}  + {% endfor %} + {% endif %} +

{% if PDF_PROCESSOR %}get the pdf{% endif %} {{ page.content }} -- cgit