chore(i18n): translate missing attachments titles keys
This commit is contained in:
parent
013a05f24a
commit
a3425f5074
3 changed files with 7 additions and 3 deletions
|
@ -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."
|
||||||
|
|
|
@ -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 s’est produite pendant l’envoi du fichier."
|
uploading: "Une erreur s’est produite pendant l’envoi du fichier."
|
||||||
virus_infected: "Virus détecté, merci d’envoyer un autre fichier."
|
virus_infected: "Virus détecté, merci d’envoyer un autre fichier."
|
||||||
|
|
|
@ -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:)
|
||||||
|
|
Loading…
Reference in a new issue