diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:13:10 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-16 00:13:10 +0200 |
commit | 7279a07ca20949cf3cee82faf064d6aae8cf0a99 (patch) | |
tree | 01d912d1743db2e34225383d3f8b9783c9b6e295 /apps/files/js/files.js | |
parent | d91104e120d570eaf3d80c23c5caf6b597b24db7 (diff) | |
parent | bd1895bdf8dff07bf9dc9803ce991e39daa52acc (diff) | |
download | nextcloud-server-7279a07ca20949cf3cee82faf064d6aae8cf0a99.tar.gz nextcloud-server-7279a07ca20949cf3cee82faf064d6aae8cf0a99.zip |
Merge branch 'master' into mimetype-defaults
Conflicts:
apps/files/ajax/newfile.php
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r-- | apps/files/js/files.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 3fad3fae7d3..53fc25f41b0 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -759,21 +759,13 @@ function procesSelection(){ $('#headerSize').text(humanFileSize(totalSize)); 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(''); @@ -852,4 +844,4 @@ function checkTrashStatus() { $("input[type=button][id=trash]").removeAttr("disabled"); } }); -}
\ No newline at end of file +} |