From 2a5d41cc8201c0d554253ec9ff47eb8e3c2159e2 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Sun, 13 Mar 2011 21:16:43 +0100 Subject: [PATCH] fixed translations for comments --- app/views/shared/_stream_element.mobile.haml | 6 +----- config/locales/diaspora/en.yml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views/shared/_stream_element.mobile.haml b/app/views/shared/_stream_element.mobile.haml index b313860d1..a92fb4aaf 100644 --- a/app/views/shared/_stream_element.mobile.haml +++ b/app/views/shared/_stream_element.mobile.haml @@ -16,8 +16,4 @@ = render 'status_messages/status_message', :post => post, :photos => post.photos .info - - if post.comments.length == 1 - = link_to "#{post.comments.length} #{t('_comment').downcase} →", status_message_path(post), :class => 'comment_link' - - else - = link_to "#{post.comments.length} #{t('_comments').downcase} →", status_message_path(post), :class => 'comment_link' - + = link_to "#{t('comments', :count => post.comments.length)} →", status_message_path(post), :class => 'comment_link' diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 7477d9474..839d587ea 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -29,6 +29,7 @@ en: more: "More" next: "next" previous: "previous" + _comments: "Comments" #for reference translation, the real activerecord english transations are actually