From 291d519d1411f02cd1f3dbc137106abae9d76853 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 3 Nov 2018 17:17:22 +0100 Subject: [PATCH] contineue translating Former-commit-id: 7751ca98715df1f4023f6a3c6e7f0f7a1c59ebce [formerly 701f4bd9fd4fd79c67ba8be2f1ce2992652fc666] [formerly ecf0b2eb37f7b6511f046e53699f56326cae4fa6 [formerly c5173739d073cbc47f34eb7143f3647b8f8d91d8]] Former-commit-id: b1878c8c60e5d55f63cce820ae4d62159b865dc4 [formerly 42cb628e404218d28964f89bc86df2c21af584dd] Former-commit-id: 742e1d8aecedebf96efe2e727cb1ba7381f52856 --- databags/translate.ini | 4 ++-- templates/macros/blog.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/databags/translate.ini b/databags/translate.ini index 650f0c7..f4ec3fc 100644 --- a/databags/translate.ini +++ b/databags/translate.ini @@ -21,7 +21,7 @@ webirc = webirc.hackint.org twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Mach bei uns mit - +created = Geschrieben von [en] close = close @@ -43,6 +43,6 @@ webirc = webirc.hackint.org twitter = @C3WOC mastodon = @C3WOC@chaos.social invite = Join us - +created = Created by diff --git a/templates/macros/blog.html b/templates/macros/blog.html index c3e244b..7cbad6b 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -9,8 +9,8 @@ {% else %}

{{ post.title }}

{% endif %} -

{% if post.alt == 'en' %}Created by{% else - %}Geschrieben von{% endif %} {% +

{% if bag('translate', post.alt, 'created') + %}{{ bag('translate', post.alt, 'created') }}{% else %}Geschrieben 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 %}