Use 'trimmed' for blocktrans in multi-line strings

blocktrans trimmed option removes newlines from contents of blocktrans
and replaces any whitespace at the beginning and end of a line into
a single space. This makes translator life easier.

Change-Id: I50d5e4ea364a70a42e4309c919f4eb3c3a0ebc37
Closes-Bug: #1742162
This commit is contained in:
Qian Min Chen 2018-01-09 22:39:18 +08:00 committed by qiaomin
parent 20d49d9675
commit 409d8f6c61
3 changed files with 6 additions and 6 deletions

View File

@ -16,15 +16,15 @@
<div class="right quota-dynamic">
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
The Name field should contain a full-qualified domain name (with
trailing period).
{% endblocktrans %}</p>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
The Email field should contain a valid email address to be associated
with the domain.
{% endblocktrans %}</p>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
The optional TTL field can be any value between 1 and 2147483647
seconds.
{% endblocktrans %}</p>

View File

@ -16,7 +16,7 @@
</fieldset>
</div>
{% blocktrans %}
{% blocktrans trimmed %}
<p>
<strong>TTL</strong>
The TTL is the time-to-live for the record, in seconds.

View File

@ -19,11 +19,11 @@
<p>{% blocktrans %}
From here you can edit the email address and TTL associated with a domain.
{% endblocktrans %}</p>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
The Email field should contain a valid email address to be associated
with the domain.
{% endblocktrans %}</p>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
The optional TTL field can be any value between 1 and 2147483647
seconds.
{% endblocktrans %}</p>