aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-12-13 01:37:09 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2023-12-13 16:37:39 +0100
commite35f6d89a271eede8380e9513811edfe923db4de (patch)
tree921a886957d48aedf7196a9eecdc209397a035c8 /apps/files_sharing
parentd6ac1b953161007c9ba503ecf03e5adafc43b68b (diff)
downloadnextcloud-server-e35f6d89a271eede8380e9513811edfe923db4de.tar.gz
nextcloud-server-e35f6d89a271eede8380e9513811edfe923db4de.zip
fix(files_sharing): Add one string for every share type to not assume any language
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue34
1 files changed, 17 insertions, 17 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue
index 8c0bb32f84d..8893ee984a3 100644
--- a/apps/files_sharing/src/views/SharingDetailsTab.vue
+++ b/apps/files_sharing/src/views/SharingDetailsTab.vue
@@ -305,24 +305,24 @@ export default {
computed: {
title() {
- let title = t('files_sharing', 'Share with ')
- if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_USER) {
- title = title + this.share.shareWithDisplayName
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_LINK) {
- title = t('files_sharing', 'Share link')
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GROUP) {
- title += ` (${t('files_sharing', 'group')})`
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_ROOM) {
- title += ` (${t('files_sharing', 'conversation')})`
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE) {
- title += ` (${t('files_sharing', 'remote')})`
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP) {
- title += ` (${t('files_sharing', 'remote group')})`
- } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GUEST) {
- title += ` (${t('files_sharing', 'guest')})`
+ switch (this.share.type) {
+ case this.SHARE_TYPES.SHARE_TYPE_USER:
+ return t('files_sharing', 'Share with {userName}', { userName: this.share.shareWithDisplayName })
+ case this.SHARE_TYPES.SHARE_TYPE_LINK:
+ return t('files_sharing', 'Share link')
+ case this.SHARE_TYPES.SHARE_TYPE_GROUP:
+ return t('files_sharing', 'Share with group')
+ case this.SHARE_TYPES.SHARE_TYPE_ROOM:
+ return t('files_sharing', 'Share in conversation')
+ case this.SHARE_TYPES.SHARE_TYPE_REMOTE:
+ return t('files_sharing', 'Share with remote')
+ case this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP:
+ return t('files_sharing', 'Share with remote group')
+ case this.SHARE_TYPES.SHARE_TYPE_GUEST:
+ return t('files_sharing', 'Share with guest')
+ default:
+ return t('files_sharing', 'Share with')
}
-
- return title
},
/**
* Can the sharee edit the shared file ?