diff --git a/app/views/account/show.html.erb b/app/views/account/show.html.erb index 601865fd4..ad118d118 100644 --- a/app/views/account/show.html.erb +++ b/app/views/account/show.html.erb @@ -8,7 +8,7 @@ <% elsif current_user.level_two_verified? %> <%= t("account.show.level_two_user") %> <% else %> - <%= link_to "Verify my account", new_residence_path, class: 'button radius small secondary right' %> + <%= link_to t("account.show.verify_my_account"), new_residence_path, class: 'button radius small secondary right' %> <% end %> diff --git a/app/views/mailer/email_verification.html.erb b/app/views/mailer/email_verification.html.erb index ce5e1a783..a57a5b0dc 100644 --- a/app/views/mailer/email_verification.html.erb +++ b/app/views/mailer/email_verification.html.erb @@ -1 +1,15 @@ -

<%= link_to "Confirma tu email", email_url(email_verification_token: @token) %>

+ + +

+ <%= t("mailers.email_verification.title") %> +

+ +

+ <%= t("mailers.email_verification.instructions_html", + verification_link: link_to( + t('mailers.email_verification.click_here_to_verify'), + email_url(email_verification_token: @token))) %> +

+ + + diff --git a/config/locales/en.yml b/config/locales/en.yml index 6af6fa5bf..afda0391b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -152,6 +152,7 @@ en: notifications: Notifications level_two_user: You are a level 2 user level_three_user: You are a level 3 user + verify_my_account: Verify my account simple_captcha: placeholder: "Enter the image value" label: "Enter the code in the box" diff --git a/config/locales/es.yml b/config/locales/es.yml index 2a0b5940e..5884f0cfc 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -152,6 +152,7 @@ es: notifications: Notificaciones level_two_user: Eres un usuario verificado de nivel 2 level_three_user: Eres un usuario verificado de nivel 3 + verify_my_account: Verificar mi cuenta simple_captcha: placeholder: "Introduce el texto de la imagen" label: "Introduce el texto en la caja" diff --git a/config/locales/mailers.en.yml b/config/locales/mailers.en.yml index d0550aca9..4e3eeeab3 100644 --- a/config/locales/mailers.en.yml +++ b/config/locales/mailers.en.yml @@ -3,8 +3,13 @@ en: comment: hi: Hello title: New comment on your debate - new_comment_by_html: "There'is a new comment by on" + new_comment_by_html: "There is a new comment by %{commenter} on" reply: hi: Hello title: New reply on your comment new_reply_by_html: "There'is a new reply by %{commenter} to your comment on" + email_verification: + title: Please verify yourself + instructions_html: "We need to verify you using this email, which we got from the Census. %{verification_link}" + click_here_to_verify: "Please click here to verify yourself" + diff --git a/config/locales/mailers.es.yml b/config/locales/mailers.es.yml index 8efa1dc22..a6491f032 100644 --- a/config/locales/mailers.es.yml +++ b/config/locales/mailers.es.yml @@ -8,3 +8,7 @@ es: hi: Hola title: Nueva respuesta a tu comentario new_reply_by_html: "Hay una nueva respuesta de %{commenter} a tu comentario en" + email_verification: + title: Por favor verifícate + instructions_html: "Vamos a proceder a verificar tu cuenta en la aplicación de participación ciudadana utilizando esta cuenta de correo que sacamos del padrón. %{verification_link}." + click_here_to_verify: "Por favor pulsa este enlace para verificarte"