diff --git a/app/views/shared/champs/rna/_association.html.haml b/app/views/shared/champs/rna/_association.html.haml index f0520db90..9fae5d37e 100644 --- a/app/views/shared/champs/rna/_association.html.haml +++ b/app/views/shared/champs/rna/_association.html.haml @@ -1,7 +1,6 @@ - case error - when :invalid - %p.fr-error-text - Le numéro RNA doit commencer par un W majuscule suivi de 9 chiffres ou lettres + %p.fr-error-text= t('.invalid_number') - when :not_found %p.fr-error-text= t('.not_found') - when :network_error diff --git a/config/locales/shared.en.yml b/config/locales/shared.en.yml index 044deec35..8f057684d 100644 --- a/config/locales/shared.en.yml +++ b/config/locales/shared.en.yml @@ -28,9 +28,10 @@ en: not_filled: not filled not_found: "RNA number %{rna} (no association found)" association: - data_fetched: "This RNA number is linked to %{title}, %{address}" + data_fetched: "This RNA number is linked to: %{title}, %{address}" not_found: "No association found" network_error: "A network error has prevented the association associated with this RNA to be fetched" + invalid_number: "The RNA number must begin with a capital W followed by 9 digits or letters" rnf: show: not_found: "RNF %{rnf} (no foundation found)" diff --git a/config/locales/shared.fr.yml b/config/locales/shared.fr.yml index fbca54f2d..968309730 100644 --- a/config/locales/shared.fr.yml +++ b/config/locales/shared.fr.yml @@ -30,9 +30,10 @@ fr: not_filled: non renseigné not_found: "RNA %{rna} (aucun établissement trouvé)" association: - data_fetched: "Ce RNA correspond à %{title}, %{address}" + data_fetched: "Ce RNA correspond à : %{title}, %{address}" not_found: "Aucun établissement trouvé" network_error: "Une erreur réseau a empêché l’association liée à ce RNA d’être trouvée" + invalid_number: "Le numéro RNA doit commencer par un W majuscule suivi de 9 chiffres ou lettres" rnf: show: not_found: "RNF %{rnf} (aucune fondation trouvée)"