Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup!: Ensure that the string can be translated independed of senten…
…ce order of language

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 2, 2023
commit 7dee136c6340e1f4379997a3465cbfea32341087
25 changes: 16 additions & 9 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -292,24 +292,31 @@ export default {

computed: {
title() {
let title = t('files_sharing', 'Shared with') + ' ';
// TRANSLATORS: "shared with XX"
let shareWith = t('files_sharing', 'user');
if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_USER) {
title = title + this.share.shareWithDisplayName
shareWith = this.share.shareWithDisplayName
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK) {
title = t('files_sharing', 'Share link')
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'Share link')
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GROUP) {
title += ` (${t('files_sharing', 'group')})`
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'group')
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_ROOM) {
title += ` (${t('files_sharing', 'conversation')})`
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'conversation')
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE) {
title += ` (${t('files_sharing', 'remote')})`
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'remote')
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP) {
title += ` (${t('files_sharing', 'remote group')})`
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'remote group')
} else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GUEST) {
title += ` (${t('files_sharing', 'guest')})`
// TRANSLATORS: "shared with XX"
shareWith = t('files_sharing', 'guest')
}

return title
return t('files_sharing', 'Shared with {sharedWith}', { shareWith })
},
/**
* Can the sharee edit the shared file ?
Expand Down