Use {{ _('') }} instead of {% trans %}{% endtrans %} for short strings and headings

This commit is contained in:
str4d
2013-01-18 04:36:24 +00:00
parent 18b1ea8fc1
commit c85479129c
8 changed files with 30 additions and 30 deletions

View File

@@ -1,10 +1,10 @@
{% extends "global/layout.html" %}
{% block title %}{% trans %}Meetings{% endtrans %}{% endblock %}
{% block title %}{{ _('Meetings') }}{% endblock %}
{% block headextra %}
<link href="{{ get_url('meetings_atom') }}" type="application/atom+xml" rel="alternate" title="{% trans %}I2P Meetings ATOM Feed{% endtrans %}" />
<link href="{{ get_url('meetings_atom') }}" type="application/atom+xml" rel="alternate" title="{{ _('I2P Meetings ATOM Feed') }}" />
{%- endblock %}
{% block content %}
<h1>{% trans %}Logs of past I2P meetings{% endtrans %}</h1>
<h1>{{ _('Logs of past I2P meetings') }}</h1>
<p>{% trans blogindex=get_url('blog_index') -%}
If you have something to discuss, please find the developers on IRC in #i2p-dev.

View File

@@ -7,7 +7,7 @@
{% endif %}
{% endautoescape %}
<div class="irclog">
<h1>{% trans %}Full IRC Log{% endtrans %}</h1>
<h1>{{ _('Full IRC Log') }}</h1>
<pre>
{{ log|escape }}
{# TODO: pygments #}