Merge remote branch 'MrZYX/untranslated-strings'

Conflicts:
	app/views/aspects/manage.html.haml
	config/locales/diaspora/en.yml
This commit is contained in:
Raphael 2010-11-04 20:05:57 -07:00
commit 1bba4c60f7
24 changed files with 122 additions and 59 deletions

View file

@ -48,7 +48,7 @@ class InvitationsController < Devise::InvitationsController
def check_token
if User.find_by_invitation_token(params['invitation_token']).nil?
flash[:error] = "Invitation token not found"
flash[:error] = I18n.t 'invitations.check_token.not_found'
redirect_to root_url
end
end

View file

@ -32,7 +32,7 @@ class PeopleController < ApplicationController
@posts = current_user.visible_posts(:person_id => @person.id).paginate :page => params[:page], :order => 'created_at DESC'
respond_with @person
else
flash[:error] = "Person does not exist!"
flash[:error] = I18n.t 'people.show.does_not_exist'
redirect_to people_path
end
end
@ -66,9 +66,9 @@ class PeopleController < ApplicationController
end
if current_user.update_profile params[:person][:profile]
flash[:notice] = "Profile updated"
flash[:notice] = I18n.t 'people.update.updated'
else
flash[:error] = "Failed to update profile"
flash[:error] = I18n.t 'people.update.failed'
end
if params[:getting_started]

View file

@ -62,7 +62,7 @@ class RequestsController < ApplicationController
if params[:getting_started]
redirect_to getting_started_path(:step=>params[:getting_started])
else
flash[:notice] = "we tried our best to send a message to #{account}" unless flash[:error]
flash[:notice] = I18n.t('requests.create.tried', :account => account) unless flash[:error]
respond_with :location => aspects_manage_path
return
end

View file

@ -31,14 +31,14 @@ class ServicesController < ApplicationController
:uid => auth['uid'])
end
flash[:notice] = "Authentication successful."
flash[:notice] = I18n.t 'services.create.success'
redirect_to services_url
end
def destroy
@service = current_user.services.find(params[:id])
@service.destroy
flash[:notice] = "Successfully destroyed authentication."
flash[:notice] = I18n.t 'services.destroy.success'
redirect_to services_url
end
end

View file

@ -31,15 +31,15 @@ class UsersController < ApplicationController
if params[:user][:password] && params[:user][:password_confirmation]
if @user.update_attributes(:password => params[:user][:password], :password_confirmation => params[:user][:password_confirmation])
flash[:notice] = "Password Changed"
flash[:notice] = I18n.t 'users.update.password_changed'
else
flash[:error] = "Password Change Failed"
flash[:error] = I18n.t 'users.update.password_not_changed'
end
elsif params[:user][:language]
if @user.update_attributes(:language => params[:user][:language])
flash[:notice] = "Language Changed"
flash[:notice] = I18n.t 'users.update.language_changed'
else
flash[:error] = "Language Change Failed"
flash[:error] = I18n.t 'users.update.language_not_changed'
end
end
@ -50,7 +50,7 @@ class UsersController < ApplicationController
def destroy
current_user.destroy
sign_out current_user
flash[:notice] = t('user.destroy')
flash[:notice] = I18n.t 'users.destroy'
redirect_to root_path
end
@ -63,7 +63,7 @@ class UsersController < ApplicationController
render :xml => director.build(ostatus_builder), :content_type => 'application/atom+xml'
else
flash[:error] = "User #{params[:username]} does not exist!"
flash[:error] = I18n.t 'users.public.does_not_exists', :username => params[:username]
redirect_to root_url
end
end

View file

@ -7,8 +7,7 @@
= javascript_include_tag 'aspect-edit.js'
#section_header
%h2
Manage aspects
%h2=t('.manage_aspects')
.right
= link_to("+ #{t('.add_a_new_aspect')}", "#add_aspect_pane", :class => "new_aspect add_aspect_button button", :title => t('.add_a_new_aspect'))
@ -18,7 +17,7 @@
.requests
%ul.dropzone
- if @remote_requests.size < 1
%li No new requests
%li=t('.no_requests')
- else
- for request in @remote_requests
%li.person.request{:data=>{:guid=>request.id, :person_id=>request.person.id}}
@ -55,7 +54,7 @@
.circle
= person_image_tag(person)
.draggable_info
Drag to add people
=t('.drag_to_add')

View file

@ -1,12 +1,12 @@
.span-12.prepend-6.last
.floating
%h3
Forgot your password?
=t('.forgot_password')
= form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |f|
= devise_error_messages!
%p
= f.label :email
= f.text_field :email
%p
= f.submit "Send me reset password instructions"
= f.submit t('.send_password_instructions')
= render :partial => "devise/shared/links"

View file

@ -22,7 +22,7 @@
%p
= render :partial => "devise/shared/links"
%p
= link_to "Have a problem? Find an answer here", 'http://diaspora.shapado.com/'
= link_to t('.have_a_problem'), 'http://diaspora.shapado.com/'
.span-13.last
%h1

View file

@ -12,9 +12,9 @@
.right{:style=>"display:inline;"}
- if person.id == current_user.person.id
thats you!
= t('.thats_you')
- elsif current_user.friends.include?(person)
Already friends
= t('.already_friends')
- elsif current_user.pending_requests.find_by_person_id(person.id)
= link_to =t('.pending_request'), aspects_manage_path
- else

View file

@ -8,6 +8,6 @@
= form.file_field :image
%p
\...or select one from your already existing
= link_to 'photos', person_photos_path(@person)
\...#{t('.or_select_one')}
= link_to t('_photos'), person_photos_path(@person)
\.

View file

@ -9,7 +9,7 @@
%ul#settings_nav
%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
%li=link_to t('_services'), services_path
.span-19.prepend-5.last
= form_for @person, :html => { :multipart => true } do |person|
@ -45,9 +45,9 @@
= render 'people/profile_photo_upload', :form => profile
%h4
Search
= t('.search')
%p{:class=>"checkbox_select"}
= profile.label :searchable, "Allow for people to search for you"
= profile.label :searchable, t('.allow_search')
= profile.check_box :searchable, {:checked => @person.profile.searchable}, true, false
.submit_block

View file

@ -4,7 +4,7 @@
.span-15.prepend-5.last
%h2
search results for
=t('.results_for')
%u= params[:q]
%ul#stream

View file

@ -36,7 +36,7 @@
%br
%br
= link_to 'photos', person_photos_path(@person)
= link_to t('_photos'), person_photos_path(@person)
.span-15.last
@ -55,13 +55,13 @@
.floating
%h3
= "You're currently not friends with #{@person.real_name}"
= t('.not_friends', :name => @person.real_name)
- unless @pending_request
%h3
.description
If you'd like, you can request to place him/her in one of your aspects.
= t('.request_people')
= form_for Request.new do |f|
= f.select(:aspect_id, @aspects_dropdown_array)
@ -71,5 +71,5 @@
- else
%h3
.description
= "You have already sent a request to #{@person.real_name}."
= t('.already_requested', :name => @person.real_name)

View file

@ -13,7 +13,7 @@
%ul
- if post.public?
the world
%li= t('.the_world')
- else
- for aspect in current_user.aspects_with_post( post.id )
%li= link_to aspect.name, aspect
@ -22,7 +22,7 @@
.right
= link_to t('delete'), photo_path(post), :confirm => t('are_you_sure'), :method => :delete, :remote => true, :class => "delete"
posted a photo
=t('.posted_a_photo')
%br
%br

View file

@ -9,7 +9,7 @@
= render 'shared/author_info', :person => @photo.person, :post => @photo
%ul#breadcrumb
%li= link_to "#{@photo.person.profile.first_name}'s Photos", person_photos_path(@photo.person)
%li= link_to "#{@photo.person.profile.first_name}'s #{t('_photos')}", person_photos_path(@photo.person)
%li= @photo.caption
/ we need to do next photo here
@ -27,7 +27,7 @@
-if @ownership
.edit_pane
.controls{:data=>{:actor=>"#{@photo.person.owner.id}",:actor_person=>"#{@photo.person.id}",:image_url=>"#{@photo.url(:thumb_medium)}"}}
= link_to 'make profile photo', '#', :class => "make_profile_photo"
= link_to t('.make_profile_photo'), '#', :class => "make_profile_photo"
= image_tag @photo.url(:scaled_full)
-else
@ -36,25 +36,25 @@
.caption
-if @ownership
-if @photo.caption and @photo.caption != ""
= link_to 'Edit','javascript:void(0)', :id => "edit-desc", :class => "edit-desc"
= link_to t('.edit_photo'),'javascript:void(0)', :id => "edit-desc", :class => "edit-desc"
.description
= @photo.caption
-if @ownership
%div{:class => 'clear'}
-if !@photo.caption or @photo.caption == ""
= link_to 'Add a description','javascript:void(0)', :id => "add-description", :class => "edit-desc"
= link_to t('.add_a_description'),'javascript:void(0)', :id => "add-description", :class => "edit-desc"
%br
%br
= form_for @photo do |p|
= p.text_field :caption, :value => @photo.caption
= p.submit
= p.submit t('.update_photo')
%div{:class => 'clear'}
-if @ownership
= link_to t('.delete_photo'), @photo, :confirm => t('.are_you_sure'), :method => :delete, :class => 'button'
= link_to t('.delete_photo'), @photo, :confirm => t('are_you_sure'), :method => :delete, :class => 'button'
.span-9.last
#stream.show

View file

@ -8,7 +8,7 @@
%ul#settings_nav
%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
%li=link_to t('_services'), services_path
.span-19.prepend-5.last
%h2

View file

@ -4,4 +4,4 @@
= hidden_field_tag :aspect_id, aspect.id
- if defined?(manage) && manage
= hidden_field_tag :manage, true
= submit_tag "add to #{aspect.name}"
= submit_tag t('.add_to', :aspect => aspect.name)

View file

@ -4,7 +4,7 @@
#left_pane
%h2= aspect == :all ? "Everyone" : aspect
%h2= aspect == :all ? t('.everyone') : aspect
.friend_pictures
= owner_image_link
@ -13,7 +13,7 @@
= person_image_link(friend)
-unless (aspect == :all)
= link_to (image_tag('add_friend_button.png', :title => "add to #{@aspect}")), "#add_request_pane", :class => 'add_request_button'
= link_to (image_tag('add_friend_button.png', :title => "#{t('.add_to', :aspect => @aspect)}")), "#add_request_pane", :class => 'add_request_button'
.fancybox_content
#add_request_pane

View file

@ -5,12 +5,12 @@
#aspect_nav
%ul
%li{:class => ("selected" if @aspect == :all)}
= link_to "Everyone", root_url
= link_to t('.everyone'), root_url
- for aspect in @aspects
%li{:class => ("selected" if current_aspect?(aspect))}
= link_for_aspect aspect
%li
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button", :title => "add a new aspect"
= link_to '+', '#add_aspect_pane', :class => "add_aspect_button", :title => t('.add_a_new_aspect')
%ul.right{:style=>"bottom:0;"}
%li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)}

View file

@ -4,19 +4,19 @@
.span-12.last
.modal_title_bar
%h4 You are about to post a public message!
%h4=t('.title')
%p
Public messages will be available for others outside of Diaspora to see.
=t('.outside')
%br
%br
- if current_user.services
- for service in current_user.services
= "logged in to #{service.provider}"
= t('.logged_in', :service => service.provider)
%br
= link_to "manage connected services", services_path
= link_to t('.manage'), services_path
%br
%br
= link_to "OK", '#', :class => "button", :onClick => '$.fancybox.close();'
= link_to t('ok'), '#', :class => "button", :onClick => '$.fancybox.close();'

View file

@ -25,16 +25,16 @@
= form_for StatusMessage.new, :remote => true do |status|
= status.error_messages
%p
= status.label :message, t('.post_a_message_to', :aspect => aspect)
= status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? t('.all') : aspect))
= status.text_area :message, :rows => 2, :value => params[:prefill]
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
.options_and_submit
- if aspect == :all
= status.submit t('.share'), :title => "Share with all aspects"
= status.submit t('.share'), :title => t('.share_with_all')
- else
= status.submit t('.share'), :title => "Share with #{aspect}"
= status.submit t('.share'), :title => t('.share_with', :aspect => aspect)
- if aspect == :all
.public_toggle
@ -50,3 +50,4 @@
#publisher_photo_upload
= t('or')
= render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id)

View file

@ -18,7 +18,7 @@
%ul#settings_nav
%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
%li=link_to t('_services'), services_path
.span-19.prepend-5.last
%h2
@ -60,8 +60,8 @@
%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"
= link_to t('.download_xml'), users_export_path, :class => "button"
= link_to t('.download_photos'), users_export_photos_path, :class => "button"
%br
%br

View file

@ -20,11 +20,15 @@ en:
username: 'Username'
password: 'Password'
sign_in: 'Sign in'
have_a_problem: "Have a problem? Find an answer here"
signed_in: 'Signed in successfully.'
signed_out: 'Signed out successfully.'
passwords:
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
updated: 'Your password was changed successfully. You are now signed in.'
new:
forgot_password: "Forgot your password?"
send_password_instructions: "Send me reset password instructions"
confirmations:
send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
confirmed: 'Your account was successfully confirmed. You are now signed in.'

View file

@ -10,7 +10,10 @@ en:
settings: "Settings"
profile: "Profile"
account: "Account"
services: "Services"
_services: "Services"
_photos: "photos"
stream: "stream"
ok: "OK"
cancel: "Cancel"
delete: "Delete"
or: "or"
@ -63,6 +66,8 @@ en:
all_aspects: "All Aspects"
manage: "Manage"
manage_your_aspects: "Manage your Aspects"
everyone: "Everyone"
add_a_new_aspect: "add a new aspect"
sub_header:
all_aspects: "All Aspects"
manage_aspects: "Manage Aspects"
@ -70,9 +75,14 @@ en:
share: "Share"
post_a_message_to: "Post a message to %{aspect}"
make_public: "make public"
share_with_all: "Share with all aspects"
share_with: "Share with %{aspect}"
create: "Create"
all: "all"
aspect_friends:
add_friends: "add friends"
photos: "photos"
everyone: "Everyone"
add_to: "add to %{aspect}"
invitations:
invites: 'Invites'
invite_a_friend: 'Invite a friend'
@ -81,6 +91,13 @@ en:
reshare: 'Reshare'
author_info:
view_profile: 'View profile'
add_friend_dropdown:
add_to: "add to %{aspect}"
public_explain:
title: "You are about to post a public message!"
outside: "Public messages will be available for others outside of Diaspora to see."
logged_in: "logged in to %{service}"
manage: "manage connected services"
aspects:
no_friends_message:
nobody: "We know you have friends — bring them to Diaspora!"
@ -97,6 +114,11 @@ en:
update_aspects: "Update Aspects"
requests: "Requests"
ignore_remove: "Ignore/Remove"
no_requests: "No new requests"
remove_from_aspect: "Remove from Aspect"
manage_aspects: "Manage aspects"
drag_to_remove: "Drag to remove person from aspect"
drag_to-add: "Drag to add people"
new_aspect:
add_a_new_aspect: "Add a new aspect"
name: "Name"
@ -126,6 +148,8 @@ en:
change_language: "Change Language"
change_password: "Change Password"
new_password: "New Password"
download_xml: "download my xml"
download_photos: "download my photos"
destroy: "Account successfully closed."
getting_started:
signup_steps: "Complete your sign-up by doing these things:"
@ -135,6 +159,13 @@ en:
edit_profile: "Edit your profile"
define_aspects: "Define your aspects"
connect_services: "Connect your services"
update:
password_changed: "Password Changed"
password_not_changed: "Password Change Failed"
language_changed: "Language Changed"
language_not_changed: "Language Change Failed"
public:
does_not_exist: "User %{username} does not exist!"
comments:
new_comment:
comment: "Comment"
@ -146,12 +177,18 @@ en:
edit_photo: "Edit Photo"
delete_photo: "Delete Photo"
comments: "comments"
add_a_description: "Add a description"
uploads: "uploads"
make_profile_photo: "make profile photo"
update_photo: "Update Photo"
edit:
editing: "Editing"
delete_photo: "Delete Photo"
photo:
show_comments: "show comments"
posted_a_new_photo_to: "posted a new photo to"
posted_a_photo: "posted a photo"
the_world: "the world"
new:
new_photo: "New Photo"
back_to_list: "Back to List"
@ -188,6 +225,8 @@ en:
message: 'Message:'
send_an_invitation: 'Send an invitation'
send_invitation: 'Send invitation'
check_token:
not_found: "Invitation token not found"
status_messages:
new_status_message:
tell_me_something_good: "tell me something good"
@ -207,6 +246,8 @@ en:
person:
add_friend: "add friend"
pending_request: "pending request"
already_friends: "Already friends"
thats_you: "thats you!"
index:
add_friend: "add friend"
real_name: "real name"
@ -214,6 +255,7 @@ en:
thats_you: "that's you!"
friend_request_pending: "friend request pending"
you_have_a_friend_request_from_this_person: "you have a friend request from this person"
results_for: "search results for"
new:
new_person: "New Person"
back_to_list: "Back to List"
@ -225,6 +267,10 @@ en:
no_posts: "no posts to display!"
add_friend: "add friend"
edit_my_profile: "Edit my profile"
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!"
edit:
info_available_to: "This info will be available to whomever you connect with on Diaspora."
your_profile: "Your profile"
@ -243,6 +289,13 @@ en:
editing_profile: "Editing profile"
you_dont_have_any_photos: "You don't have any photos! Go to the"
page_to_upload_some: "page to upload some."
search: "Search"
allow_search: "Allow for people to search for you"
profile_photo_upload:
or_select_one: "or select one from your already existing"
update:
updated: "Profile updated"
failed: "Failed to update profile"
requests:
new_request:
add_a_new_friend_to: "Add a new friend to"
@ -262,3 +315,9 @@ en:
already_friends: "You are already friends with %{destination_url}!"
success: "A friend request was sent to %{destination_url}."
horribly_wrong: "Something went horribly wrong."
tried: "we tried our best to send a message to %{account}"
services:
create:
success: "Authentication successful."
destroy:
success: "Successfully destroyed authentication."