From f07d146644e1e9321fd47adc80afddf5ff4ef4f4 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 20 Sep 2016 15:49:21 +0200 Subject: [PATCH] Display "Share" alt text for share action icon (#26158) Downstreaming of https://github.com/owncloud/core/pull/26158 Signed-off-by: Lukas Reschke --- apps/files_sharing/js/share.js | 1 + core/js/share.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 07ec5f766a1..5dd75c94fdb 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -141,6 +141,7 @@ fileActions.registerAction({ name: 'Share', displayName: '', + altText: t('core', 'Share'), mime: 'all', permissions: OC.PERMISSION_ALL, iconClass: 'icon-share', diff --git a/core/js/share.js b/core/js/share.js index cd399dd3cee..913c78bb732 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -306,7 +306,7 @@ OC.Share = _.extend(OC.Share || {}, { } } else { - action.html('').prepend(icon); + action.html('' + t('core', 'Shared') + '').prepend(icon); } if (hasLink) { iconClass = 'icon-public';