Use correct l10n source in files_sharing JS code
Signed-off-by: Morris Jobke <hey@morrisjobke.de> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
This commit is contained in:
parent
d56300a86c
commit
fba0145bef
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -179,12 +179,12 @@ import escapeHTML from 'escape-html'
|
||||||
var shareType = parseInt(context.$file.data('share-types'), 10)
|
var shareType = parseInt(context.$file.data('share-types'), 10)
|
||||||
var shareOwner = context.$file.data('share-owner-id')
|
var shareOwner = context.$file.data('share-owner-id')
|
||||||
if (shareType >= 0 || shareOwner) {
|
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',
|
mime: 'all',
|
||||||
order: -150,
|
order: -150,
|
||||||
permissions: OC.PERMISSION_ALL,
|
permissions: OC.PERMISSION_ALL,
|
||||||
|
@ -318,10 +318,10 @@ import escapeHTML from 'escape-html'
|
||||||
recipients = $tr.data('share-recipient-data')
|
recipients = $tr.data('share-recipient-data')
|
||||||
action.addClass('shared-style')
|
action.addClass('shared-style')
|
||||||
|
|
||||||
avatars = '<span>' + t('core', 'Shared') + '</span>'
|
avatars = '<span>' + t('files_sharing', 'Shared') + '</span>'
|
||||||
// even if reshared, only show "Shared by"
|
// even if reshared, only show "Shared by"
|
||||||
if (ownerId) {
|
if (ownerId) {
|
||||||
message = t('core', 'Shared by')
|
message = t('files_sharing', 'Shared by')
|
||||||
avatars = OCA.Sharing.Util._formatRemoteShare(ownerId, owner, message)
|
avatars = OCA.Sharing.Util._formatRemoteShare(ownerId, owner, message)
|
||||||
} else if (recipients) {
|
} else if (recipients) {
|
||||||
avatars = OCA.Sharing.Util._formatShareList(recipients)
|
avatars = OCA.Sharing.Util._formatShareList(recipients)
|
||||||
|
@ -336,7 +336,7 @@ import escapeHTML from 'escape-html'
|
||||||
action.find('span[title]').tooltip({ placement: 'top' })
|
action.find('span[title]').tooltip({ placement: 'top' })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon)
|
action.html('<span class="hidden-visually">' + t('files_sharing', 'Shared') + '</span>').prepend(icon)
|
||||||
}
|
}
|
||||||
if (hasLink) {
|
if (hasLink) {
|
||||||
iconClass = 'icon-public'
|
iconClass = 'icon-public'
|
||||||
|
@ -397,7 +397,7 @@ import escapeHTML from 'escape-html'
|
||||||
return a.shareWithDisplayName.localeCompare(b.shareWithDisplayName)
|
return a.shareWithDisplayName.localeCompare(b.shareWithDisplayName)
|
||||||
})
|
})
|
||||||
return $.map(recipients, function(recipient) {
|
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')
|
recipients = $tr.data('share-recipient-data')
|
||||||
action.addClass('shared-style')
|
action.addClass('shared-style')
|
||||||
|
|
||||||
avatars = '<span>' + t('core', 'Shared') + '</span>'
|
avatars = '<span>' + t('files_sharing', 'Shared') + '</span>'
|
||||||
// even if reshared, only show "Shared by"
|
// even if reshared, only show "Shared by"
|
||||||
if (ownerId) {
|
if (ownerId) {
|
||||||
message = t('core', 'Shared by')
|
message = t('files_sharing', 'Shared by')
|
||||||
avatars = this._formatRemoteShare(ownerId, owner, message)
|
avatars = this._formatRemoteShare(ownerId, owner, message)
|
||||||
} else if (recipients) {
|
} else if (recipients) {
|
||||||
avatars = this._formatShareList(recipients)
|
avatars = this._formatShareList(recipients)
|
||||||
|
@ -471,7 +471,7 @@ import escapeHTML from 'escape-html'
|
||||||
action.find('span[title]').tooltip({ placement: 'top' })
|
action.find('span[title]').tooltip({ placement: 'top' })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon)
|
action.html('<span class="hidden-visually">' + t('files_sharing', 'Shared') + '</span>').prepend(icon)
|
||||||
}
|
}
|
||||||
if (hasLink) {
|
if (hasLink) {
|
||||||
iconClass = 'icon-public'
|
iconClass = 'icon-public'
|
||||||
|
|
Loading…
Reference in New Issue