From ed514432ca548409b3f2db39aaa1f7c9f35d2b18 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Thu, 5 Sep 2013 13:28:45 +0200 Subject: [PATCH] Fix translation issues --- templates/web/admin/users.html.twig | 10 +++++-- templates/web/common/dialog_export.html.twig | 12 ++++++-- .../element_informations.html.twig | 18 ++++++------ .../Flickr/element_informations.html.twig | 4 +-- .../Youtube/element_informations.html.twig | 18 ++++++------ .../web/prod/actions/Property/index.html.twig | 28 ++++++++++++------- .../prod/actions/collection_default.html.twig | 28 ++++++++++++------- .../web/prod/orders/order_item.html.twig | 4 +-- templates/web/prod/upload/lazaret.html.twig | 14 ++++++---- templates/web/report/generate_tab.html.twig | 15 ++++++++-- 10 files changed, 98 insertions(+), 53 deletions(-) diff --git a/templates/web/admin/users.html.twig b/templates/web/admin/users.html.twig index 7bc2a75c6f..1dfd409d72 100644 --- a/templates/web/admin/users.html.twig +++ b/templates/web/admin/users.html.twig @@ -7,11 +7,15 @@
{% set user_count = app['request'].get('user-updated') %} + {% if user_count == 1 %} {% trans %} - {{ user_count }} user has been created - {% plural user_count %} - {{ user_count }} users have been created + The user has been created. {% endtrans %} + {% else %} + {% trans %} + {{ user_count }} users have been created. + {% endtrans %} + {% endif %}
{% endif %} diff --git a/templates/web/common/dialog_export.html.twig b/templates/web/common/dialog_export.html.twig index 9aa9f900ea..51acdc3ada 100644 --- a/templates/web/common/dialog_export.html.twig +++ b/templates/web/common/dialog_export.html.twig @@ -256,10 +256,18 @@ {% if values.available > 0 %}
{% set docs_orderable = values.available %} - {% trans %}{{docs_orderable}} documents commandes{% endtrans %} + {% if docs_orderable <= 1 %} + {% trans %}Un document commande{% endtrans %} + {% else %} + {% trans %}{{docs_orderable}} documents commandes{% endtrans %} + {% endif %} {% set docs_not_orderable = values.total - values.available %} {% if docs_not_orderable > 0%} - {% trans %}{{docs_not_orderable}} documents ne peuvent pas etre commandes{% endtrans %} + {% if docs_not_orderable == 1 %} + {% trans %}Un document ne peut etre commande{% endtrans %} + {% else %} + {% trans %}{{docs_not_orderable}} documents ne peuvent pas etre commandes{% endtrans %} + {% endif %} {% endif %} {% if values.refused|length > 0 %} {% set title%} diff --git a/templates/web/prod/actions/Bridge/Dailymotion/element_informations.html.twig b/templates/web/prod/actions/Bridge/Dailymotion/element_informations.html.twig index 81032a068a..67ce358a0b 100644 --- a/templates/web/prod/actions/Bridge/Dailymotion/element_informations.html.twig +++ b/templates/web/prod/actions/Bridge/Dailymotion/element_informations.html.twig @@ -1,14 +1,12 @@