diff --git a/Resources/translations/EasyAdminBundle.en.xlf b/Resources/translations/EasyAdminBundle.en.xlf index 21e55a373d..e8ed50ffd9 100644 --- a/Resources/translations/EasyAdminBundle.en.xlf +++ b/Resources/translations/EasyAdminBundle.en.xlf @@ -116,6 +116,9 @@ action.add_another_item Add another item + + errors + Error|Errors diff --git a/Resources/translations/EasyAdminBundle.es.xlf b/Resources/translations/EasyAdminBundle.es.xlf index 9f74ba369a..41750737d6 100644 --- a/Resources/translations/EasyAdminBundle.es.xlf +++ b/Resources/translations/EasyAdminBundle.es.xlf @@ -109,6 +109,10 @@ delete_modal.content Esta acción no se puede deshacer. + + errors + Error|Errores + diff --git a/Resources/translations/EasyAdminBundle.eu.xlf b/Resources/translations/EasyAdminBundle.eu.xlf index af4898a41d..fe2e4e5d7e 100644 --- a/Resources/translations/EasyAdminBundle.eu.xlf +++ b/Resources/translations/EasyAdminBundle.eu.xlf @@ -109,6 +109,10 @@ delete_modal.content Ekintza hau ezin da desegin. + + errors + Hutsa|Hutsak + diff --git a/Resources/translations/EasyAdminBundle.fr.xlf b/Resources/translations/EasyAdminBundle.fr.xlf index a3ff023613..abd7806911 100644 --- a/Resources/translations/EasyAdminBundle.fr.xlf +++ b/Resources/translations/EasyAdminBundle.fr.xlf @@ -116,6 +116,9 @@ action.add_another_item Ajouter un autre élément + + errors + Erreur|Erreurs diff --git a/Resources/views/form/bootstrap_3_layout.html.twig b/Resources/views/form/bootstrap_3_layout.html.twig index f990eb9c03..8741b547f5 100644 --- a/Resources/views/form/bootstrap_3_layout.html.twig +++ b/Resources/views/form/bootstrap_3_layout.html.twig @@ -232,18 +232,19 @@ {# Errors #} {% block form_errors %} - {% if errors|length > 1 %} + {% set error_count = errors|length %} + {% if error_count >= 1 %}
- {{ errors|length }} ERRORS - -
- {% elseif errors|length == 1 %} -
- ERROR {{ errors|first.message }} + {{ 'errors'|transchoice(error_count) }} + {% if error_count == 1 %} + {{ errors|first.message }} + {% else %} + + {% endif %}
{% endif %} {% endblock form_errors %}