summaryrefslogtreecommitdiffstats
path: root/search
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 16:22:23 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-02 16:22:23 +0100
commit73e17dc7e8f06d9855b9a1c99133fd7f1c6a1a67 (patch)
tree217c56c764d6010d31b18aa8155777893fb09193 /search
parentba235eb51de074670b04f25993d6ed2051ffbebf (diff)
downloadnextcloud-server-73e17dc7e8f06d9855b9a1c99133fd7f1c6a1a67.tar.gz
nextcloud-server-73e17dc7e8f06d9855b9a1c99133fd7f1c6a1a67.zip
pluralize translation
Diffstat (limited to 'search')
-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];