Fix a few issues with internationalization
This commit is contained in:
parent
0ea8c882ad
commit
7faf93f44a
|
@ -249,3 +249,5 @@ msgstr ""
|
||||||
msgid "You need to be logged in order to edit your profile"
|
msgid "You need to be logged in order to edit your profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
<label for="title">{{ "Title" | _ }}</label>
|
<label for="title">{{ "Title" | _ }}</label>
|
||||||
<input name="title">
|
<input name="title">
|
||||||
|
|
||||||
<input type="submit" value="{{ "Create blog"}}"/>
|
<input type="submit" value="{{ "Create blog" | _ }}"/>
|
||||||
</form>
|
</form>
|
||||||
| _ {% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -7,6 +7,14 @@
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
|
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
|
||||||
<main><p>{{ article.post.content | striptags | truncate(length=200) }}</p></main>
|
<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>
|
</div>
|
||||||
{% endmacro post_card %}
|
{% endmacro post_card %}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="list">
|
<div class="list">
|
||||||
{% for notification in notifications %}
|
{% for notification in notifications %}
|
||||||
<div class="card">
|
<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 %}
|
{% if notification.content %}
|
||||||
<p>{{ notification.content }}</p>
|
<p>{{ notification.content }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue