aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-08-14 10:23:19 -0700
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-08-14 10:23:19 -0700
commit8f3f47e868805078b92334e087b21f07425e8846 (patch)
tree1e4094d9fdadbe76087df00605f571a199de0ae0 /apps/files/js/filelist.js
parentb3b2b2d64c626f9c6725be979d200c509b080365 (diff)
parent400249194726e7cf6fc79d5fe7e92ccca8539244 (diff)
downloadnextcloud-server-8f3f47e868805078b92334e087b21f07425e8846.tar.gz
nextcloud-server-8f3f47e868805078b92334e087b21f07425e8846.zip
Merge pull request #4376 from owncloud/use_plurals
Use plural translations
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index b858e2580ee..f7cc3767b25 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -452,13 +452,14 @@ $(document).ready(function(){
var currentUploads = parseInt(uploadtext.attr('currentUploads'));
currentUploads += 1;
uploadtext.attr('currentUploads', currentUploads);
+ var translatedText = n('files', 'Uploading %n file', 'Uploading %n files', currentUploads);
if(currentUploads === 1) {
var img = OC.imagePath('core', 'loading.gif');
data.context.find('td.filename').attr('style','background-image:url('+img+')');
- uploadtext.text(t('files', '1 file uploading'));
+ uploadtext.text(translatedText);
uploadtext.show();
} else {
- uploadtext.text(currentUploads + ' ' + t('files', 'files uploading'));
+ uploadtext.text(translatedText);
}
} else {
// add as stand-alone row to filelist