Use a blocktrans tag in limit summary template

* No additional feature
* Enable translators to control word order

Change-Id: I8c1af69596ba668c09990e41d8d58d2df450d6d2
Closes-Bug: #1473541
This commit is contained in:
KATO Tomoyuki 2015-08-20 14:12:10 +09:00
parent be746bca4e
commit 11887865e9
1 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@
<div class="d3_quota_bar">
<div class="d3_pie_chart_usage" data-used="{% quotapercent quota.used quota.max %}"></div>
<strong> {{ quota.name }} <br />
{{ quota.text|default:_("Used") }}
<span> {{quota.used|intcomma }} </span>
{% if quota.max|quotainf != '-1' %}
{% trans "of" %} <span> {{ quota.max|quotainf|intcomma }} </span>
{% blocktrans with used=quota.used|intcomma available=quota.max|quotainf|intcomma %}
Used <span> {{ used }} </span>of<span> {{ available }} </span>{% endblocktrans %}
{% else %}
<span> {% trans "(No Limit)" %} </span>
{% blocktrans with used=quota.used|intcomma %}
Used <span> {{ used }} </span>(No Limit){% endblocktrans %}
{% endif %}
</strong>
</div>