summaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
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/js/filelist.js
parent4c0ec974b9a8b97625695edd136e1f805af0bf31 (diff)
downloadnextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.tar.gz
nextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.zip
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..e0c72295702 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', '%n file uploading', '%n files uploading', 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