From 59b99fe9171f521d3f4596c395228489c75c8883 Mon Sep 17 00:00:00 2001 From: Jonne Hass Date: Wed, 9 Nov 2011 11:07:35 +0100 Subject: [PATCH] pluralization for show more comments, fix #2350 --- app/helpers/comments_helper.rb | 4 ++-- config/locales/diaspora/en.yml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb index c4e96ee40..04d60253c 100644 --- a/app/helpers/comments_helper.rb +++ b/app/helpers/comments_helper.rb @@ -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 diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index c975c796f..aeb501334 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -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: