Correct pluralization for addon help texts

This commit is contained in:
Raphael Michel
2017-06-26 17:29:39 +02:00
parent df6a93da5f
commit cf365635ef
3 changed files with 38 additions and 26 deletions

View File

@@ -30,11 +30,15 @@
<legend>{{ c.category.name }}</legend>
<p>
{% if c.min_count == c.max_count %}
{% blocktrans trimmed with min_count=c.min_count %}
{% blocktrans trimmed count min_count=c.min_count %}
You need to choose exactly one option from this category.
{% plural %}
You need to choose {{ min_count }} options from this category.
{% endblocktrans %}
{% elif c.min_count == 0 %}
{% blocktrans trimmed with max_count=c.max_count %}
{% blocktrans trimmed count max_count=c.max_count %}
You can choose at most one option from this category.
{% plural %}
You can choose up to {{ max_count }} options from this category.
{% endblocktrans %}
{% else %}