Translating a huge amount of untranslated strings
This commit is contained in:
parent
0bef839261
commit
bba3aaa684
12 changed files with 70 additions and 64 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
= album.error_messages
|
= album.error_messages
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
Album name
|
= t('.album_name')
|
||||||
= album.text_field :name
|
= album.text_field :name
|
||||||
|
|
||||||
- for photo in @album.photos
|
- for photo in @album.photos
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
.submit_block
|
.submit_block
|
||||||
= link_to t('.cancel'), root_path
|
= link_to t('.cancel'), root_path
|
||||||
or
|
or
|
||||||
= album.submit
|
= album.submit t('.update_album')
|
||||||
|
|
||||||
.button.delete
|
.button.delete
|
||||||
= link_to t('.delete_album'), @album, :confirm => t('.are_you_sure'), :method => :delete
|
= link_to t('.delete_album'), @album, :confirm => t('.are_you_sure'), :method => :delete
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
= form_for Aspect.new do |aspect|
|
= form_for Aspect.new do |aspect|
|
||||||
= aspect.error_messages
|
= aspect.error_messages
|
||||||
%p
|
%p
|
||||||
= aspect.label :name
|
= aspect.label :name , t('.name')
|
||||||
= aspect.text_field :name
|
= aspect.text_field :name
|
||||||
= aspect.submit t('.create'), :class => 'button'
|
= aspect.submit t('.create'), :class => 'button'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,23 @@
|
||||||
.span-10.append-1.last
|
.span-10.append-1.last
|
||||||
.floating
|
.floating
|
||||||
%h3 Login
|
%h3
|
||||||
|
= t('.login')
|
||||||
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
||||||
#user
|
#user
|
||||||
%p.username
|
%p.username
|
||||||
= f.label :username
|
= f.label :username , t('.username')
|
||||||
= f.text_field :username
|
= f.text_field :username
|
||||||
%p.user_network
|
%p.user_network
|
||||||
="@#{APP_CONFIG[:terse_pod_url]}"
|
="@#{APP_CONFIG[:terse_pod_url]}"
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :password
|
= f.label :password , t('.password')
|
||||||
= f.password_field :password
|
= f.password_field :password
|
||||||
/%p
|
/%p
|
||||||
/- if devise_mapping.rememberable?
|
/- if devise_mapping.rememberable?
|
||||||
/ = f.check_box :remember_me
|
/ = f.check_box :remember_me
|
||||||
/ = f.label :remember_me
|
/ = f.label :remember_me , t('.remember_me')
|
||||||
= f.submit "Sign in"
|
= f.submit t('.sign_in')
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= render :partial => "devise/shared/links"
|
= render :partial => "devise/shared/links"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
- if controller_name != 'sessions'
|
- if controller_name != 'sessions'
|
||||||
= link_to "Sign in", new_session_path(resource_name)
|
= link_to t('.sign_in'), new_session_path(resource_name)
|
||||||
%br/
|
%br/
|
||||||
- if devise_mapping.registerable? && controller_name != 'registrations'
|
- 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/
|
%br/
|
||||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
- 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/
|
%br/
|
||||||
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
||||||
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
||||||
|
|
|
||||||
|
|
@ -51,15 +51,15 @@
|
||||||
- if current_user
|
- if current_user
|
||||||
#global_search
|
#global_search
|
||||||
= form_tag(people_path, :method => 'get') do
|
= 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
|
%ul#user_menu
|
||||||
.avatar
|
.avatar
|
||||||
= owner_image_tag
|
= owner_image_tag
|
||||||
= link_to current_user.real_name, '#'
|
= link_to current_user.real_name, '#'
|
||||||
%li= link_to "view profile", current_user.person
|
%li= link_to t('.view_profile'), current_user.person
|
||||||
%li= link_to "edit profile", edit_person_path(current_user.person)
|
%li= link_to t('.edit_profile'), edit_person_path(current_user.person)
|
||||||
%li= link_to "account settings", edit_user_path(current_user)
|
%li= link_to t('.account_settings'), edit_user_path(current_user)
|
||||||
%li= link_to t('.logout.'), destroy_user_session_path
|
%li= link_to t('.logout.'), destroy_user_session_path
|
||||||
|
|
||||||
= render "shared/aspect_nav"
|
= render "shared/aspect_nav"
|
||||||
|
|
|
||||||
|
|
@ -5,16 +5,16 @@
|
||||||
|
|
||||||
#section_header
|
#section_header
|
||||||
%h2
|
%h2
|
||||||
Settings
|
= t('.settings')
|
||||||
%ul#settings_nav
|
%ul#settings_nav
|
||||||
%li=link_to 'Profile', edit_person_path(current_user.person)
|
%li=link_to t('.profile'), edit_person_path(current_user.person)
|
||||||
%li=link_to 'Account', edit_user_path(current_user)
|
%li=link_to t('.account'), edit_user_path(current_user)
|
||||||
%li=link_to 'Services', services_path
|
%li=link_to t('.services'), services_path
|
||||||
|
|
||||||
.span-19.prepend-5.last
|
.span-19.prepend-5.last
|
||||||
= form_for @person, :html => { :multipart => true } do |person|
|
= form_for @person, :html => { :multipart => true } do |person|
|
||||||
%h3
|
%h3
|
||||||
Your Profile
|
= t('.your_profile')
|
||||||
.description
|
.description
|
||||||
This info will be available to whomever you connect with on Diaspora.
|
This info will be available to whomever you connect with on Diaspora.
|
||||||
|
|
||||||
|
|
@ -22,26 +22,26 @@
|
||||||
|
|
||||||
= person.fields_for :profile do |profile|
|
= person.fields_for :profile do |profile|
|
||||||
%h4
|
%h4
|
||||||
Your name
|
= t('.your_name')
|
||||||
= profile.text_field :first_name, :value => @profile.first_name, :placeholder => "First name"
|
= profile.text_field :first_name, :value => @profile.first_name, :placeholder => t('.first_name')
|
||||||
= profile.text_field :last_name, :value => @profile.last_name, :placeholder => "Last name"
|
= profile.text_field :last_name, :value => @profile.last_name, :placeholder => t('.last_name')
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
Your gender
|
= t('.your_gender')
|
||||||
%br
|
%br
|
||||||
= select_tag 'person[profile][gender]', options_for_select(["","Female","Male"], @person.profile.gender)
|
= select_tag 'person[profile][gender]', options_for_select(["","Female","Male"], @person.profile.gender)
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
Your birthday
|
= t('.your_birthday')
|
||||||
%br
|
%br
|
||||||
= select_date @person.profile.birthday, :order => [:month, :day, :year], :start_year => 1930, :end_year => 2000
|
= select_date @person.profile.birthday, :order => [:month, :day, :year], :start_year => 1930, :end_year => 2000
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
Your bio
|
= t('.your_bio')
|
||||||
= profile.text_area :bio, :value => @profile.bio, :rows => 5, :placeholder => "Fill me out"
|
= profile.text_area :bio, :value => @profile.bio, :rows => 5, :placeholder => t('.fill_me_out')
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
Your photo
|
= t('.your_photo')
|
||||||
= render 'people/profile_photo_upload', :form => profile
|
= render 'people/profile_photo_upload', :form => profile
|
||||||
|
|
||||||
.submit_block
|
.submit_block
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
%br/
|
%br/
|
||||||
= f.password_field :current_password
|
= f.password_field :current_password
|
||||||
%p
|
%p
|
||||||
= f.submit "Update"
|
= f.submit t('.update')
|
||||||
%h3 Cancel my account
|
%h3 t('.cancel_my_account')
|
||||||
%p
|
%p
|
||||||
Unhappy? #{link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete}.
|
Unhappy? #{link_to t('.cancel_my_account'), registration_path(resource_name), :confirm => t('.are_you_sure'), :method => :delete}.
|
||||||
= link_to "Back", :back
|
= link_to t('.back'), :back
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
.span-12.prepend-6.last
|
.span-12.prepend-6.last
|
||||||
.floating
|
.floating
|
||||||
%h3
|
%h3
|
||||||
Sign up for Diaspora
|
= t('.sign_up_for_diaspora')
|
||||||
= image_tag "http://needcoffee.cachefly.net/needcoffee/uploads/2009/02/predator-arnold-schwarzenegger.jpg"
|
= 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|
|
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
|
||||||
%p
|
%p
|
||||||
= f.label :username
|
= f.label :username , t('.username')
|
||||||
= f.text_field :username
|
= f.text_field :username
|
||||||
%p
|
%p
|
||||||
= f.label :email
|
= f.label :email , t('.email')
|
||||||
= f.text_field :email
|
= f.text_field :email
|
||||||
%p
|
%p
|
||||||
= f.label :password
|
= f.label :password , t('.password')
|
||||||
= f.password_field :password
|
= f.password_field :password
|
||||||
%p
|
%p
|
||||||
= f.label :password_confirmation
|
= f.label :password_confirmation , t('.password_confirmation')
|
||||||
= f.password_field :password_confirmation
|
= f.password_field :password_confirmation
|
||||||
|
|
||||||
= f.submit t('.sign_up')
|
= f.submit t('.sign_up')
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
.floating
|
.floating
|
||||||
%h3
|
%h3
|
||||||
Upload an existing Diaspora account
|
= t('.upload_existing_account')
|
||||||
|
|
||||||
= form_tag '/users/import', :multipart => true do
|
= form_tag '/users/import', :multipart => true do
|
||||||
|
|
||||||
|
|
@ -38,5 +38,5 @@
|
||||||
|
|
||||||
%label Select File
|
%label Select File
|
||||||
= file_field 'upload', 'file'
|
= file_field 'upload', 'file'
|
||||||
= submit_tag "Upload"
|
= submit_tag t('.upload')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
%i= t '.your_diaspora_username_is', :diaspora_handle => current_user.diaspora_handle
|
%i= t '.your_diaspora_username_is', :diaspora_handle => current_user.diaspora_handle
|
||||||
|
|
||||||
%p
|
%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.text_field :destination_url
|
||||||
= fr_request.hidden_field :aspect_id, :value => aspect.id
|
= fr_request.hidden_field :aspect_id, :value => aspect.id
|
||||||
|
|
||||||
|
|
@ -27,5 +27,5 @@
|
||||||
- if defined?(manage)
|
- if defined?(manage)
|
||||||
= hidden_field_tag :manage, true
|
= hidden_field_tag :manage, true
|
||||||
|
|
||||||
= fr_request.submit
|
= fr_request.submit t('.create_request')
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,15 @@
|
||||||
|
|
||||||
#section_header
|
#section_header
|
||||||
%h2
|
%h2
|
||||||
Settings
|
= t('.settings')
|
||||||
%ul#settings_nav
|
%ul#settings_nav
|
||||||
%li=link_to 'Profile', edit_person_path(current_user.person)
|
%li=link_to t('.profile'), edit_person_path(current_user.person)
|
||||||
%li=link_to 'Account', edit_user_path(current_user)
|
%li=link_to t('.account'), edit_user_path(current_user)
|
||||||
%li=link_to 'Services', services_path
|
%li=link_to t('.services'), services_path
|
||||||
|
|
||||||
.span-19.prepend-5.last
|
.span-19.prepend-5.last
|
||||||
%h2
|
%h2
|
||||||
Services
|
= t('.services')
|
||||||
|
|
||||||
%ul
|
%ul
|
||||||
- for service in @services
|
- for service in @services
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@
|
||||||
- for aspect in current_user.aspects_with_post( post.id )
|
- for aspect in current_user.aspects_with_post( post.id )
|
||||||
%li= link_to aspect.name, aspect
|
%li= link_to aspect.name, aspect
|
||||||
|
|
||||||
= link_to "view profile", person_path(person)
|
= link_to t('.view_profile'), person_path(person)
|
||||||
|
|
|
||||||
|
|
@ -14,48 +14,52 @@
|
||||||
|
|
||||||
#section_header
|
#section_header
|
||||||
%h2
|
%h2
|
||||||
Settings
|
= t('.settings')
|
||||||
%ul#settings_nav
|
%ul#settings_nav
|
||||||
%li=link_to 'Profile', edit_person_path(current_user.person)
|
%li=link_to t('.profile'), edit_person_path(current_user.person)
|
||||||
%li=link_to 'Account', edit_user_path(current_user)
|
%li=link_to t('.account'), edit_user_path(current_user)
|
||||||
%li=link_to 'Services', services_path
|
%li=link_to t('.services'), services_path
|
||||||
|
|
||||||
.span-19.prepend-5.last
|
.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
|
%br
|
||||||
%br
|
%br
|
||||||
|
|
||||||
%h3 Change Password
|
%h3
|
||||||
|
= t('.change_password')
|
||||||
= form_for @user do |f|
|
= form_for @user do |f|
|
||||||
= f.error_messages
|
= f.error_messages
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :password, "New Password"
|
= f.label :password, t('.new_password')
|
||||||
= f.password_field :password
|
= f.password_field :password
|
||||||
%p
|
%p
|
||||||
= f.label :password_confirmation
|
= f.label :password_confirmation, t('.password_confirmation')
|
||||||
= f.password_field :password_confirmation
|
= f.password_field :password_confirmation
|
||||||
|
|
||||||
.submit_block
|
.submit_block
|
||||||
= link_to "Cancel", edit_user_path(current_user)
|
= link_to t('.cancel'), edit_user_path(current_user)
|
||||||
or
|
or
|
||||||
= f.submit 'Change password'
|
= f.submit t('.change_password')
|
||||||
|
|
||||||
%h3 Change language
|
%h3
|
||||||
|
= t('.change_language')
|
||||||
= form_for @user do |f|
|
= form_for @user do |f|
|
||||||
= f.error_messages
|
= f.error_messages
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.select :language, available_language_options
|
= f.select :language, available_language_options
|
||||||
= f.submit 'Change language'
|
= f.submit t('.change_language')
|
||||||
|
|
||||||
%br
|
%br
|
||||||
|
|
||||||
%h3 Export Data
|
%h3
|
||||||
|
= t('.export_data')
|
||||||
= link_to "download my xml", users_export_path, :class => "button"
|
= link_to "download my xml", users_export_path, :class => "button"
|
||||||
= link_to "download my photos", users_export_photos_path, :class => "button"
|
= link_to "download my photos", users_export_photos_path, :class => "button"
|
||||||
|
|
||||||
|
|
@ -63,7 +67,8 @@
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
|
|
||||||
%h3 Close Account
|
%h3
|
||||||
= link_to "Close Account", current_user,
|
= t('.close_account')
|
||||||
:confirm => "Are you sure?", :method => :delete,
|
= link_to t('.close_account'), current_user,
|
||||||
|
:confirm => t('.are_you_sure'), :method => :delete,
|
||||||
:class => "button"
|
:class => "button"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue