Adjust message if there's only one addon (#1147)

Relates to #1091
This commit is contained in:
Flavia Bastos
2019-02-01 12:26:37 -04:00
committed by Raphael Michel
parent 90f08d0aca
commit 834b5a26a5

View File

@@ -37,11 +37,8 @@
{% plural %}
You need to choose {{ min_count }} options from this category.
{% endblocktrans %}
{% elif c.min_count == 0 %}
{% 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.
{% elif c.min_count == 0 and c.max_count >= c.form.fields|length %}
{% blocktrans %}
{% endblocktrans %}
{% else %}
{% blocktrans trimmed with min_count=c.min_count max_count=c.max_count %}