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: I988b79fa521b17d3e0361d487e4c4320194b11e5
Closes-bug: #1782277
This commit is contained in:
Qian Min Chen 2018-07-18 11:00:42 +08:00 committed by Goutham Pacha Ravi
parent ce7b60603d
commit c7debef126
13 changed files with 15 additions and 15 deletions

View File

@ -16,7 +16,7 @@
</div>
<div class="right">
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Placeholder for description of share group type access managing form.
{% endblocktrans %}</p>
</div>

View File

@ -16,7 +16,7 @@
</div>
<div class="right">
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Placeholder for description of share type access managing form.
{% endblocktrans %}</p>
</div>

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
"Manage" an existing share from a Manila host.
This will make the share visible within OpenStack.
<br>

View File

@ -3,7 +3,7 @@
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Cancel migration of a migrating share.
<br>
<br>

View File

@ -3,7 +3,7 @@
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Complete migration of a migrating share to another Manila host.
This operation is expected to be disruptive.
<br>

View File

@ -3,7 +3,7 @@
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Obtains migration progress of a migrating share.
<br>
<br>

View File

@ -3,7 +3,7 @@
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Migrate an existing share to another Manila host.
This will move all your share data from one host to another.
<br>

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
When a share is "unmanaged", the share will no longer be visible within OpenStack.
Note that the share will not be deleted.
<br>

View File

@ -16,8 +16,8 @@
</div>
<div class="right">
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
The security service can be used by backend drivers to
<p>{% blocktrans trimmed %}
The security service can be used by backend drivers to
configure clients, for more secure using of share.
{% endblocktrans %}</p>
</div>

View File

@ -2,8 +2,8 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
The security service can be used by backend drivers to
<p>{% blocktrans trimmed %}
The security service can be used by backend drivers to
configure clients, for more secure using of share.
{% endblocktrans %}</p>
{% endblock %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Share networks contain network data, that will be used
for creation of service VM, where will be hosted shares.
{% endblocktrans %}</p>

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Add policy rule to snapshot, 'ip' rule represents ip address,
'user' rule represents username or usergroup,
'cephx' rule represents ceph auth ID, and 'cert' rule represents

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block modal-body-right %}
<h3>{% trans "Description" %}:</h3>
<p>{% blocktrans %}
<p>{% blocktrans trimmed %}
Add policy rule to share, 'ip' rule represents ipv4 address,
'user' rule represents username or usergroup,
'cephx' rule represents ceph auth ID.