#475: Fixed more untranslated strings

This commit is contained in:
Hexagon 2010-11-01 18:27:49 +01:00 committed by Alec Leamas
parent d979ad4fc0
commit 1acc206fa4
12 changed files with 49 additions and 24 deletions

View file

@ -34,7 +34,7 @@ module ApplicationHelper
end
def how_long_ago(obj)
"#{time_ago_in_words(obj.created_at)} ago"
"#{time_ago_in_words(obj.created_at)} #{t('.ago')}"
end
def person_url(person)

View file

@ -4,7 +4,7 @@
= form_for Comment.new, :remote => true do |comment|
%p
= label_tag "comment_text_on_#{post.id}", "Comment"
= label_tag "comment_text_on_#{post.id}", t('.comment')
= comment.text_area :text, :rows => 1, :id => "comment_text_on_#{post.id}", :class => "comment_box"
= comment.hidden_field :post_id, :value => post.id

View file

@ -1,20 +1,23 @@
.span-12.last
.modal_title_bar
%h4 Invite someone to join Diaspora!
%h4
= t('.invite_someone_to_join')
%i if they accept, they will be added to the aspect you invited them
%i
= t('.if_they_accept_info')
= form_for User.new, :url => invitation_path(User) do |invite|
%p
= invite.label :email
= invite.label :email , t('.email')
= invite.text_field :email
To
= t('.to')
- unless @aspect.is_a? Aspect
= invite.select(:aspects, @aspects_dropdown_array)
- else
= invite.select(:aspects, @aspects_dropdown_array, :selected => @aspect.id)
Message:
= t('.message')
= invite.text_area :invite_messages, :value => ""
%p= invite.submit "Send an invitation"
%p= invite.submit t('.send_an_invitation')

View file

@ -1,8 +1,9 @@
%h2 Send invitation
%h2
= t('.send_invitation')
= form_for User.new, :url => invitation_path(User) do |f|
= devise_error_messages!
%p
= f.label :email
= f.label :email , t('.email')
= f.text_field :email
%p= f.submit "Send an invitation"
%p= f.submit t('.send_an_invitation')
/= link_to "Home", after_sign_in_path_for(resource_name)

View file

@ -16,7 +16,7 @@
%h3
= t('.your_profile')
.description
This info will be available to whomever you connect with on Diaspora.
=t('.info_available_to')
= person.error_messages

View file

@ -32,7 +32,7 @@
- if @person == current_user.person
%b
= link_to "Edit my profile", edit_person_path(@person)
= link_to t('.edit_my_profile'), edit_person_path(@person)
%br
%br

View file

@ -1,6 +1,7 @@
%h4 Invites
= link_to "Invite a friend", "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend"
= "(#{invites} left)"
%h4
= t('.invites')
= link_to t('.invite_a_friend'), "#invite_user_pane", :class => "invite_user_button", :title => "Invite a friend"
= t('.invitations_left', :count => invites)
%br
.yo{ :style => "display:none;"}
#invite_user_pane

View file

@ -26,7 +26,7 @@
= form_for StatusMessage.new, :remote => true do |status|
= status.error_messages
%p
= status.label :message, "Post a message to #{aspect}"
= status.label :message, t('.post_a_message_to', :aspect => aspect)
= status.text_area :message, :rows => 2, :value => params[:prefill]
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
@ -35,7 +35,7 @@
- if aspect == :all
.public_toggle
= status.check_box( :public, {}, true, false )
make public
= t('.make_public')
= link_to '(?)', "#question_mark_pane", :class => 'question_mark'
.fancybox_content
@ -48,7 +48,7 @@
= status.submit t('.share'), :title => "Share with #{aspect}"
#publisher_photo_upload
or
= t('.or')
= render 'photos/new_photo', :aspect_id => (aspect == :all ? aspect : aspect.id), :album_id => nil

View file

@ -5,7 +5,7 @@
- unless current_user.aspects.size == current_user.aspects_with_post(post.id).size
.reshare_pane
%span.reshare_button
= link_to "Reshare", "#"
= link_to t('.reshare'), "#"
%ul.reshare_box
- for aspect in current_user.aspects
@ -14,4 +14,4 @@
- else
.reshare_pane
%span.reshare_button
= link_to "Reshare", "#", :class => "inactive"
= link_to t('.reshare'), "#", :class => "inactive"

View file

@ -44,7 +44,7 @@
.submit_block
= link_to t('.cancel'), edit_user_path(current_user)
or
= t('.or')
= f.submit t('.change_password')
%h3

View file

@ -54,9 +54,18 @@ en:
manage_aspects: "Manage Aspects"
publisher:
share: "Share"
or: "or"
post_a_message_to: "Post a message to %{aspect}"
make_public: "make public"
aspect_friends:
add_friends: "add friends"
photos: "photos"
invitations:
invites: 'Invites'
invite_a_friend: 'Invite a friend'
invitations_left: '(%{count} left)'
reshare:
reshare: 'Reshare'
albums:
album:
you: "you"
@ -141,6 +150,7 @@ en:
account: "Account"
services: "Services"
cancel: "Cancel"
or: "or"
destroy: "Account successfully closed."
getting_started:
signup_steps: "Complete your sign-up by doing these things:"
@ -205,7 +215,14 @@ en:
already_friends: 'You are already friends with this person'
invitation_token_invalid: 'The invitation token provided is not valid!'
updated: 'Your password was set successfully. You are now signed in.'
new:
email: 'Email'
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'
to: 'To'
message: 'Message:'
send_an_invitation: 'Send an invitation'
send_invitation: 'Send invitation'
status_messages:
new_status_message:
tell_me_something_good: "tell me something good"
@ -214,6 +231,7 @@ en:
show_comments: "show comments"
delete: "Delete"
are_you_sure: "Are you sure?"
ago: "ago"
show:
status_message: "Status Message"
comments: "comments"
@ -246,8 +264,10 @@ en:
remove_friend: "remove friend"
no_posts: "no posts to display!"
add_friend: "add friend"
edit_my_profile: "Edit my profile"
edit:
settings: "Settings"
info_available_to: "This info will be available to whomever you connect with on Diaspora."
your_profile: "Your profile"
your_name: "Your name"
first_name: "First name"

View file

@ -58,7 +58,7 @@ sv:
view_profile: "visa profil"
edit_profile: "ändra profil"
account_settings: "kontoinstallningar"
search: "Search"
search: "Sök ..."
logout: "logga ut"
shared:
aspect_nav: