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,7 +1,7 @@
{% extends "global/layout.html" %}
{% block title %}Debian/Ubuntu{% endblock %}
{% block content %}
<h1>{% trans %}Debian I2P Packages{% endtrans %}</h1>
<h1>{{ _('Debian I2P Packages') }}</h1>
{% trans -%}
The packages hosted on <a href="https://launchpad.net/%7Ei2p-maintainers/+archive/i2p">the I2P Launchpad site</a>
@@ -29,8 +29,8 @@ with these packages on <a href="http://{{ trac }}">Trac</a> at
<li>{% trans %}Option 3: <a href="#nonlinux">Non-Linux</a> (and possibly Non-x86 architectures){% endtrans %}</li>
</ul>
<h2 id="ubuntu">{% trans %}Instructions for Ubuntu Lucid Lynx (and newer) and derivatives like Linux Mint &amp; Trisquel{% endtrans %}</h2>
<h5>{% trans %}Adding the PPA via the command line and installing I2P{% endtrans %}</h5>
<h2 id="ubuntu">{{ _('Instructions for Ubuntu Lucid Lynx (and newer) and derivatives like Linux Mint &amp; Trisquel') }}</h2>
<h5>{{ _('Adding the PPA via the command line and installing I2P') }}</h5>
<ol>
<li>
{% trans %}Open a terminal and enter:{% endtrans %}<br />
@@ -54,7 +54,7 @@ was added with the earlier command.
<code>&nbsp;&nbsp;&nbsp;&nbsp;sudo apt-get install i2p</code></li>
</ol>
<h5>{% trans %}Adding the PPA Using Synaptic{% endtrans %}</h5>
<h5>{{ _('Adding the PPA Using Synaptic') }}</h5>
<ol>
<li>
{% trans -%}
@@ -83,7 +83,7 @@ After the installation process completes you can move on to the next
part of <a href="#Post-install_work">starting I2P</a> and configuring it for your system.
{%- endtrans %}
<h2 id="debian">{% trans %}Instructions for Debian Lenny and newer{% endtrans %}</h2>
<h2 id="debian">{{ _('Instructions for Debian Lenny and newer') }}</h2>
{% trans -%}
The steps below should be performed with root access (i.e., switching
@@ -123,7 +123,7 @@ repository enabled on your system, including the I2P PPA added in step
After the installation process completes you can move on to the next part of <a href="#Post-install_work">starting I2P</a> and configuring it for your system.
{%- endtrans %}
<h2 id="nonlinux">{% trans %}Instructions for Non-Linux / Non-x86{% endtrans %}</h2>
<h2 id="nonlinux">{{ _('Instructions for Non-Linux / Non-x86') }}</h2>
{% trans -%}
The steps below should be performed with root access (i.e., switching
@@ -152,7 +152,7 @@ user to root with "<code>su</code>" or by prefixing each command with "<code>sud
After the installation process completes you can move on to the next part of <a href="#Post-install_work">starting I2P</a> and configuring it for your system.
{%- endtrans %}
<h2 id="Post-install_work">{% trans %}Post-install work{% endtrans %}</h2>
<h2 id="Post-install_work">{{ _('Post-install work') }}</h2>
{% trans -%}