pluralization for show more comments, fix #2350
This commit is contained in:
parent
0f9e82eea1
commit
59b99fe917
2 changed files with 9 additions and 3 deletions
|
|
@ -8,9 +8,9 @@ module CommentsHelper
|
|||
if post.comments.size <= 3
|
||||
link_to "#{t('stream_helper.hide_comments')}", post_comments_path(post.id), :class => "toggle_post_comments"
|
||||
elsif ! user_signed_in?
|
||||
link_to "#{t('stream_helper.show_more_comments', :number => post.comments.size - 3)}", post_path(post.id, :all_comments => '1'), :class => "toggle_post_comments"
|
||||
link_to "#{t('stream_helper.show_comments', :count => post.comments.size - 3)}", post_path(post.id, :all_comments => '1'), :class => "toggle_post_comments"
|
||||
else
|
||||
link_to "#{t('stream_helper.show_more_comments', :number => post.comments.size - 3)}", post_comments_path(post.id), :class => "toggle_post_comments"
|
||||
link_to "#{t('stream_helper.show_comments', :count => post.comments.size - 3)}", post_comments_path(post.id), :class => "toggle_post_comments"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -827,7 +827,13 @@ en:
|
|||
other: "please make your status messages less than %{count} characters"
|
||||
|
||||
stream_helper:
|
||||
show_more_comments: "Show %{number} more comments"
|
||||
show_comments:
|
||||
zero: "No more comments"
|
||||
one: "Show one more comment"
|
||||
two: "Show two more comments"
|
||||
few: "Show %{count} more comments"
|
||||
many: "Show %{count} more comments"
|
||||
other: "Show %{count} more comments"
|
||||
hide_comments: "Hide all comments"
|
||||
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Reference in a new issue