From: Jozef Zigmund <[email protected]>
---
src/app/views/users/_form.haml | 12 ++++++------
src/app/views/users/new.haml | 4 ++--
src/config/locales/en.yml | 9 +++++++++
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/app/views/users/_form.haml b/src/app/views/users/_form.haml
index 8311c16..0f93ec4 100644
--- a/src/app/views/users/_form.haml
+++ b/src/app/views/users/_form.haml
@@ -1,18 +1,18 @@
%fieldset
- = form.label :login, "Choose a username:"
+ = form.label :login, t(:choose_name)
= form.text_field :login
%fieldset
- = form.label :password, form.object.new_record? ? "Choose a password:" :
"Change password:"
+ = form.label :password, form.object.new_record? ? t(:choose_password) :
t(:change_password)
= form.password_field :password
%fieldset
- = form.label :password_confirmation, "Confirm password:"
+ = form.label :password_confirmation, t(:confirm_password)
= form.password_field :password_confirmation
%fieldset
- = form.label :first_name
+ = form.label :first_name, t(:first_name)
= form.text_field :first_name
%fieldset
- = form.label :last_name
+ = form.label :last_name, t(:last_name)
= form.text_field :last_name
%fieldset
- = form.label :email
+ = form.label :email, t(:email)
= form.text_field :email
diff --git a/src/app/views/users/new.haml b/src/app/views/users/new.haml
index 4d7319d..b6ed86b 100644
--- a/src/app/views/users/new.haml
+++ b/src/app/views/users/new.haml
@@ -4,5 +4,5 @@
- form_for @user, :url => account_path do |f|
= f.error_messages
= render :partial => "form", :object => f
- = f.submit "Create Account", :class => "submit dialogbutton"
- = link_to "Cancel", root_path, :class => 'actionlink button dialogbutton'
+ = f.submit t(:create_account), :class => "submit dialogbutton"
+ = link_to t(:cancel), :class => 'actionlink button dialogbutton'
diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml
index c24b01a..b77df0a 100644
--- a/src/config/locales/en.yml
+++ b/src/config/locales/en.yml
@@ -44,6 +44,15 @@ en:
save: Save
remove: Remove
reset: Reset
+ create_account: Create Account
+ cancel: Cancel
+ choose_name: Choose a username
+ choose_password: Choose a password
+ change_password: Change password
+ confirm_password: Confirm password
+ first_name: First name
+ last_name: Last name
+ email: E-mail
settings:
index:
general_settings: General Settings
--
1.7.2.3
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel