From 73e17dc7e8f06d9855b9a1c99133fd7f1c6a1a67 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Fri, 2 Jan 2015 16:22:23 +0100 Subject: pluralize translation --- search/js/search.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'search') diff --git a/search/js/search.js b/search/js/search.js index b17b175d70d..078fe4f82ba 100644 --- a/search/js/search.js +++ b/search/js/search.js @@ -200,8 +200,12 @@ } }); var count = $searchResults.find('tr.result').length; - $status.data('count', count) - .text(t('search', '{count} search results in other places', {count:count}, count)); + $status.data('count', count); + if (count === 0) { + $status.text(t('core', 'No search result in other places')); + } else { + $status.text(n('core', '{count} search result in other places', '{count} search results in other places', count, {count:count})); + } } function renderCurrent() { var result = $searchResults.find('tr.result')[currentResult]; -- cgit v1.2.3