diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2016-10-06 15:02:40 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2016-12-13 18:46:05 +0100 |
commit | db5388e47885b76083ee6a169863b5e718ca1246 (patch) | |
tree | 218cfce1037c099a650cbb382b69d50de681f5e8 /pelican-bootstrap3/templates/includes/sidebar.html | |
parent | 30c807519db25e1c9246a6c53b7545b36a2f1895 (diff) | |
download | pelican-themes-db5388e47885b76083ee6a169863b5e718ca1246.tar.gz |
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.
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar.html b/pelican-bootstrap3/templates/includes/sidebar.html index 4d7e6bb..57e345e 100644 --- a/pelican-bootstrap3/templates/includes/sidebar.html +++ b/pelican-bootstrap3/templates/includes/sidebar.html @@ -5,7 +5,7 @@ <section class="well well-sm"> <ul class="list-group list-group-flush"> {% if SOCIAL %} - <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Social</span></h4> + <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">{{ _('Social') }}</span></h4> <ul class="list-group" id="social"> {% for s in SOCIAL %} {% if s[2] %} @@ -28,7 +28,7 @@ {% if RECENT_POST_COUNT is not defined %} {% set RECENT_POST_COUNT = 5 %} {% endif %} - <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Recent Posts</span></h4> + <li class="list-group-item"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">{{ _('Recent Posts') }}</span></h4> <ul class="list-group" id="recentposts"> {% for article in articles[:RECENT_POST_COUNT] %} <li class="list-group-item"> @@ -42,7 +42,7 @@ {% endif %} {% if DISPLAY_CATEGORIES_ON_SIDEBAR %} - <li class="list-group-item"><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">Categories</span></h4></a> + <li class="list-group-item"><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}"><h4><i class="fa fa-home fa-lg"></i><span class="icon-label">{{ _('Categories') }}</span></h4></a> <ul class="list-group" id="categories"> {% for cat, null in categories %} <li class="list-group-item"> @@ -61,7 +61,7 @@ {% else %} {% set tags = tag_cloud | sort(attribute='1') %} {% endif %} - <li class="list-group-item"><a href="{{ SITEURL }}/{{ TAGS_URL }}"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">Tags</span></h4></a> + <li class="list-group-item"><a href="{{ SITEURL }}/{{ TAGS_URL }}"><h4><i class="fa fa-tags fa-lg"></i><span class="icon-label">{{ _('Tags') }}</span></h4></a> <ul class="list-group {% if DISPLAY_TAGS_INLINE %}list-inline tagcloud{% endif %}" id="tags"> {% for tag in tags %} <li class="list-group-item tag-{{ tag.1 }}"> @@ -77,17 +77,17 @@ {% if DISPLAY_SERIES_ON_SIDEBAR %} {% if article %} {% if article.series %} - <li class="list-group-item"><h4><i class="fa fa-tags fa-list-ul"></i><span class="icon-label">Series</span></h4> + <li class="list-group-item"><h4><i class="fa fa-tags fa-list-ul"></i><span class="icon-label">{{ _('Series') }}</span></h4> <ul class="list-group"> {% if article.series.previous %} <li class="list-group-item"> - <h5></i> Previous article</h5> + <h5></i>{{ _('Previous article') }}</h5> <a href="{{ SITEURL }}/{{ article.series.previous.url }}">{{ article.series.previous.title }}</a> </li> {% endif %} {% if article.series.next %} <li class="list-group-item"> - <h5>Next article</h5> + <h5>{{ _('Next article') }}</h5> <a href="{{ SITEURL }}/{{ article.series.next.url }}">{{ article.series.next.title }}</a> </li> {% endif %} |