summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--search/js/search.js8
1 files changed, 6 insertions, 2 deletions
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];