aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js2
-rw-r--r--apps/files/js/filelist.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 793c9672c3f..648a5a0307b 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -1134,7 +1134,7 @@ OC.Uploader.prototype = _.extend({
}
}
console.error(e, data, response)
- OC.Notification.show(message || data.errorThrown, {type: 'error'});
+ OC.Notification.show(message || data.errorThrown || t('files', 'File could not be uploaded'), {type: 'error'});
}
if (upload) {
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 85b9e883ac6..510582ae998 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1686,7 +1686,9 @@
td.append(
'<input id="select-' + this.id + '-' + fileData.id +
'" type="checkbox" class="selectCheckBox checkbox"/><label for="select-' + this.id + '-' + fileData.id + '">' +
- '<span class="hidden-visually">' + t('files', 'Select') + '</span>' +
+ '<span class="hidden-visually">' + (fileData.type === 'dir' ?
+ t('files', 'Select directory "{dirName}"', {dirName: name}) :
+ t('files', 'Select file "{fileName}"', {fileName: name})) + '</span>' +
'</label>'
);
@@ -3577,7 +3579,7 @@
* Shows a "permission denied" notification
*/
_showPermissionDeniedNotification: function() {
- var message = t('files', 'You don’t have permission to upload or create files here');
+ var message = t('files', 'You do not have permission to upload or create files here');
OC.Notification.show(message, {type: 'error'});
},