summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-09 20:37:18 +0200
committerkondou <kondou@ts.unde.re>2013-08-09 20:37:18 +0200
commit9549bd3e68aa32bb9fa1a9a54bda84fa5070966f (patch)
treee8464e5679053e1b75e358682ece102ea959836a /apps/files_trashbin
parent4c0ec974b9a8b97625695edd136e1f805af0bf31 (diff)
downloadnextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.tar.gz
nextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.zip
Use plural translations
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/js/trash.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index c3c958b07a7..b14a7240cbe 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -188,21 +188,13 @@ function processSelection(){
$('.selectedActions').show();
var selection='';
if(selectedFolders.length>0){
- if(selectedFolders.length === 1){
- selection+=t('files','1 folder');
- }else{
- selection+=t('files','{count} folders',{count: selectedFolders.length});
- }
+ selection += n('files', '%n folder', '%n folders', selectedFolders.length);
if(selectedFiles.length>0){
selection+=' & ';
}
}
if(selectedFiles.length>0){
- if(selectedFiles.length === 1){
- selection+=t('files','1 file');
- }else{
- selection+=t('files','{count} files',{count: selectedFiles.length});
- }
+ selection += n('files', '%n file', '%n files', selectedFiles.length);
}
$('#headerName>span.name').text(selection);
$('#modified').text('');