diff --git a/app/views/aspects/_new_aspect.haml b/app/views/aspects/_new_aspect.haml
index a7aff0474..d211d9503 100644
--- a/app/views/aspects/_new_aspect.haml
+++ b/app/views/aspects/_new_aspect.haml
@@ -4,7 +4,7 @@
.span-12.last
.modal_title_bar
- %h4= t('.add_a_new_aspect')
+ %h4= t('aspects.manage.add_a_new_aspect')
= form_for Aspect.new do |aspect|
= aspect.error_messages
diff --git a/app/views/home/show.html.haml b/app/views/home/show.html.haml
index b3e78945c..5bf9790e9 100644
--- a/app/views/home/show.html.haml
+++ b/app/views/home/show.html.haml
@@ -8,14 +8,14 @@
#diaspora_description.section
%p
- Share what you want, with who you want.
+ = t('.share_what_you_want')
#signup_field.section
= render 'shared/mail_signup_form'
#login_field.section
- already have an account?
- = link_to "log in here", new_user_session_path
+ = t('.already_account')
+ = link_to t('.login_here'), new_user_session_path
.span-24.last{:style=>"text-align:center;"}
%ul#press_logos
diff --git a/app/views/invitations/_new.haml b/app/views/invitations/_new.haml
index b63184327..783fbb56a 100644
--- a/app/views/invitations/_new.haml
+++ b/app/views/invitations/_new.haml
@@ -14,7 +14,7 @@
= invite.select(:aspects, @aspects_dropdown_array)
- else
= invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id)
-
+ %br
= t('.message')
= invite.text_area :invite_messages, :value => ""
diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml
index 6696e331e..fd226d76a 100644
--- a/app/views/layouts/_header.html.haml
+++ b/app/views/layouts/_header.html.haml
@@ -11,9 +11,9 @@
- unless current_user
.right
%ul#landing_nav
- %li= link_to "blog", "http://blog.joindiaspora.com"
- %li= link_to "developers", "https://github.com/diaspora/diaspora"
- %li= link_to "login", new_user_session_path
+ %li= link_to t('.blog'), "http://blog.joindiaspora.com"
+ %li= link_to t('.developers'), "https://github.com/diaspora/diaspora"
+ %li= link_to t('.login'), new_user_session_path
- else
#global_search
= form_tag(people_path, :method => 'get') do
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index efa152a89..450465f0c 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -76,10 +76,10 @@
%footer
.container
- .brandon POWERED BY DIASPORA*
+ .brandon= t('.powered_by')
%ul#footer_nav
- %li= link_to "blog", "http://blog.joindiaspora.com"
- %li= link_to "developers", "https://github.com/diaspora/diaspora"
+ %li= link_to t('layouts.header.blog'), "http://blog.joindiaspora.com"
+ %li= link_to t('layouts.header.developers'), "https://github.com/diaspora/diaspora"
:javascript
var is_ssl = ("https:" == document.location.protocol);
diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml
index 178b22251..678fc2be8 100644
--- a/app/views/people/_profile_sidebar.html.haml
+++ b/app/views/people/_profile_sidebar.html.haml
@@ -16,7 +16,7 @@
- if is_contact
%li
%ul#aspects_for_person
- %b in aspects
+ %b= t('.in_aspects')
%br
- for aspect in @aspects_with_person
%li= link_to aspect.name, aspect
diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml
index 7a10a2530..71636bd1e 100644
--- a/app/views/photos/_new_photo.haml
+++ b/app/views/photos/_new_photo.haml
@@ -8,7 +8,24 @@
element: document.getElementById('file-upload'),
params: {'photo' : { 'to' : "#{aspect_id}"}, 'set_profile_image' : "#{set_profile_image if defined?(set_profile_image)}"},
allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'],
- action: "#{photos_path}"
+ action: "#{photos_path}",
+ template: '
' +
+ '
#{t('.drop')}
' +
+ '
#{t('.upload')}
' +
+ '
' +
+ '
',
+ fileTemplate: '' +
+ '' +
+ '' +
+ '' +
+ '#{t('cancel')}' +
+ '#{t('.failed')}' +
+ '',
+ messages: {
+ typeError: "#{t('.invalid_ext')}",
+ sizeError: "#{t('.size_error')}",
+ emptyError: "#{t('.empty')}"
+ }
});
}
window.onload = createUploader;
diff --git a/app/views/requests/_manage_aspect_contacts.haml b/app/views/requests/_manage_aspect_contacts.haml
index 824156922..c55f1fde1 100644
--- a/app/views/requests/_manage_aspect_contacts.haml
+++ b/app/views/requests/_manage_aspect_contacts.haml
@@ -5,14 +5,14 @@
.span-15.last
.modal_title_bar
%h4
- Manage contacts within
+ = t('.manage_within')
%i= aspect.name
.span-6.append-1.last
- %h3 Existing contacts
+ %h3= t('.existing')
= render 'shared/contact_list', :aspect => aspect, :contacts => @contacts, :manage => defined?(manage)
.span-7.last
- %h3 Add a new contact
+ %h3= t('aspects.manage.add_a_new_contact')
= form_tag(person_by_handle_path, :id => "new_request_to_#{aspect.id}", :class => "webfinger_form", :remote => true) do
=t('.enter_a_diaspora_username')
%br
@@ -34,7 +34,7 @@
%ul#request_result{:aspect_id => aspect.id}
%li.error.hidden
#message
- = link_to "Know their email address? You should invite them", "#invite_user_pane", :class => "invite_user_button"
+ = link_to t('.know_email'), "#invite_user_pane", :class => "invite_user_button"
%br
.yo{ :style => "display:none;"}
#invite_user_pane
diff --git a/app/views/shared/_aspect_contacts.haml b/app/views/shared/_aspect_contacts.haml
index 68658e487..eedabf538 100644
--- a/app/views/shared/_aspect_contacts.haml
+++ b/app/views/shared/_aspect_contacts.haml
@@ -13,7 +13,7 @@
= person_image_link(contact.person)
-unless (aspect == :all)
- = link_to (image_tag('add_contact_button.png', :title => "manage #{@aspect}")), "#manage_aspect_contacts_pane", :class => 'manage_aspect_contacts_button'
+ = link_to (image_tag('add_contact_button.png', :title => t('.manage', :aspect => @aspect))), "#manage_aspect_contacts_pane", :class => 'manage_aspect_contacts_button'
.fancybox_content
#manage_aspect_contacts_pane
diff --git a/app/views/shared/_author_info.html.haml b/app/views/shared/_author_info.html.haml
index cafd24a43..ff41039d0 100644
--- a/app/views/shared/_author_info.html.haml
+++ b/app/views/shared/_author_info.html.haml
@@ -16,4 +16,11 @@
= link_to t('.view_profile'), person_path(person)
= link_to t('_photos'), person_photos_path(person)
= link_to t('.status_messages'), person_status_messages_path(person)
- = "#{t('.viewing')}: #{@post_type.to_s.titleize}" if defined?(@post_type)
+ - if defined?(@post_type)
+ - case @post_type
+ - when :all
+ = "#{t('.viewing')}: #{t('.all')}"
+ - when :photos
+ = "#{t('.viewing')}: #{t('_photos')}"
+ - when :status_messages
+ = "#{t('.viewing')}: #{t('.status_messages')}"
diff --git a/app/views/shared/_contact_list.html.haml b/app/views/shared/_contact_list.html.haml
index 600112938..c7fc065f0 100644
--- a/app/views/shared/_contact_list.html.haml
+++ b/app/views/shared/_contact_list.html.haml
@@ -23,7 +23,7 @@
.contact_list
- = search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => "Search contacts"
+ = search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('.search_contacts')
%ul
- for contact in contacts
@@ -38,7 +38,7 @@
= hidden_field_tag :person_id, contact.person.id
- if defined?(manage) && manage
= hidden_field_tag :manage, true
- = submit_tag '+', :class => 'add', :title => "Add #{contact.person.real_name} to #{aspect}"
+ = submit_tag '+', :class => 'add', :title => t('.add_to', :name => contact.person.real_name, :aspect => aspect)
- else
= form_tag '/aspects/remove_from_aspect' do
= person_image_tag contact.person
@@ -49,5 +49,5 @@
= hidden_field_tag :person_id, contact.person.id
- if defined?(manage) && manage
= hidden_field_tag :manage, true
- = submit_tag 'x', :class => 'remove', :title => "Remove #{contact.person.real_name} from #{aspect}"
+ = submit_tag 'x', :class => 'remove', :title => t('.remove_from', :name => contact.person.real_name, :aspect => aspect)
diff --git a/app/views/users/getting_started/_step_4.html.haml b/app/views/users/getting_started/_step_4.html.haml
index 493c0daca..e4d51b2e1 100644
--- a/app/views/users/getting_started/_step_4.html.haml
+++ b/app/views/users/getting_started/_step_4.html.haml
@@ -23,17 +23,17 @@
%p
= t('.change_profile')
- %b #{t('.edit_profile')}
+ %b #{t('layouts.header.edit_profile')}
= t('.user_menu')
%p
= t('.connect_disconnect')
- %b #{t('.edit_account')}
+ %b #{t('layouts.header.account_settings')}
= t('.user_menu')
%p
= t('.manage_aspects')
- %b #{t('.manage')}
+ %b #{t('shared.aspect_nav.manage')}
= t('.tab_also_added')
.submit_block
- = link_to "Finish →", root_url, :class => "button"
+ = link_to "#{t('.finish')} →", root_url, :class => "button"
diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml
index bc66fab5a..b72c7bd1a 100644
--- a/config/locales/diaspora/en.yml
+++ b/config/locales/diaspora/en.yml
@@ -57,6 +57,11 @@ en:
edit_profile: "edit profile"
account_settings: "account settings"
logout: "logout"
+ blog: "blog"
+ developers: "developers"
+ login: "login"
+ application:
+ powered_by: "POWERED BY DIASPORA*"
shared:
stream_element:
show_comments: "show comments"
@@ -77,6 +82,7 @@ en:
add_contacts: "add contacts"
everyone: "Everyone"
add_to: "add to %{aspect}"
+ manage: "manage %{aspect}"
invitations:
invites: "Invites"
invite_someone: "Invite someone"
@@ -87,6 +93,7 @@ en:
view_profile: "View profile"
status_messages: "status messages"
viewing: "viewing"
+ all: "all"
public_explain:
title: "You are about to post a public message!"
outside: "Public messages will be available for others outside of Diaspora to see."
@@ -94,6 +101,10 @@ en:
manage: "manage connected services"
notification:
new: "New %{type} from %{from}"
+ contact_list:
+ search_contacts: "Search contacts"
+ add_to: "Add %{name} to %{aspect}"
+ remove_from: "Remove %{name} from %{aspect}"
aspects:
no_contacts_message:
nobody: "We know you know people — bring them to Diaspora!"
@@ -111,7 +122,6 @@ en:
manage_aspects: "Manage aspects"
drag_to_add: "Drag to add people"
new_aspect:
- add_a_new_aspect: "Add a new aspect"
name: "Name"
create: "Create"
create:
@@ -169,13 +179,11 @@ en:
ready_to_share: "You're now ready to start sharing with "
continue: "Continue on to your everyone page, an overview of all of your aspects."
change_profile: "You can change your profile any time by clicking"
- edit_profile: "edit profile"
user_menu: "in your user menu (top right)."
connect_disconnect: "You can connect/disconnect your services any time by clicking"
- edit_account: "edit account"
manage_aspects: "You can manage your aspects any time by clicking the"
- manage: "manage"
tab_also_added: "tab. Your contacts can also be added while on a particular aspect page, as well."
+ finish: "Finish"
update:
password_changed: "Password Changed"
password_not_changed: "Password Change Failed"
@@ -214,6 +222,13 @@ en:
error: "Failed to edit photo."
destroy:
notice: "Photo deleted."
+ new_photo:
+ drop: "Drop photos here to upload"
+ upload: "Upload a photo"
+ failed: "Failed"
+ invalid_ext: "{file} has invalid extension. Only {extensions} are allowed."
+ size_error: "{file} is too large, maximum file size is {sizeLimit}."
+ empty: "{file} is empty, please select files again without it."
registrations:
new:
sign_up: "Sign up"
@@ -233,7 +248,7 @@ en:
sent: "Your invitation has been sent."
no_more: "You have no more invitations."
already_sent: "You already invited this person."
- already_friends: "You are already friends with this person"
+ already_contacts: "You are already connected with this person"
new:
invite_someone_to_join: "Invite someone to join Diaspora!"
if_they_accept_info: "if they accept, they will be added to the aspect you invited them"
@@ -261,7 +276,6 @@ en:
results_for: "search results for"
show:
no_posts: "no posts to display!"
- not_friends: "You're currently not friends with %{name}"
request_people: "If you'd like, you can request to place him/her in one of your aspects."
already_requested: "You have already sent a request to %{name}."
does_not_exist: "Person does not exist!"
@@ -290,16 +304,19 @@ en:
bio: "bio"
gender: "gender"
born: "born"
+ in_aspects: "in aspects"
helper:
results_for: " results for %{params}"
people_on_pod_are_aware_of: " people on pod are aware of"
requests:
manage_aspect_contacts:
- add_a_new_contact_to: "Add a new contact to"
enter_a_diaspora_username: "Enter a Diaspora username:"
your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}"
contact_username: "Contact's username"
create_request: "Create request"
+ manage_within: "Manage contacts within"
+ existing: "Existing contacts"
+ know_email: "Know their email address? You should invite them"
destroy:
success: "You are now friends."
error: "Please select an aspect!"
@@ -335,3 +352,8 @@ en:
subject: "%{name} has accepted your contact request on Diaspora*"
accepted: "has accepted your contact request. They are now in your"
aspect: "aspect."
+ home:
+ show:
+ share_what_you_want: "Share what you want, with who you want."
+ already_account: "already have an account?"
+ login_here: "log in here"