Fix a few issues with internationalization

This commit is contained in:
Bat 2018-06-17 20:54:59 +01:00
parent 0ea8c882ad
commit 7faf93f44a
4 changed files with 14 additions and 4 deletions

View File

@ -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 ""

View File

@ -10,6 +10,6 @@
<label for="title">{{ "Title" | _ }}</label>
<input name="title">
<input type="submit" value="{{ "Create blog"}}"/>
<input type="submit" value="{{ "Create blog" | _ }}"/>
</form>
| _ {% endblock content %}
{% endblock content %}

View File

@ -7,6 +7,14 @@
<div class="card">
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
<main><p>{{ article.post.content | striptags | truncate(length=200) }}</p></main>
<p>By <a href="/@/{{ article.author.fqn }}/">{{ name }}</a> ⋅ {{ article.date | date(format="%B %e") }}</p>
<p>
{{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _(
link_1='<a href="/@/',
link_2=article.author.fqn,
link_3='/">',
name=name,
link_4="</a>")
}}
⋅ {{ article.date | date(format="%B %e") }}</p>
</div>
{% endmacro post_card %}

View File

@ -9,7 +9,7 @@
<div class="list">
{% for notification in notifications %}
<div class="card">
<h3><a href="{% if notification.link %}{{ notification.link }}/{% else %}#{% endif %}">{{ notification.title }}</h3>
<h3><a href="{% if notification.link %}{{ notification.link }}/{% else %}#{% endif %}">{{ notification.title | _ }}</h3>
{% if notification.content %}
<p>{{ notification.content }}</p>
{% endif %}