MS RS translated reshares
This commit is contained in:
parent
00885be738
commit
241999f72a
4 changed files with 18 additions and 4 deletions
|
|
@ -6,4 +6,8 @@ module ResharesHelper
|
||||||
escape_javascript(t('reshares.create.failure'))
|
escape_javascript(t('reshares.create.failure'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def reshare_link post
|
||||||
|
link_to t("reshares.reshare.reshare", :count => post.reshares.size), reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => t('reshares.reshare.reshare_confirmation', :author => post.author.name, :text => post.text)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
.content
|
.content
|
||||||
.right
|
.right
|
||||||
= link_to "Show Original", post_path(post)
|
= link_to t("show_original"), post_path(post)
|
||||||
%span.from
|
%span.from
|
||||||
= person_link(post.author, :class => "hovercardable")
|
= person_link(post.author, :class => "hovercardable")
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
= render 'status_messages/status_message', :post => post, :photos => post.photos
|
= render 'status_messages/status_message', :post => post, :photos => post.photos
|
||||||
- if defined?(current_user) && current_user && (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
|
- if defined?(current_user) && current_user && (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
|
||||||
%span.reshare_action
|
%span.reshare_action
|
||||||
= link_to "Reshare", reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => "Reshare: #{post.author.name} - #{post.text}?"
|
= reshare_link(post)
|
||||||
|
|
||||||
- else
|
- else
|
||||||
Original post deleted by author
|
= t('.deleted')
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
- if (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
|
- if (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
|
||||||
·
|
·
|
||||||
%span.reshare_action
|
%span.reshare_action
|
||||||
= link_to "#{(post.reshares.size unless post.reshares.size == 0)} Reshare", reshares_path(:root_guid => post.guid), :method => :post, :remote => true, :confirm => "Reshare: #{post.author.name} - #{post.text}?"
|
= reshare_link(post)
|
||||||
·
|
·
|
||||||
|
|
||||||
= link_to t('comments.new_comment.comment'), '#', :class => 'focus_comment_textarea'
|
= link_to t('comments.new_comment.comment'), '#', :class => 'focus_comment_textarea'
|
||||||
|
|
|
||||||
|
|
@ -582,6 +582,16 @@ en:
|
||||||
many: "%{count} new requests!"
|
many: "%{count} new requests!"
|
||||||
other: "%{count} new requests!"
|
other: "%{count} new requests!"
|
||||||
reshares:
|
reshares:
|
||||||
|
reshare:
|
||||||
|
reshare:
|
||||||
|
zero: "Reshare"
|
||||||
|
one: "1 Reshare"
|
||||||
|
few: "%{count} Reshares"
|
||||||
|
many: "%{count} Reshares"
|
||||||
|
other: "%{count} Reshares"
|
||||||
|
show_original: "Show Original"
|
||||||
|
reshare_confirmation: "Reshare %{author} - %{text}?"
|
||||||
|
deleted: "Original post deleted by author."
|
||||||
create:
|
create:
|
||||||
failure: "There was an error resharing this post."
|
failure: "There was an error resharing this post."
|
||||||
services:
|
services:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue