From cc2127e46401c818820c6bb9d594410a2c82138a Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 4 Nov 2018 23:32:54 +0100 Subject: [PATCH] Translate waffle meta blog Former-commit-id: 041439d4e135473c3f136bb1dfeb1a89fd58d77a [formerly f8e194d684dec301f6dc1aca0d10f0fd23915043] [formerly e6232ebf75423c60262d593f2ae67b2bd24c68fa [formerly 6fbd6648444c58ce5b9ab3cd7e34a43d00ec6ffe]] Former-commit-id: 6534205710be743b982fe43e48fefcdb354b1052 [formerly 853e36f16c60920d9db4ffdf2b1132d24b1ccdf0] Former-commit-id: de50ce5c955a8d47e08d227cfec74c1a4222b37f --- databags/translate.ini | 3 ++- templates/macros/blog.html | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/databags/translate.ini b/databags/translate.ini index f4ec3fc..8a0fd2e 100644 --- a/databags/translate.ini +++ b/databags/translate.ini @@ -22,6 +22,7 @@ twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Mach bei uns mit created = Geschrieben von +read = Weiter lesen [en] close = close @@ -44,5 +45,5 @@ twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Join us created = Created by - +read = Continue reading diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 7cbad6b..409fc46 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -21,10 +21,11 @@

{{ post.title }}

-

{% if post.alt == 'en' %}Created by{% else %}Verfasst von {% endif %}{% - if post.twitter_handle %}{{ post.author or post.twitter_handle }}{% - else %}{{ post.author }}{% - endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}

+

{% if bag('translate', post.alt, 'created') + %}{{ bag('translate', post.alt, 'created') }}{% else %}Verfasst von{% endif %}{% + if post.twitter_handle %}{{ post.author or post.twitter_handle }}{% + else %}{{ post.author }}{% + endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}

{% endif %} @@ -36,7 +37,8 @@ {% if from_index == False %} {{ post.privatebody }} {% else %} -

{% if post.alt == 'en' %}continue reading{% else %}Weiter lesen{% endif %}

+

{% if bag('translate', post.alt, 'read') + %}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}

{{ post.title }} {% endif %}