chore(i18n): translate missing attachments titles keys

This commit is contained in:
Colin Darie 2022-12-13 18:00:45 +01:00
parent 013a05f24a
commit a3425f5074
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
3 changed files with 7 additions and 3 deletions

View file

@ -3,8 +3,10 @@ en:
max_file_size: "File size limit : %{max_file_size}." max_file_size: "File size limit : %{max_file_size}."
allowed_formats: "Supported formats : %{formats}" allowed_formats: "Supported formats : %{formats}"
retry: Retry retry: Retry
replace: Replace
delete: Delete delete: Delete
delete_file: Delete file %{filename}
replace: Replace
replace_file: Replace file %{filename}
errors: errors:
uploading: "An error occurred while sending the file." uploading: "An error occurred while sending the file."
virus_infected: "Virus detected, please send another file." virus_infected: "Virus detected, please send another file."

View file

@ -4,7 +4,9 @@ fr:
allowed_formats: "Formats supportés : %{formats}" allowed_formats: "Formats supportés : %{formats}"
retry: Réessayer retry: Réessayer
delete: Supprimer delete: Supprimer
delete_file: Supprimer le fichier %{filename}
replace: Remplacer replace: Remplacer
replace_file: Remplacer le fichier %{filename}
errors: errors:
uploading: "Une erreur sest produite pendant lenvoi du fichier." uploading: "Une erreur sest produite pendant lenvoi du fichier."
virus_infected: "Virus détecté, merci denvoyer un autre fichier." virus_infected: "Virus détecté, merci denvoyer un autre fichier."

View file

@ -3,9 +3,9 @@
%div{ id: dom_id(attachment, :persisted_row) } %div{ id: dom_id(attachment, :persisted_row) }
.flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) } .flex.flex-gap-2{ class: class_names("attachment-error": attachment.virus_scanner_error?) }
- if user_can_destroy? - if user_can_destroy?
= link_to(t('.delete'), destroy_attachment_path, **remove_button_options, class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: "Supprimer le fichier #{attachment.filename}") = link_to(t('.delete'), destroy_attachment_path, **remove_button_options, class: "fr-btn fr-btn--tertiary fr-btn--sm fr-icon-delete-line", title: t(".delete_file", filename: attachment.filename))
- elsif user_can_replace? - elsif user_can_replace?
= button_tag t('.replace'), **replace_button_options, class: "fr-btn fr-btn--tertiary fr-btn--sm", title: "Remplacer le fichier #{attachment.filename}" = button_tag t('.replace'), **replace_button_options, class: "fr-btn fr-btn--tertiary fr-btn--sm", title: t(".replace_file", filename: attachment.filename)
- if downloadable? - if downloadable?
= render Dsfr::DownloadComponent.new(attachment:) = render Dsfr::DownloadComponent.new(attachment:)