From 6b9377025fd410c1882cf0e16f3996d49bd77c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 23 Feb 2026 11:59:08 +0100 Subject: [PATCH] Add French translations and display logic for audit trail item count and export limit - Added French translations for audit trail count and export limit messages in `messages+intl-icu.fr.yaml`. - Updated `list.html.twig` to display the total number of audit items and a message if items exceed the exportable limit (`MAX_LINES`). --- .../Resources/views/AuditTrail/list.html.twig | 6 ++++++ .../ChillMainBundle/translations/messages+intl-icu.fr.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig b/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig index b77ed8662..bd73cd617 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig @@ -17,12 +17,18 @@ {{ filter|chill_render_filter_order_helper }} +

{{ 'audit_trail.list.nb_lines'|trans({'total': pagination.totalItems}) }}

+
{% for audit in auditTrails %} {{ include('@ChillMain/AuditTrail/_list_item.html.twig') }} {% endfor %}
+ {% if pagination.totalItems > constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %} +

{{ 'audit_trail.list.too_much_lines_to_download'|trans({'max': constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES')}) }}

+ {% endif %} + {{ chill_pagination(pagination) }} {% if pagination.totalItems <= constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %} diff --git a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml index 5b0841238..e2f56298a 100644 --- a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml +++ b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml @@ -154,3 +154,9 @@ filter_order: absence: You are listed as absent, as of {date, date, short}: Votre absence est indiquée à partir du {date, date, short} +audit_trail: + list: + too_much_lines_to_download: >- + Trop d'accès à télécharger, veuillez filtrer la liste pour obtenir moins de {max_lines} résultats. + nb_lines: >- + {total, plural, =0 {Aucun accès} one {# accès} other {# accès}}