Fix i18n of template expressions

This commit is contained in:
Sunil Mohan Adapa 2015-11-14 11:42:32 +05:30
parent b84534eaec
commit 01d50c7ae8
17 changed files with 76 additions and 76 deletions

View File

@ -25,9 +25,9 @@
<h2>{% trans "Services and Applications" %}</h2> <h2>{% trans "Services and Applications" %}</h2>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
You can install and run various services and applications on You can install and run various services and applications on
your {{ cfg.box_name }}. your {{ box_name }}.
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@ -25,10 +25,10 @@
<h2>{{ title }}</h2> <h2>{{ title }}</h2>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Firewall is a network security system that controls the incoming Firewall is a network security system that controls the incoming
and outgoing network traffic on your {{ cfg.box_name }}. Keeping and outgoing network traffic on your {{ box_name }}. Keeping a
a firewall enabled and properly configured reduces risk of firewall enabled and properly configured reduces risk of
security threat from the Internet. security threat from the Internet.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
@ -38,10 +38,10 @@
{% if firewall_status = 'not_running' %} {% if firewall_status = 'not_running' %}
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Firewall daemon is not running. Please run it. Firewall comes Firewall daemon is not running. Please run it. Firewall comes
enabled by default on {{ cfg.box_name }}. On any Debian based enabled by default on {{ box_name }}. On any Debian based
system (such as {{ cfg.box_name }}) you may run it using the system (such as {{ box_name }}) you may run it using the
command 'service firewalld start' or in case of a system with command 'service firewalld start' or in case of a system with
systemd 'systemctl start firewalld' systemd 'systemctl start firewalld'
{% endblocktrans %} {% endblocktrans %}

View File

@ -26,9 +26,9 @@
<p> <p>
{% url 'help:manual' as manual_url %} {% url 'help:manual' as manual_url %}
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
The <a href="{{ manual_url }}">FreedomBox Manual</a> is the The <a href="{{ manual_url }}">FreedomBox Manual</a> is the
best place to start for information regarding {{ cfg.box_name }}. best place to start for information regarding {{ box_name }}.
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@ -132,7 +132,9 @@
<div class="list-group-item"> <div class="list-group-item">
{% trans "Speed" %} {% trans "Speed" %}
<span class="pull-right"> <span class="pull-right">
{% blocktrans %}{{ device.ethernet.speed }} Mbit/s{% endblocktrans %} {% blocktrans trimmed with ethernet_speed=device.ethernet.speed %}
{{ ethernet_speed }} Mbit/s
{% endblocktrans %}
</span> </span>
</div> </div>
{% endif %} {% endif %}
@ -146,7 +148,9 @@
<div class="list-group-item"> <div class="list-group-item">
{% trans "Speed" %} {% trans "Speed" %}
<span class="pull-right"> <span class="pull-right">
{% blocktrans %}{{ device.wireless.bitrate }} Mbit/s{% endblocktrans %} {% blocktrans trimmed with wireless_bitrate=device.wireless.bitrate %}
{{ wireless_bitrate }} Mbit/s
{% endblocktrans %}
</span> </span>
</div> </div>
<div class="list-group-item"> <div class="list-group-item">

View File

@ -116,7 +116,7 @@
class="network-type-icon" alt="{% trans "Wi-Fi" %}"/> class="network-type-icon" alt="{% trans "Wi-Fi" %}"/>
{% endif %} {% endif %}
<a href="{% url 'networks:show' connection.uuid %}" <a href="{% url 'networks:show' connection.uuid %}"
title="{% blocktrans %}Show connection {{ connection.name }}{% endblocktrans %}"> title="{% blocktrans with name=connection.name %}Show connection {{ name }}{% endblocktrans %}">
{{ connection.name }} ({{ connection.interface_name }})</a> {{ connection.name }} ({{ connection.interface_name }})</a>
</p> </p>
{% endif %} {% endif %}

View File

@ -64,7 +64,7 @@
<a href="{% url 'networks:delete' connection.uuid %}" <a href="{% url 'networks:delete' connection.uuid %}"
class="btn btn-default btn-sm pull-right" class="btn btn-default btn-sm pull-right"
role="button" role="button"
title="{% blocktrans %}Delete connection {{ connection.name }}{% endblocktrans %}"> title="{% blocktrans with name=connection.name %}Delete connection {{ name }}{% endblocktrans %}">
<span class="glyphicon glyphicon-trash" <span class="glyphicon glyphicon-trash"
aria-hidden="true"></span> aria-hidden="true"></span>
</a> </a>

View File

@ -35,15 +35,14 @@
<h2>{% trans "Virtual Private Network (OpenVPN)" %}</h2> <h2>{% trans "Virtual Private Network (OpenVPN)" %}</h2>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Virtual Private Network (VPN) is a technique for securely Virtual Private Network (VPN) is a technique for securely
connecting two machines in order to access resources of a connecting two machines in order to access resources of a
private network. While you are away from home, you can connect private network. While you are away from home, you can connect
to your {{ cfg.box_name }} in order to join your home network to your {{ box_name }} in order to join your home network and
and access private/internal services provided by access private/internal services provided by {{ box_name }}.
{{ cfg.box_name }}. You can also access the rest of the You can also access the rest of the Internet via {{ box_name }}
Internet via {{ cfg.box_name }} for added security and for added security and anonymity.
anonymity.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
@ -52,8 +51,8 @@
<h3>{% trans "Profile" %}</h3> <h3>{% trans "Profile" %}</h3>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
To connect to {{ cfg.box_name }}'s VPN, you need to download a To connect to {{ box_name }}'s VPN, you need to download a
profile and feed it to an OpenVPN client on your mobile or profile and feed it to an OpenVPN client on your mobile or
desktop machine. OpenVPN Clients are available for most desktop machine. OpenVPN Clients are available for most
platforms. See platforms. See
@ -64,9 +63,9 @@
</p> </p>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Profile is specific to each user of {{ cfg.box_name }}. Keep Profile is specific to each user of {{ box_name }}. Keep it a
it a secret. secret.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
@ -83,10 +82,10 @@
{% if not status.is_setup and not status.setup_running %} {% if not status.is_setup and not status.setup_running %}
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
OpenVPN has not yet been setup. Performing a secure setup OpenVPN has not yet been setup. Performing a secure setup
takes a very long time. Depending on how fast your takes a very long time. Depending on how fast your
{{ cfg.box_name }} is, it may even take hours. If the setup {{ box_name }} is, it may even take hours. If the setup
is interrupted, you may start it again. is interrupted, you may start it again.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
@ -106,11 +105,11 @@
</p> </p>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
To perform a secure setup, this process takes a very long To perform a secure setup, this process takes a very long
time. Depending on how fast your {{ cfg.box_name }} is, it time. Depending on how fast your {{ box_name }} is, it may
may even take hours. If the setup is interrupted, you may even take hours. If the setup is interrupted, you may start
start it again. it again.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% endif %} {% endif %}

View File

@ -86,8 +86,8 @@
{{ service_url }} {{ service_url }}
{% endif %} {% endif %}
<br> <br>
{% blocktrans trimmed %} {% blocktrans trimmed with backend_host=service.backend_host backend_port=service.backend_port %}
connected to {{ service.backend_host }}:{{ service.backend_port }} connected to {{ backend_host }}:{{ backend_port }}
{% endblocktrans %} {% endblocktrans %}
</span> </span>
</span> </span>

View File

@ -23,26 +23,26 @@
{% block content %} {% block content %}
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
PageKite is a system for exposing {{ cfg.box_name }} services PageKite is a system for exposing {{ box_name }} services when
when you don't have a direct connection to the Internet. You you don't have a direct connection to the Internet. You only
only need this if your {{ cfg.box_name }} services are need this if your {{ box_name }} services are unreachable from
unreachable from the rest of the Internet. This includes the the rest of the Internet. This includes the following
following situations: situations:
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<ul> <ul>
<li> <li>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
{{ cfg.box_name }} is behind a restricted firewall. {{ box_name }} is behind a restricted firewall.
{% endblocktrans %} {% endblocktrans %}
</li> </li>
<li> <li>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
{{ cfg.box_name }} is connected to a (wireless) router which {{ box_name }} is connected to a (wireless) router which you
you don't control. don't control.
{% endblocktrans %} {% endblocktrans %}
</li> </li>
@ -64,13 +64,12 @@
</ul> </ul>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
PageKite works around NAT, firewalls and IP-address limitations PageKite works around NAT, firewalls and IP-address limitations
by using a combination of tunnels and reverse proxies. You can by using a combination of tunnels and reverse proxies. You can
use any pagekite service provider, for example use any pagekite service provider, for example
<a href="https://pagekite.net">pagekite.net</a>. In future it <a href="https://pagekite.net">pagekite.net</a>. In future it
might be possible to use your buddy's {{ cfg.box_name }} for might be possible to use your buddy's {{ box_name }} for this.
this.
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@ -35,9 +35,9 @@
</p> </p>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
You can use Privoxy by modifying your browser proxy settings to You can use Privoxy by modifying your browser proxy settings to
your {{ cfg.box_name }} hostname (or IP address) with port 8118. your {{ box_name }} hostname (or IP address) with port 8118.
While using Privoxy, you can see its configuration details and While using Privoxy, you can see its configuration details and
documentation at documentation at
<a href="http://config.privoxy.org">http://config.privoxy.org/</a> <a href="http://config.privoxy.org">http://config.privoxy.org/</a>

View File

@ -25,16 +25,16 @@
<h2>{% trans "System Configuration" %}</h2> <h2>{% trans "System Configuration" %}</h2>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Here you can administrate the underlying system of your Here you can administrate the underlying system of your
{{ cfg.box_name }}. {{ box_name }}.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
The options affect the {{ cfg.box_name }} at its most general The options affect the {{ box_name }} at its most general level,
level, so be careful! so be careful!
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@ -85,12 +85,11 @@
<h3>{% trans "Bridge" %}</h3> <h3>{% trans "Bridge" %}</h3>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
Your {{ cfg.box_name }} is configured as a Tor bridge with Your {{ box_name }} is configured as a Tor bridge with obfsproxy,
obfsproxy, so it can help circumvent censorship. If your {{ so it can help circumvent censorship. If your {{ box_name }} is
cfg.box_name }} is behind a router or firewall, you should make behind a router or firewall, you should make sure the following
sure the following ports are open, and port-forwarded, if ports are open, and port-forwarded, if necessary:
necessary:
{% endblocktrans %} {% endblocktrans %}
</p> </p>
@ -118,8 +117,8 @@
<h3>{% trans "SOCKS" %}</h3> <h3>{% trans "SOCKS" %}</h3>
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed with box_name=cfg.box_name %}
A Tor SOCKS port is available on your {{ cfg.box_name }} on TCP port A Tor SOCKS port is available on your {{ box_name }} on TCP port
9050. 9050.
{% endblocktrans %} {% endblocktrans %}
</p> </p>

View File

@ -24,8 +24,8 @@
{% block content %} {% block content %}
<h3> <h3>
{% blocktrans trimmed %} {% blocktrans trimmed with username=form.user.username %}
Change Password for <em>{{ form.user.username }}</em> Change Password for <em>{{ username }}</em>
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>

View File

@ -24,8 +24,8 @@
{% block content %} {% block content %}
<h3> <h3>
{% blocktrans trimmed %} {% blocktrans trimmed with username=object.username %}
Delete User <em>{{ object.username }}</em> Delete User <em>{{ username }}</em>
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>
@ -35,7 +35,7 @@
{% csrf_token %} {% csrf_token %}
<input type="submit" class="btn btn-md btn-primary" <input type="submit" class="btn btn-md btn-primary"
value="{% blocktrans %}Delete {{ object.username }}{% endblocktrans %}"/> value="{% blocktrans with username=object.username %}Delete {{ username }}{% endblocktrans %}"/>
<a href="{% url 'users:index' %}" role="button" <a href="{% url 'users:index' %}" role="button"
class="btn btn-md btn-primary">{% trans "Cancel" %}</a> class="btn btn-md btn-primary">{% trans "Cancel" %}</a>

View File

@ -43,14 +43,14 @@
<a href="{% url 'users:delete' user.username %}" <a href="{% url 'users:delete' user.username %}"
class="btn btn-default btn-sm pull-right" class="btn btn-default btn-sm pull-right"
role="button" role="button"
title="{% blocktrans %}Delete user {{ user.username }}{% endblocktrans %}"> title="{% blocktrans with username=user.username %}Delete user {{ username }}{% endblocktrans %}">
<span class="glyphicon glyphicon-trash" <span class="glyphicon glyphicon-trash"
aria-hidden="true"></span> aria-hidden="true"></span>
</a> </a>
<a class='user-edit-label' <a class='user-edit-label'
href="{% url 'users:edit' user.username %}" href="{% url 'users:edit' user.username %}"
title="{% blocktrans %}Edit user {{ user.username }}{% endblocktrans %}"> title="{% blocktrans with username=user.username %}Edit user {{ username }}{% endblocktrans %}">
{{ user.username }} {{ user.username }}
</a> </a>

View File

@ -32,8 +32,8 @@
{% block content %} {% block content %}
<h3> <h3>
{% blocktrans trimmed %} {% blocktrans trimmed with username=object.username %}
Edit User <em>{{ object.username }}</em> Edit User <em>{{ username }}</em>
{% endblocktrans %} {% endblocktrans %}
</h3> </h3>

View File

@ -71,9 +71,8 @@
{% for key, transaction in transactions.items %} {% for key, transaction in transactions.items %}
<div> <div>
{% blocktrans trimmed %} {% blocktrans trimmed with package_names=transaction.package_names|join:", " status=transaction.status_string %}
Installing {{ transaction.package_names|join:", " }}: Installing {{ package_names }}: {{ status }}
{{ transaction.status_string }}
{% endblocktrans %} {% endblocktrans %}
</div> </div>
<div class="progress"> <div class="progress">
@ -82,8 +81,8 @@
aria-valuenow="{{ transaction.percentage }}" aria-valuenow="{{ transaction.percentage }}"
style="width: {{ transaction.percentage }}%"> style="width: {{ transaction.percentage }}%">
<span class="sr-only"> <span class="sr-only">
{% blocktrans trimmed %} {% blocktrans trimmed with percentage=transaction.percentage %}
{{ transaction.percentage }}% complete {{ percentage }}% complete
{% endblocktrans %} {% endblocktrans %}
</span> </span>
</div> </div>