summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-28 17:43:34 +0200
committerankonym <ankonym@gmail.com>2015-09-28 17:43:34 +0200
commitd4f10a8d47572bcab4c44878b952146732d64d2e (patch)
tree87503679e976232c47f6740672507af3bd9c9657
parent9adbde13619de8b2c300056b062d12f0961cb710 (diff)
Add localization labels to signup form and user.en.yml
Added the necessary labels to allow the localization of the signup form and the labels to users.en.yml for localization
-rw-r--r--app/views/users/new.html.haml6
-rw-r--r--config/locales/en/users.en.yml2
2 files changed, 5 insertions, 3 deletions
diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml
index b44f77c..bc0b1af 100644
--- a/app/views/users/new.html.haml
+++ b/app/views/users/new.html.haml
@@ -15,11 +15,11 @@
= render :partial => 'warnings'
= simple_form_for(@user, form_options) do |f|
= f.input :login, :label => t(:username), :required => false, :input_html => { :id => :srp_username }
- = f.input :password, :required => false, :validate => true, :input_html => { :id => :srp_password }
- = f.input :password_confirmation, :required => false, :validate => true, :input_html => { :id => :srp_password_confirmation }
+ = f.input :password, :label => t(:password), :required => false, :validate => true, :input_html => { :id => :srp_password }
+ = f.input :password_confirmation, :label => t(:password_confirmation), :required => false, :validate => true, :input_html => { :id => :srp_password_confirmation }
- if APP_CONFIG[:invite_required]
- = f.input :invite_code, :input_html => { :id => :srp_invite_code }
+ = f.input :invite_code, :label => t(:invite_code), :input_html => { :id => :srp_invite_code }
- else
= f.input :invite_code, :as => "hidden", :input_html => { :value => " ", :id => :srp_invite_code }
diff --git a/config/locales/en/users.en.yml b/config/locales/en/users.en.yml
index 89307dd..4c6bbc0 100644
--- a/config/locales/en/users.en.yml
+++ b/config/locales/en/users.en.yml
@@ -8,6 +8,8 @@ en:
account_settings: "Account Settings"
username: "Username"
password: "Password"
+ password_confirmation: "Password confirmation"
+ invite_code: "Invite code"
change_password: "Change Password"
invalid_user_pass: "Not a valid username/password combination"
invalid_ephemeral: "Invalid random key used. This looked like an attempt to hack the site to us. If it wasn't please contact support so we can look into the issue."