- {% trans %}
- You have selected one record.
- {% plural nbReceivedDocuments %}
- You have selected {{ nbReceivedDocuments }} records.
- {% endtrans %}
+ {% if nbReceivedDocuments == 1 %}
+ {% trans %}
+ You have selected one record.
+ {% endtrans %}
+ {% else %}
+ {% trans %}
+ You have selected {{ nbReceivedDocuments }} records.
+ {% endtrans %}
+ {% endif %}
{% if nbEditableDocuments == 0 %}
{% trans %}None of the records can be modified.{% endtrans %}
{% else %}
{% if nbEditableDocuments < nbReceivedDocuments %}
- {% trans %}
- Only one record can be modified.
- {% plural nbEditableDocuments %}
- Only {{ nbEditableDocuments }} records can be modified.
- {% endtrans %}
+ {% if nbEditableDocuments == 1 %}
+ {% trans %}
+ Only one record can be modified.
+ {% endtrans %}
+ {% else %}
+ {% trans %}
+ Only {{ nbEditableDocuments }} records can be modified.
+ {% endtrans %}
+ {% endif %}
{% endif %}
{% endif %}
diff --git a/templates/web/prod/actions/collection_default.html.twig b/templates/web/prod/actions/collection_default.html.twig
index cd775c75e8..720305616a 100644
--- a/templates/web/prod/actions/collection_default.html.twig
+++ b/templates/web/prod/actions/collection_default.html.twig
@@ -19,21 +19,29 @@
{% if records | length != records.received() | length %}
{% set countable = records.received().count() - records.count() %}
- {% trans %}
- One document can not be modified.
- {% plural countable %}
- {{countable}} documents can not be modified.
- {% endtrans %}
+ {% if countable == 1 %}
+ {% trans %}
+ One document can not be modified.
+ {% endtrans %}
+ {% else %}
+ {% trans %}
+ {{countable}} documents can not be modified.
+ {% endtrans %}
+ {% endif %}
{% endif %}
{% set countable = records | length %}
- {% trans %}
- Move one record to the chose collection in the list.
- {% plural countable %}
- Move {{ countable }} records to the chosen collection in the list.
- {% endtrans %}
+ {% if countable == 1 %}
+ {% trans %}
+ Move one record to the chosen collection in the list.
+ {% endtrans %}
+ {% else %}
+ {% trans %}
+ Move {{ countable }} records to the chosen collection in the list.
+ {% endtrans %}
+ {% endif %}
diff --git a/templates/web/prod/orders/order_item.html.twig b/templates/web/prod/orders/order_item.html.twig
index 9acabf01ee..db8730a310 100644
--- a/templates/web/prod/orders/order_item.html.twig
+++ b/templates/web/prod/orders/order_item.html.twig
@@ -91,8 +91,8 @@