From 7faf93f44afab9753dd9f704cb2421da3f13c408 Mon Sep 17 00:00:00 2001 From: Bat Date: Sun, 17 Jun 2018 20:54:59 +0100 Subject: [PATCH] Fix a few issues with internationalization --- po/plume.pot | 2 ++ templates/blogs/new.html.tera | 4 ++-- templates/macros.html.tera | 10 +++++++++- templates/notifications/index.html.tera | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/po/plume.pot b/po/plume.pot index 7d698ede..d64da1b3 100644 --- a/po/plume.pot +++ b/po/plume.pot @@ -249,3 +249,5 @@ msgstr "" msgid "You need to be logged in order to edit your profile" msgstr "" +msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" +msgstr "" diff --git a/templates/blogs/new.html.tera b/templates/blogs/new.html.tera index 0f89bced..036cd2a6 100644 --- a/templates/blogs/new.html.tera +++ b/templates/blogs/new.html.tera @@ -10,6 +10,6 @@ - + - | _ {% endblock content %} +{% endblock content %} diff --git a/templates/macros.html.tera b/templates/macros.html.tera index 3cce7285..80ad8024 100644 --- a/templates/macros.html.tera +++ b/templates/macros.html.tera @@ -7,6 +7,14 @@

{{ article.post.title }}

{{ article.post.content | striptags | truncate(length=200) }}

-

By {{ name }} ⋅ {{ article.date | date(format="%B %e") }}

+

+ {{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _( + link_1='', + name=name, + link_4="") + }} + ⋅ {{ article.date | date(format="%B %e") }}

{% endmacro post_card %} diff --git a/templates/notifications/index.html.tera b/templates/notifications/index.html.tera index bbe79618..194581d5 100644 --- a/templates/notifications/index.html.tera +++ b/templates/notifications/index.html.tera @@ -9,7 +9,7 @@
{% for notification in notifications %}