diff --git a/app/views/albums/edit.html.haml b/app/views/albums/edit.html.haml index e979b1a77ad812ca1986cc199f71444ae4e35a11..ccc5854fde0756e3eb7e1c183e12da336f40002f 100644 --- a/app/views/albums/edit.html.haml +++ b/app/views/albums/edit.html.haml @@ -9,7 +9,7 @@ = album.error_messages %h4 - Album name + = t('.album_name') = album.text_field :name - for photo in @album.photos @@ -18,7 +18,7 @@ .submit_block = link_to t('.cancel'), root_path or - = album.submit + = album.submit t('.update_album') .button.delete = link_to t('.delete_album'), @album, :confirm => t('.are_you_sure'), :method => :delete diff --git a/app/views/aspects/_new_aspect.haml b/app/views/aspects/_new_aspect.haml index a3dec9d3185909533ee9161624a41c206e2882f6..a7aff0474db61977791879ffe50d5ec478958105 100644 --- a/app/views/aspects/_new_aspect.haml +++ b/app/views/aspects/_new_aspect.haml @@ -9,7 +9,7 @@ = form_for Aspect.new do |aspect| = aspect.error_messages %p - = aspect.label :name + = aspect.label :name , t('.name') = aspect.text_field :name = aspect.submit t('.create'), :class => 'button' diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 852a8afd5e08dbcb2b816f4bdac6624f658fc68a..15c29ec4f6a67bccd3da9604eadb06bae897cac6 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -1,22 +1,23 @@ .span-10.append-1.last .floating - %h3 Login + %h3 + = t('.login') = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| #user %p.username - = f.label :username + = f.label :username , t('.username') = f.text_field :username %p.user_network ="@#{APP_CONFIG[:terse_pod_url]}" %p - = f.label :password + = f.label :password , t('.password') = f.password_field :password /%p /- if devise_mapping.rememberable? / = f.check_box :remember_me - / = f.label :remember_me - = f.submit "Sign in" + / = f.label :remember_me , t('.remember_me') + = f.submit t('.sign_in') %p = render :partial => "devise/shared/links" diff --git a/app/views/devise/shared/_links.haml b/app/views/devise/shared/_links.haml index a7547353fad0cc97660a9f5f8b2180efd1ec386b..fa0aea8cad430297038650d07fa83ac525ccb3a0 100644 --- a/app/views/devise/shared/_links.haml +++ b/app/views/devise/shared/_links.haml @@ -1,11 +1,11 @@ - if controller_name != 'sessions' - = link_to "Sign in", new_session_path(resource_name) + = link_to t('.sign_in'), new_session_path(resource_name) %br/ - if devise_mapping.registerable? && controller_name != 'registrations' - = link_to "Sign up", new_registration_path(resource_name) + = link_to t('.sign_up'), new_registration_path(resource_name) %br/ - if devise_mapping.recoverable? && controller_name != 'passwords' - = link_to "Forgot your password?", new_password_path(resource_name) + = link_to t('.forgot_your_password'), new_password_path(resource_name) %br/ - if devise_mapping.confirmable? && controller_name != 'confirmations' = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index c7deeda8ec50a1873e3d6be8769bc982f8baba41..c8c0448cc413d319c2bb52061efb693f88792fa3 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -51,15 +51,15 @@ - if current_user #global_search = form_tag(people_path, :method => 'get') do - = text_field_tag 'q', nil, :placeholder => "Search", :type => 'search', :results => 5 + = text_field_tag 'q', nil, :placeholder => t('.search'), :type => 'search', :results => 5 %ul#user_menu .avatar = owner_image_tag = link_to current_user.real_name, '#' - %li= link_to "view profile", current_user.person - %li= link_to "edit profile", edit_person_path(current_user.person) - %li= link_to "account settings", edit_user_path(current_user) + %li= link_to t('.view_profile'), current_user.person + %li= link_to t('.edit_profile'), edit_person_path(current_user.person) + %li= link_to t('.account_settings'), edit_user_path(current_user) %li= link_to t('.logout.'), destroy_user_session_path = render "shared/aspect_nav" diff --git a/app/views/people/edit.html.haml b/app/views/people/edit.html.haml index 19d1bafb7dc703115c1a4d9ba201674f0d0f8f2d..f9aaab68c7882d8bb6321f568f6749d66002c5bc 100644 --- a/app/views/people/edit.html.haml +++ b/app/views/people/edit.html.haml @@ -5,16 +5,16 @@ #section_header %h2 - Settings + = t('.settings') %ul#settings_nav - %li=link_to 'Profile', edit_person_path(current_user.person) - %li=link_to 'Account', edit_user_path(current_user) - %li=link_to 'Services', services_path + %li=link_to t('.profile'), edit_person_path(current_user.person) + %li=link_to t('.account'), edit_user_path(current_user) + %li=link_to t('.services'), services_path .span-19.prepend-5.last = form_for @person, :html => { :multipart => true } do |person| %h3 - Your Profile + = t('.your_profile') .description This info will be available to whomever you connect with on Diaspora. @@ -22,26 +22,26 @@ = person.fields_for :profile do |profile| %h4 - Your name - = profile.text_field :first_name, :value => @profile.first_name, :placeholder => "First name" - = profile.text_field :last_name, :value => @profile.last_name, :placeholder => "Last name" + = t('.your_name') + = profile.text_field :first_name, :value => @profile.first_name, :placeholder => t('.first_name') + = profile.text_field :last_name, :value => @profile.last_name, :placeholder => t('.last_name') %h4 - Your gender + = t('.your_gender') %br = select_tag 'person[profile][gender]', options_for_select(["","Female","Male"], @person.profile.gender) %h4 - Your birthday + = t('.your_birthday') %br = select_date @person.profile.birthday, :order => [:month, :day, :year], :start_year => 1930, :end_year => 2000 %h4 - Your bio - = profile.text_area :bio, :value => @profile.bio, :rows => 5, :placeholder => "Fill me out" + = t('.your_bio') + = profile.text_area :bio, :value => @profile.bio, :rows => 5, :placeholder => t('.fill_me_out') %h4 - Your photo + = t('.your_photo') = render 'people/profile_photo_upload', :form => profile .submit_block diff --git a/app/views/registrations/edit.html.haml b/app/views/registrations/edit.html.haml index dfbe2a35ae03561ce9c4dae58f77739cb77eaece..5da9503794e542e969b0b8d997cd5a2b13325be7 100644 --- a/app/views/registrations/edit.html.haml +++ b/app/views/registrations/edit.html.haml @@ -21,8 +21,8 @@ %br/ = f.password_field :current_password %p - = f.submit "Update" -%h3 Cancel my account + = f.submit t('.update') +%h3 t('.cancel_my_account') %p - Unhappy? #{link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete}. -= link_to "Back", :back + Unhappy? #{link_to t('.cancel_my_account'), registration_path(resource_name), :confirm => t('.are_you_sure'), :method => :delete}. += link_to t('.back'), :back diff --git a/app/views/registrations/new.html.haml b/app/views/registrations/new.html.haml index ea0be2b75e3aaca2e198ab78fb7856ea1460ce45..8dae3824a57747a4a69cc4911e8d5529e5499e7b 100644 --- a/app/views/registrations/new.html.haml +++ b/app/views/registrations/new.html.haml @@ -1,20 +1,20 @@ .span-12.prepend-6.last .floating %h3 - Sign up for Diaspora + = t('.sign_up_for_diaspora') = image_tag "http://needcoffee.cachefly.net/needcoffee/uploads/2009/02/predator-arnold-schwarzenegger.jpg" = form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %p - = f.label :username + = f.label :username , t('.username') = f.text_field :username %p - = f.label :email + = f.label :email , t('.email') = f.text_field :email %p - = f.label :password + = f.label :password , t('.password') = f.password_field :password %p - = f.label :password_confirmation + = f.label :password_confirmation , t('.password_confirmation') = f.password_field :password_confirmation = f.submit t('.sign_up') @@ -22,7 +22,7 @@ .floating %h3 - Upload an existing Diaspora account + = t('.upload_existing_account') = form_tag '/users/import', :multipart => true do @@ -38,5 +38,5 @@ %label Select File = file_field 'upload', 'file' - = submit_tag "Upload" + = submit_tag t('.upload') diff --git a/app/views/requests/_new_request.haml b/app/views/requests/_new_request.haml index 0ec66d16358c315d8b91c06dac62bda6e3722391..05ce611882197b882c25a67adfc49c19c733e421 100644 --- a/app/views/requests/_new_request.haml +++ b/app/views/requests/_new_request.haml @@ -18,7 +18,7 @@ %i= t '.your_diaspora_username_is', :diaspora_handle => current_user.diaspora_handle %p - = fr_request.label :destination_url, t(".friends_username") + = fr_request.label :destination_url, t('.friends_username') = fr_request.text_field :destination_url = fr_request.hidden_field :aspect_id, :value => aspect.id @@ -27,5 +27,5 @@ - if defined?(manage) = hidden_field_tag :manage, true - = fr_request.submit + = fr_request.submit t('.create_request') diff --git a/app/views/services/index.html.haml b/app/views/services/index.html.haml index ee298eb34f6eebf30d09c8d0d857ca1bcda39eed..bf15461726ec7021572a7900bfac66f22dea7b2c 100644 --- a/app/views/services/index.html.haml +++ b/app/views/services/index.html.haml @@ -4,15 +4,15 @@ #section_header %h2 - Settings + = t('.settings') %ul#settings_nav - %li=link_to 'Profile', edit_person_path(current_user.person) - %li=link_to 'Account', edit_user_path(current_user) - %li=link_to 'Services', services_path + %li=link_to t('.profile'), edit_person_path(current_user.person) + %li=link_to t('.account'), edit_user_path(current_user) + %li=link_to t('.services'), services_path .span-19.prepend-5.last %h2 - Services + = t('.services') %ul - for service in @services diff --git a/app/views/shared/_author_info.html.haml b/app/views/shared/_author_info.html.haml index 14f4a14570818804727e8360ef58ba6ae57e8311..952af561fc0d120879ac84c1691b308c462ae58e 100644 --- a/app/views/shared/_author_info.html.haml +++ b/app/views/shared/_author_info.html.haml @@ -13,4 +13,4 @@ - for aspect in current_user.aspects_with_post( post.id ) %li= link_to aspect.name, aspect - = link_to "view profile", person_path(person) + = link_to t('.view_profile'), person_path(person) diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index 2f0c899d464e7927143ca31c140c83677dbaffc6..23fae07426caacede2b10552deacac1b34462fab 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -14,48 +14,52 @@ #section_header %h2 - Settings + = t('.settings') %ul#settings_nav - %li=link_to 'Profile', edit_person_path(current_user.person) - %li=link_to 'Account', edit_user_path(current_user) - %li=link_to 'Services', services_path + %li=link_to t('.profile'), edit_person_path(current_user.person) + %li=link_to t('.account'), edit_user_path(current_user) + %li=link_to t('.services'), services_path .span-19.prepend-5.last - %h2 Account + %h2 + = t('.account') - = link_to "invite friends", new_user_invitation_path(current_user) + = link_to t('.invite_friends'), new_user_invitation_path(current_user) %br %br %br - %h3 Change Password + %h3 + = t('.change_password') = form_for @user do |f| = f.error_messages %p - = f.label :password, "New Password" + = f.label :password, t('.new_password') = f.password_field :password %p - = f.label :password_confirmation + = f.label :password_confirmation, t('.password_confirmation') = f.password_field :password_confirmation .submit_block - = link_to "Cancel", edit_user_path(current_user) + = link_to t('.cancel'), edit_user_path(current_user) or - = f.submit 'Change password' + = f.submit t('.change_password') - %h3 Change language + %h3 + = t('.change_language') = form_for @user do |f| = f.error_messages %p = f.select :language, available_language_options - = f.submit 'Change language' + = f.submit t('.change_language') %br - %h3 Export Data + %h3 + = t('.export_data') = link_to "download my xml", users_export_path, :class => "button" = link_to "download my photos", users_export_photos_path, :class => "button" @@ -63,7 +67,8 @@ %br %br - %h3 Close Account - = link_to "Close Account", current_user, - :confirm => "Are you sure?", :method => :delete, + %h3 + = t('.close_account') + = link_to t('.close_account'), current_user, + :confirm => t('.are_you_sure'), :method => :delete, :class => "button"