Update translatable strings

Stop using the `_()` function, and use `{% trans %}` tags instead.
This commit is contained in:
2018-07-16 10:42:25 +02:00
parent 496b638694
commit 808c6bbdde
4 changed files with 18 additions and 6 deletions

View File

@@ -29,7 +29,9 @@
<a class="item" href="{{ url_for('security.login') }}">{% trans %}Login{% endtrans %}</a>
{% else %}
<div class="item">
{{ _('Logged in as %(username)s', username=('<a href="' + url_for('display_profile', username=current_user.username) + '">' + current_user.username + '</a>') | safe) }}
{% trans username=('<a href="' + url_for('display_profile', username=current_user.username) + '">' + current_user.username + '</a>') | safe -%}
Logged in as {{username}}
{%- endtrans %}
</div>
<a class="item" href="{{ url_for('hello') }}">{% trans %}Calendar view{% endtrans %}</a>
<a class="item" href="{{ url_for('notifications') }}">{% trans %}Notifications{% endtrans %}</a>