fix(upload): missing i18n key

This commit is contained in:
Colin Darie 2023-02-22 16:51:58 +01:00
parent a931bea712
commit 8a340b6f74
3 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,7 @@ en:
delete_file: Delete file %{filename}
replace: Replace
replace_file: Replace file %{filename}
open_file: Open file %{filename}
errors:
uploading: "An error occurred while sending the file."
virus_infected: "Virus detected, please send another file."

View file

@ -7,6 +7,7 @@ fr:
delete_file: Supprimer le fichier %{filename}
replace: Remplacer
replace_file: Remplacer le fichier %{filename}
open_file: Ouvrir le fichier %{filename}
errors:
uploading: "Une erreur sest produite pendant lenvoi du fichier."
virus_infected: "Virus détecté, merci denvoyer un autre fichier."

View file

@ -12,7 +12,7 @@
= render Dsfr::DownloadComponent.new(attachment:)
- else
.fr-py-1v
%span.attachment-filename.fr-mr-1w= link_to_if(viewable?, attachment.filename.to_s, helpers.url_for(attachment.blob), title: "Ouvrir le fichier #{attachment.filename.to_s}", **helpers.external_link_attributes)
%span.attachment-filename.fr-mr-1w= link_to_if(viewable?, attachment.filename.to_s, helpers.url_for(attachment.blob), title: t(".open_file", filename: attachment.filename), **helpers.external_link_attributes)
= render Attachment::ProgressComponent.new(attachment: attachment)