diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-14 10:23:19 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-14 10:23:19 -0700 |
commit | 8f3f47e868805078b92334e087b21f07425e8846 (patch) | |
tree | 1e4094d9fdadbe76087df00605f571a199de0ae0 /apps/files_trashbin | |
parent | b3b2b2d64c626f9c6725be979d200c509b080365 (diff) | |
parent | 400249194726e7cf6fc79d5fe7e92ccca8539244 (diff) | |
download | nextcloud-server-8f3f47e868805078b92334e087b21f07425e8846.tar.gz nextcloud-server-8f3f47e868805078b92334e087b21f07425e8846.zip |
Merge pull request #4376 from owncloud/use_plurals
Use plural translations
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/js/trash.js | 12 |
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(''); |