improve translation

This commit is contained in:
Lisa Durand 2023-01-26 15:53:57 +01:00
parent 3fdfc38faf
commit 1d1f5ad567
3 changed files with 12 additions and 4 deletions

View file

@ -99,7 +99,7 @@
%div{ data: batch_operation_component.render? ? { controller: 'batch-operation' } : {} }
.flex.align-center.fr-mt-2w
%span.fr-h6.fr-mb-0.fr-mr-2w
= page_entries_info @filtered_sorted_paginated_ids, entry_name: 'dossier'
= page_entries_info @filtered_sorted_paginated_ids
= render batch_operation_component

View file

@ -1,12 +1,16 @@
en:
helpers:
page_entries_info:
entry:
zero: "file"
one: "file"
other: "files"
more_pages:
display_entries: Displaying %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> of <b>%{total}</b> in total
display_entries: "%{first} - %{last} <span class='fr-text--sm'>in %{total} %{entry_name}</span>"
one_page:
display_entries:
one: Displaying <b>%{count}</b> %{entry_name}
other: Displaying <b>all %{count}</b> %{entry_name}
one: "<b>%{count}</b> %{entry_name}"
other: "%{count} <span class='fr-text--sm'>in %{count} %{entry_name}</span>"
views:
pagination:
first: "&laquo; First"

View file

@ -1,6 +1,10 @@
fr:
helpers:
page_entries_info:
entry:
zero: "dossier"
one: "dossier"
other: "dossiers"
more_pages:
display_entries: "%{first} - %{last} <span class='fr-text--sm'>sur %{total} %{entry_name}</span>"
one_page: