translate strings on signup requested by email

This commit is contained in:
Carl Chenet 2018-10-17 19:42:12 +02:00
parent 0c17dbd4de
commit 3d0f0db7f2
3 changed files with 22 additions and 9 deletions

View File

@ -13,7 +13,7 @@
<%= error_messages_for(@new_user) %>
<p>
<%= f.label :invitation, "Invited By:", :class => "required" %>
<%= f.label :invitation, t('.invitedby'), :class => "required" %>
<span class="d">
<a href="/u/<%= @invitation.user.username %>" target="_blank"><%=
@invitation.user.username %></a>
@ -21,25 +21,25 @@
</p>
<p>
<%= f.label :username, "Username:", :class => "required" %>
<%= f.label :username, t('.username'), :class => "required" %>
<%= f.text_field :username, :size => 30 %>
<span class="hint">
<tt><%= User.username_regex_s %></tt>
</span>
<br />
<%= f.label :email, "E-mail Address:", :class => "required" %>
<%= f.label :email, t('.email'), :class => "required" %>
<%= f.email_field :email, :size => 30 %>
<span class="hint">
<a href="http://www.gravatar.com/" target="_blank">Gravatar</a>'ized
<a href="http://www.gravatar.com/" target="_blank">Gravatar</a>
</span>
<br />
<%= f.label :password, "Password:", :class => "required" %>
<%= f.label :password, t('.password'), :class => "required" %>
<%= f.password_field :password, :size => 30, :autocomplete => "off" %>
<br />
<%= f.label :password_confirmation, "Password (again):",
<%= f.label :password_confirmation, t('.passwordagain'),
:class => "required" %>
<%= f.password_field :password_confirmation, :size => 30,
:autocomplete => "off" %>
@ -47,13 +47,12 @@
</p>
<p>
Want to tell us about yourself? It's optional, but it will be visible in
your public profile and can be changed at any time.
<%= t('.about') %>
</p>
<p>
<div class="boxline">
<%= f.label :about, "About:", :class => "required" %>
<%= f.label :about, t('.abouttitle'), :class => "required" %>
<%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
</div>

View File

@ -389,6 +389,13 @@ en:
index:
createaccounttitle: "Create an Account"
createaccountbody: "To create a new account, enter your e-mail address and a password. Your e-mail address will never be shown to users and will only be used if you need to reset your password, or to receive optional new-message alerts. Your username can be changed later."
invitedby: "Invited By:"
username: "Username:"
email: "Email address:"
password: "Password:"
passwordagain: "Password (again):"
about: "Want to tell us about yourself? It's optional, but it will be visible in your public profile and can be changed at any time."
abouttitle: "About:"
invited:
createaccounttitle: "Create an Account"
stories:

View File

@ -402,6 +402,13 @@ fr:
invited:
createaccounttitle: "Créer un compte"
createaccountbody: "Pour créer un nouveau compte, veuillez saisir votre e-mail et votre mot de passe. Votre e-mail ne sera jamais affiché aux autres utilisateurs et ne sera utilisé que si vous avez besoin de changer votre mot de passe ou de recevoir des notifications optionnelles de nouveaux messages. Votre nom d'utilisateur peut être changé ultérieurement."
invitedby: "Invité par :"
username: "Nom d'utilisateur :"
email: "Adresse e-mail :"
password: "Mot de passe :"
passwordagain: "Mot de passe (confirmation) :"
about: "Envie de parler de vous ? C'est optionnel, ce sera visible sur votre profil public et vous pourrez le changer comme bon vous semble."
abouttitle: "À propos :"
stories:
edit:
edit: "Éditer l'info"