From db5388e47885b76083ee6a169863b5e718ca1246 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 6 Oct 2016 15:02:40 +0200 Subject: Make pelican-bootstrap3 multilingual This makes use of the i18n jinja extension as described in README.md. A Makefile is provided to facilitate new translations. A translation to German is also included. --- pelican-bootstrap3/templates/includes/aboutme.html | 4 ++-- pelican-bootstrap3/templates/includes/article_info.html | 8 ++++---- pelican-bootstrap3/templates/includes/cc-license.html | 6 +++--- pelican-bootstrap3/templates/includes/comment_count.html | 2 +- pelican-bootstrap3/templates/includes/comments.html | 2 +- pelican-bootstrap3/templates/includes/footer.html | 6 +++--- pelican-bootstrap3/templates/includes/links.html | 4 ++-- pelican-bootstrap3/templates/includes/pagination.html | 10 +++++----- pelican-bootstrap3/templates/includes/sidebar.html | 14 +++++++------- pelican-bootstrap3/templates/includes/taglist.html | 2 +- pelican-bootstrap3/templates/includes/translations.html | 4 ++-- 11 files changed, 31 insertions(+), 31 deletions(-) (limited to 'pelican-bootstrap3/templates/includes') diff --git a/pelican-bootstrap3/templates/includes/aboutme.html b/pelican-bootstrap3/templates/includes/aboutme.html index 3dc1c1c..ee88d56 100644 --- a/pelican-bootstrap3/templates/includes/aboutme.html +++ b/pelican-bootstrap3/templates/includes/aboutme.html @@ -6,8 +6,8 @@ {% endif %} {% if ABOUT_ME %}

- About {{ AUTHOR }}
+ {{ _('About') }} {{ AUTHOR }}
{{ ABOUT_ME }}

{% endif %} - \ No newline at end of file + diff --git a/pelican-bootstrap3/templates/includes/article_info.html b/pelican-bootstrap3/templates/includes/article_info.html index e0c93b5..1cb85d5 100644 --- a/pelican-bootstrap3/templates/includes/article_info.html +++ b/pelican-bootstrap3/templates/includes/article_info.html @@ -5,7 +5,7 @@ {% if SHOW_DATE_MODIFIED %} {% if article.modified %} - Modified + {{ _('Modified') }} @@ -14,20 +14,20 @@ {% if SHOW_SERIES %} {% if article.series %} - Series + {{ _('Series') }} Part {{ article.series.index}} of {{ article.series.name }} {% endif %} {% endif %} {% if SHOW_ARTICLE_AUTHOR %} {% if article.author %} - By + {{ _('By') }} {{ article.author }} {% endif %} {% endif %} {% if SHOW_ARTICLE_CATEGORY %} - Category + {{ _('Category') }} {{ article.category }} {% endif %} diff --git a/pelican-bootstrap3/templates/includes/cc-license.html b/pelican-bootstrap3/templates/includes/cc-license.html index a1592e6..fca507d 100644 --- a/pelican-bootstrap3/templates/includes/cc-license.html +++ b/pelican-bootstrap3/templates/includes/cc-license.html @@ -54,12 +54,12 @@ {% endif %} {% endif %} {% set cc_title, cc_uri, cc_icon = ("Creative Commons AttributionCCSUFFIX 4.0 International License","https://creativecommons.org/licenses/CCNAME/4.0/","//i.creativecommons.org/l/CCNAME/4.0/80x15.png") %} - Creative Commons License + Creative Commons License {% if br_after_img %}
{% endif %} {% if attr_markup %} "{{ attr_props['title'] }}" by {{ attr_props['name'] }} is {% else %} - Content + {{ _('Content') }} {% endif %} - licensed under a {{ cc_title|replace('CCSUFFIX',cc_title_suffix) }}, except where indicated otherwise. + {{ _('licensed under a') }} {{ cc_title|replace('CCSUFFIX',cc_title_suffix) }}, {{ _('except where indicated otherwise') }}. {% endmacro %} diff --git a/pelican-bootstrap3/templates/includes/comment_count.html b/pelican-bootstrap3/templates/includes/comment_count.html index 4b42dde..1e83035 100644 --- a/pelican-bootstrap3/templates/includes/comment_count.html +++ b/pelican-bootstrap3/templates/includes/comment_count.html @@ -1 +1 @@ -{% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}

View comments.

{% endif %} +{% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}

{{ _('View comments') }}.

{% endif %} diff --git a/pelican-bootstrap3/templates/includes/comments.html b/pelican-bootstrap3/templates/includes/comments.html index eade006..b37e2bf 100644 --- a/pelican-bootstrap3/templates/includes/comments.html +++ b/pelican-bootstrap3/templates/includes/comments.html @@ -1,7 +1,7 @@ {% if DISQUS_SITENAME %}
-

Comments

+

{{ _('Comments') }}