replaces hard-coded strings by i18n calls

This commit is contained in:
kikito
2015-08-28 13:42:22 +02:00
parent 3720551e78
commit 538501d1b1
6 changed files with 28 additions and 3 deletions

View File

@@ -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 %>
</span>

View File

@@ -1 +1,15 @@
<p><%= link_to "Confirma tu email", email_url(email_verification_token: @token) %></p>
<td style="padding-bottom: 20px; padding-left: 10px;">
<h1 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;">
<%= t("mailers.email_verification.title") %>
</h1>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t("mailers.email_verification.instructions_html",
verification_link: link_to(
t('mailers.email_verification.click_here_to_verify'),
email_url(email_verification_token: @token))) %>
</p>
</td>

View File

@@ -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"

View File

@@ -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"

View File

@@ -3,8 +3,13 @@ en:
comment:
hi: Hello
title: New comment on your debate
new_comment_by_html: "There'is a new comment by <b<%{commenter}</b> on"
new_comment_by_html: "There is a new comment by <b>%{commenter}</b> on"
reply:
hi: Hello
title: New reply on your comment
new_reply_by_html: "There'is a new reply by <b>%{commenter}</b> 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"

View File

@@ -8,3 +8,7 @@ es:
hi: Hola
title: Nueva respuesta a tu comentario
new_reply_by_html: "Hay una nueva respuesta de <b>%{commenter}</b> 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"