Fix pluralization problems
{% for app in object_list %}
<li>
{% if app.is_probably_expired %}
- <span class="lead">
<span class="label label-danger">
- {% blocktrans trimmed with num_days=app.get_num_days_since_expiration %}
+ {% with app.get_num_days_since_expiration as num_days %}
+ {% ifequal num_days 0 %}
+ {% trans "Expired today" %}
+ {% else %}
+ {% blocktrans trimmed count counter=num_days%}
+ Expired {{ num_days }} day ago
+ {% plural %}
Expired {{ num_days }} days ago
{% endblocktrans %}
- </span>
+ {% endifequal %}
+ {% endwith %}
</span>&nbsp;
{% else %}
- <span class="lead">
<span class="label label-info">
- {% blocktrans trimmed with num_days=app.get_num_days_until_expiration %}
+ {% blocktrans trimmed with num_days=app.get_num_days_until_expiration count counter=num_days %}
+ Expiring in {{ num_days }} day
+ {% plural %}
Expiring in {{ num_days }} days
{% endblocktrans %}
- </span>
</span>&nbsp;
{% endif %}
<a href="{{ app.get_absolute_url }}">
