diff --git a/app/views/groupe_instructeur_mailer/notify_added_instructeurs.html.haml b/app/views/groupe_instructeur_mailer/notify_added_instructeurs.html.haml
index b0c87979e00..b7b6e3300cd 100644
--- a/app/views/groupe_instructeur_mailer/notify_added_instructeurs.html.haml
+++ b/app/views/groupe_instructeur_mailer/notify_added_instructeurs.html.haml
@@ -1,8 +1,8 @@
%p= t(:hello, scope: [:views, :shared, :greetings])
%p
- - number_of_groups = @group.procedure.groupe_instructeurs.many? ? 'many_groups' : 'one_group'
- = t(".email_body.#{number_of_groups}",
+ = t(".email_body.html",
+ count: @group.procedure.groupe_instructeurs.count,
groupe: @group.label,
email: @current_instructeur_email,
procedure: @group.procedure.libelle,
diff --git a/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml b/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml
index 392f4ab0c3d..4ac9858ffa3 100644
--- a/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml
+++ b/app/views/instructeur_mailer/confirm_and_notify_added_instructeur.html.haml
@@ -1,8 +1,8 @@
%p= t(:hello, scope: [:views, :shared, :greetings])
%p
- - number_of_groups = @group.procedure.groupe_instructeurs.many? ? 'many_groups' : 'one_group'
- = t(".email_body.#{number_of_groups}",
+ = t(".email_body.html",
+ count: @group.procedure.groupe_instructeurs.count,
groupe: @group.label,
email: @current_instructeur_email,
procedure: @group.procedure.libelle,
@@ -13,7 +13,7 @@
%strong #{@instructeur.email}.
%p
- Pour l’activer, cliquez sur le lien suivant :
+ Pour l’activer, cliquez sur le lien suivant :
= link_to(users_activate_url(token: @reset_password_token), users_activate_url(token: @reset_password_token))
%p
diff --git a/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/en.yml b/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/en.yml
index 2d66d03fb51..fca438984bc 100644
--- a/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/en.yml
+++ b/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/en.yml
@@ -2,5 +2,6 @@ en:
groupe_instructeur_mailer:
notify_added_instructeurs:
email_body:
- one_group: "You were assigned to the procedure %{procedure} by %{email}."
- many_groups: "You were assigned to the group %{groupe} by %{email}, in charge of procedure %{procedure}."
+ html:
+ one: "You were assigned to the procedure %{procedure} by %{email}."
+ other: "You were assigned to the group %{groupe} by %{email}, in charge of procedure %{procedure}."
diff --git a/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/fr.yml b/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/fr.yml
index 5cf813f55cf..708a33cc6a2 100644
--- a/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/fr.yml
+++ b/config/locales/views/groupe_instructeur_mailer/notify_added_instructeurs/fr.yml
@@ -2,5 +2,6 @@ fr:
groupe_instructeur_mailer:
notify_added_instructeurs:
email_body:
- one_group: "Vous avez été affecté(e) à la démarche %{procedure} par %{email}."
- many_groups: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche %{procedure}."
+ html:
+ one: "Vous avez été affecté(e) à la démarche %{procedure} par %{email}."
+ other: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche %{procedure}."
diff --git a/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/en.yml b/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/en.yml
index 180026edaf5..2cd4936c7ec 100644
--- a/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/en.yml
+++ b/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/en.yml
@@ -2,5 +2,6 @@ en:
instructeur_mailer:
confirm_and_notify_added_instructeur:
email_body:
- one_group: "You were assigned to the procedure %{procedure} by %{email}."
- many_groups: "You were assigned to the group %{groupe} by %{email}, in charge of procedure %{procedure}."
+ html:
+ one: "You were assigned to the procedure %{procedure} by %{email}."
+ other: "You were assigned to the group %{groupe} by %{email}, in charge of procedure %{procedure}."
diff --git a/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/fr.yml b/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/fr.yml
index 09e8498282c..118e7ab08b4 100644
--- a/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/fr.yml
+++ b/config/locales/views/instructeur_mailer/confirm_and_notify_added_instructeur/fr.yml
@@ -2,5 +2,6 @@ fr:
instructeur_mailer:
confirm_and_notify_added_instructeur:
email_body:
- one_group: "Vous avez été affecté(e) à la démarche %{procedure} par %{email}."
- many_groups: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche %{procedure}."
+ html:
+ one: "Vous avez été affecté(e) à la démarche %{procedure} par %{email}."
+ other: "Vous avez été ajouté(e) au groupe %{groupe} par %{email}, en charge de la démarche %{procedure}."