From def53f4c642c5c3d7c05653a3276b797c03fb31a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 30 Nov 2020 17:03:19 +0100 Subject: Use correct l10n source in files_sharing JS code Signed-off-by: Morris Jobke Signed-off-by: npmbuildbot-nextcloud[bot] --- apps/files_sharing/src/share.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js index abb0a89447e..7d5aeec4224 100644 --- a/apps/files_sharing/src/share.js +++ b/apps/files_sharing/src/share.js @@ -179,12 +179,12 @@ import escapeHTML from 'escape-html' var shareType = parseInt(context.$file.data('share-types'), 10) var shareOwner = context.$file.data('share-owner-id') if (shareType >= 0 || shareOwner) { - return t('core', 'Shared') + return t('files_sharing', 'Shared') } } - return t('core', 'Share') + return t('files_sharing', 'Share') }, - altText: t('core', 'Share'), + altText: t('files_sharing', 'Share'), mime: 'all', order: -150, permissions: OC.PERMISSION_ALL, @@ -318,10 +318,10 @@ import escapeHTML from 'escape-html' recipients = $tr.data('share-recipient-data') action.addClass('shared-style') - avatars = '' + t('core', 'Shared') + '' + avatars = '' + t('files_sharing', 'Shared') + '' // even if reshared, only show "Shared by" if (ownerId) { - message = t('core', 'Shared by') + message = t('files_sharing', 'Shared by') avatars = OCA.Sharing.Util._formatRemoteShare(ownerId, owner, message) } else if (recipients) { avatars = OCA.Sharing.Util._formatShareList(recipients) @@ -336,7 +336,7 @@ import escapeHTML from 'escape-html' action.find('span[title]').tooltip({ placement: 'top' }) } } else { - action.html('' + t('core', 'Shared') + '').prepend(icon) + action.html('' + t('files_sharing', 'Shared') + '').prepend(icon) } if (hasLink) { iconClass = 'icon-public' @@ -397,7 +397,7 @@ import escapeHTML from 'escape-html' return a.shareWithDisplayName.localeCompare(b.shareWithDisplayName) }) return $.map(recipients, function(recipient) { - return _parent._formatRemoteShare(recipient.shareWith, recipient.shareWithDisplayName, t('core', 'Shared with')) + return _parent._formatRemoteShare(recipient.shareWith, recipient.shareWithDisplayName, t('files_sharing', 'Shared with')) }) }, @@ -453,10 +453,10 @@ import escapeHTML from 'escape-html' recipients = $tr.data('share-recipient-data') action.addClass('shared-style') - avatars = '' + t('core', 'Shared') + '' + avatars = '' + t('files_sharing', 'Shared') + '' // even if reshared, only show "Shared by" if (ownerId) { - message = t('core', 'Shared by') + message = t('files_sharing', 'Shared by') avatars = this._formatRemoteShare(ownerId, owner, message) } else if (recipients) { avatars = this._formatShareList(recipients) @@ -471,7 +471,7 @@ import escapeHTML from 'escape-html' action.find('span[title]').tooltip({ placement: 'top' }) } } else { - action.html('' + t('core', 'Shared') + '').prepend(icon) + action.html('' + t('files_sharing', 'Shared') + '').prepend(icon) } if (hasLink) { iconClass = 'icon-public' -- cgit v1.2.3