mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-04 20:13:42 +00:00
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`).
This commit is contained in:
@@ -17,12 +17,18 @@
|
||||
|
||||
{{ filter|chill_render_filter_order_helper }}
|
||||
|
||||
<p>{{ 'audit_trail.list.nb_lines'|trans({'total': pagination.totalItems}) }}</p>
|
||||
|
||||
<div class="audit-trail list flex-table">
|
||||
{% for audit in auditTrails %}
|
||||
{{ include('@ChillMain/AuditTrail/_list_item.html.twig') }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% if pagination.totalItems > constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %}
|
||||
<p>{{ 'audit_trail.list.too_much_lines_to_download'|trans({'max': constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES')}) }}</p>
|
||||
{% endif %}
|
||||
|
||||
{{ chill_pagination(pagination) }}
|
||||
|
||||
{% if pagination.totalItems <= constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user