diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-17 10:54:06 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-17 10:54:06 +0300 |
commit | 7a7d2a06b3884839d570cb426f91563edc5b8177 (patch) | |
tree | fa57446a2a8e5c1c64b7f22f4e7d9cd2ac12fd04 /apps | |
parent | dbd2dea689699df107a53ed39abab6c15edb7f0f (diff) | |
download | nextcloud-server-7a7d2a06b3884839d570cb426f91563edc5b8177.tar.gz nextcloud-server-7a7d2a06b3884839d570cb426f91563edc5b8177.zip |
Adding a few more string to translation
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/files.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 30c9b848434..55b48ff075b 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -253,10 +253,10 @@ $(document).ready(function() { var img = OC.imagePath('core', 'loading.gif'); var tr=$('tr').filterAttr('data-file',dirName); tr.find('td.filename').attr('style','background-image:url('+img+')'); - uploadtext.text('1 file uploading'); + uploadtext.text(t('files', '1 file uploading')); uploadtext.show(); } else { - uploadtext.text(currentUploads + ' files uploading') + uploadtext.text(currentUploads + t('files', ' files uploading')); } } } @@ -301,7 +301,7 @@ $(document).ready(function() { uploadtext.text(''); uploadtext.hide(); } else { - uploadtext.text(currentUploads + ' files uploading') + uploadtext.text(currentUploads + t('files', ' files uploading')); } }) .error(function(jqXHR, textStatus, errorThrown) { @@ -316,7 +316,7 @@ $(document).ready(function() { uploadtext.text(''); uploadtext.hide(); } else { - uploadtext.text(currentUploads + ' files uploading') + uploadtext.text(currentUploads + t('files', ' files uploading')); } $('#notification').hide(); $('#notification').text(t('files', 'Upload cancelled.')); @@ -663,7 +663,7 @@ function scanFiles(force,dir){ var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force,dir:dir}); scanFiles.cancel=scannerEventSource.close.bind(scannerEventSource); scannerEventSource.listen('scanning',function(data){ - $('#scan-count').text(data.count+' files scanned'); + $('#scan-count').text(data.count+t('files',' files scanned')); $('#scan-current').text(data.file+'/'); }); scannerEventSource.listen('success',function(success){ @@ -671,7 +671,7 @@ function scanFiles(force,dir){ if(success){ window.location.reload(); }else{ - alert('error while scanning'); + alert(t('files', 'error while scanning')); } }); } |