From 8c7519df8630c4ebca4f97129a0c3e2cf58aeb34 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 17 Jun 2013 15:37:46 +1000 Subject: [PATCH] missing pluralization --- .../discourse/templates/featured_topics.js.handlebars | 4 ++-- .../templates/list/topic_list_item.js.handlebars | 4 ++-- .../discourse/templates/suggested_topic.js.handlebars | 4 ++-- config/locales/client.en.yml | 8 ++++++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/featured_topics.js.handlebars b/app/assets/javascripts/discourse/templates/featured_topics.js.handlebars index 8189782865..8b6188320b 100644 --- a/app/assets/javascripts/discourse/templates/featured_topics.js.handlebars +++ b/app/assets/javascripts/discourse/templates/featured_topics.js.handlebars @@ -29,10 +29,10 @@ {{{topicLink this}}} {{#if unread}} - {{unbound unread}} + {{unbound unread}} {{/if}} {{#if new_posts}} - {{unbound new_posts}} + {{unbound new_posts}} {{/if}} {{#if unseen}} diff --git a/app/assets/javascripts/discourse/templates/list/topic_list_item.js.handlebars b/app/assets/javascripts/discourse/templates/list/topic_list_item.js.handlebars index 1e5f0a302d..b85d8db51a 100644 --- a/app/assets/javascripts/discourse/templates/list/topic_list_item.js.handlebars +++ b/app/assets/javascripts/discourse/templates/list/topic_list_item.js.handlebars @@ -19,10 +19,10 @@ {{topicStatus topic=this}} {{{topicLink this}}} {{#if unread}} - {{unread}} + {{unread}} {{/if}} {{#if displayNewPosts}} - {{displayNewPosts}} + {{displayNewPosts}} {{/if}} {{#if unseen}} diff --git a/app/assets/javascripts/discourse/templates/suggested_topic.js.handlebars b/app/assets/javascripts/discourse/templates/suggested_topic.js.handlebars index 25e5672bcd..50138c8850 100644 --- a/app/assets/javascripts/discourse/templates/suggested_topic.js.handlebars +++ b/app/assets/javascripts/discourse/templates/suggested_topic.js.handlebars @@ -3,10 +3,10 @@ {{{unbound fancy_title}}} {{#if unread}} - {{unbound unread}} + {{unbound unread}} {{/if}} {{#if new_posts}} - {{unbound new_posts}} + {{unbound new_posts}} {{/if}} {{#if unseen}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 54169cc20c..b926db8cba 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -549,8 +549,12 @@ en: not_found: title: "Topic not found" description: "Sorry, we couldn't find that topic. Perhaps it was removed by a moderator?" - unread_posts: "you have {{unread}} unread old posts in this topic" - new_posts: "there are {{new_posts}} new posts in this topic since you last read it" + unread_posts: + one: "you have 1 unread old post in this topic" + other: "you have {{count}} unread old posts in this topic" + new_posts: + one: "there is 1 new posts in this topic since you last read it" + other: "there are {{count}} new posts in this topic since you last read it" likes: one: "there is 1 like in this topic"