diff options
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/l10n/mk.js | 34 | ||||
-rw-r--r-- | apps/files_sharing/l10n/mk.json | 34 | ||||
-rw-r--r-- | apps/files_sharing/l10n/sv.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/l10n/sv.json | 2 | ||||
-rw-r--r-- | apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue | 6 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareControllerTest.php | 4 |
7 files changed, 78 insertions, 8 deletions
diff --git a/apps/files_sharing/l10n/mk.js b/apps/files_sharing/l10n/mk.js index ac6d4bf7d8e..303ae1fbb25 100644 --- a/apps/files_sharing/l10n/mk.js +++ b/apps/files_sharing/l10n/mk.js @@ -65,13 +65,17 @@ OC.L10N.register( "Please specify a file or folder path" : "Изберете датотека или патека до папка", "Wrong path, file/folder does not exist" : "Погрешна патека, датотеката/папката не постои", "Could not create share" : "Неможе да се креира споделување", + "Please specify a valid account to share with" : "Ве молиме наведете валидна сметка за споделување", "Group sharing is disabled by the administrator" : "Споделување во групата е оневозможено од страна на администраторот", "Please specify a valid group" : "Изберете група", "Public link sharing is disabled by the administrator" : "Споделување со јавен линк е оневозможено од страна на администраторот", "Please specify a valid email address" : "Наведете важечка адреса за е-пошта", "Sharing %s sending the password by Nextcloud Talk failed because Nextcloud Talk is not enabled" : "Неуспешно испраќање на лозинка за споделувањето %s преку разговор бидејќи разговорот не е овозможен", "Sharing %1$s failed because the back end does not allow shares from type %2$s" : "Споделувањето на %1$s е неуспешно бидејќи позадината не дозволува споделувања од видот %2$s", + "Please specify a valid federated account ID" : "Ве молиме наведете важечки ID на федерирана сметка", "Please specify a valid federated group ID" : "Внесете валидно федерално групно ИД", + "You cannot share to a Team if the app is not enabled" : "Не можете да споделувате со тим ако апликацијата не е овозможена", + "Please specify a valid team" : "Ве молиме наведете валиден тим", "Sharing %s failed because the back end does not support room shares" : "Споделувањето на %s е неуспешно бидејќи позадината не дозволува споделувања во соби со разговори", "Unknown share type" : "Непознат вид на споделување", "Not a directory" : "Не е директориум", @@ -126,7 +130,9 @@ OC.L10N.register( "Enter a valid password" : "Внесете валидна лозинка", "Generate a new password" : "Генерирај нова лозинка", "Link copied to clipboard" : "Линкот е копиран во клипборд", + "Email already added" : "Е-поштата е веќе додадена", "Invalid email address" : "Неправилна е-пошта адреса", + "_The following email address is not valid: {emails}_::_The following email addresses are not valid: {emails}_" : ["Адресата на е-пошта не е валидна: {emails}","Следниве адреси на е-пошта не се валидни: {emails}"], "_{count} email address already added_::_{count} email addresses already added_" : ["{count} е-пошта адреса е веќе додадена","{count} е-пошта адреси се веќе додадени"], "_{count} email address added_::_{count} email addresses added_" : ["{count} е-пошта адреса е додадена","{count} е-пошта адреси се додадени"], "You can now share the link below to allow people to upload files to your directory." : "Испратете го линкот за да им дозволите на луѓето да прикачат датотеки.", @@ -200,6 +206,7 @@ OC.L10N.register( "Share link ({label})" : "Сподели линк ({label})", "Mail share" : "Споделување со е-пошта", "Share link ({index})" : "Сподели линк ({index})", + "Create public link" : "Креирај јавен линк", "Actions for \"{title}\"" : "Акции за \"{title}\"", "Copy public link of \"{title}\" to clipboard" : "Копирај јавен линк во клипборд за \"{title}\"", "Error, please enter proper password and/or expiration date" : "Грешка, внесете лозинка и/или рок на траење", @@ -234,6 +241,8 @@ OC.L10N.register( "Team" : "Тим", "Talk conversation" : "Talk раговор", "on {server}" : "на {server}", + "Enter external recipients" : "Внесете надворешни примачи", + "Search for internal recipients" : "Пребарај внатрешни примачи", "Note from" : "Белешка од", "Note:" : "Белешка:", "File drop" : "Повлечи и прикачи", @@ -252,6 +261,7 @@ OC.L10N.register( "Share with group" : "Сподели со група", "Share in conversation" : "Сподели во разговор", "Share with {user} on remote server {server}" : "Споделено со {user} на далечен сервер {server}", + "Share with remote group" : "Сподели со оддалечена група", "Share with guest" : "Сподели со гости", "Update share" : "Ажурирај споделување", "Save share" : "Зачувај споделување", @@ -260,6 +270,7 @@ OC.L10N.register( "Edit" : "Уреди", "Share" : "Сподели", "Delete" : "Избриши", + "Password field cannot be empty" : "Полето за лозинка неможе да биде празно", "Replace current password" : "Заменете ја тековната лозинка", "Failed to generate a new token" : "Неуспешно генерирање нов токен", "Allow upload and editing" : "Дозволи прикачување и уредување", @@ -281,16 +292,29 @@ OC.L10N.register( "Allow download and sync" : "Дозволете преземање и синхронизирање", "Note to recipient" : "Белешка до примачот", "Enter a note for the share recipient" : "Внесете белешка до примачот на споделуваето", + "Show files in grid view" : "Прикажи ги датотеките во поглед во мрежа", "Delete share" : "Избриши споделување", "Others with access" : "Други со пристап", + "No other accounts with access found" : "Не се најдени други сметки со пристап", "Toggle list of others with access to this directory" : "Изберете листата со други корисници со пристап до овој директориум", "Toggle list of others with access to this file" : "Изберете листата со други корисници со пристап до оваа датотека", "Unable to fetch inherited shares" : "Не можам да ги преземам наследените споделувања", "Shares" : "Споделувања", + "Use this method to share files with individuals or teams within your organization. If the recipient already has access to the share but cannot locate it, you can send them the internal share link for easy access." : "Користете го овој метод за споделување датотеки со поединци или тимови во вашата организација. Ако примачот веќе има пристап до споделувањето, но не може да го лоцира, можете да му ја испратите внатрешната врска за споделување за лесен пристап.", + "Use this method to share files with individuals or organizations outside your organization. Files and folders can be shared via public share links and email addresses. You can also share to other Nextcloud accounts hosted on different instances using their federated cloud ID." : "Користете го овој метод за споделување датотеки со поединци или организации надвор од вашата организација. Датотеките и папките може да се споделуваат преку јавни линкови и адреси на е-пошта. Можете исто така да споделувате со други сметки на Nextcloud хостирани на различни истанци користејќи го нивниот федеративен ID.", + "Shares that are not part of the internal or external shares. This can be shares from apps or other sources." : "Споделувања кои не се дел од внатрешни или надворешни споделувања. Ова може да биде споделување од апликации или други извори.", "Unable to load the shares list" : "Неможе да се вчита листата на споделувања", "Expires {relativetime}" : "Истекува {relativetime}", "this share just expired." : "ова споделување штотуку истече.", "Shared with you by {owner}" : "Споделено со Вас од {owner}", + "Internal shares" : "Внатрешни споделувања", + "Internal shares explanation" : "Објаснување за внатрешни споделувања", + "Share with accounts and teams" : "Сподели со корисници и тимови", + "External shares" : "Надворешни споделувања", + "External shares explanation" : "Објаснување за надворешни споделувања", + "Email, federated cloud id" : "Е-пошта, федерален ИД", + "Additional shares" : "Дополнителни споделувања", + "Additional shares explanation" : "Објаснување за додатни споделувања", "Link to a file" : "Линк до датотеката", "_Accept share_::_Accept shares_" : ["Прифати го споделувањето","Прифати ги споделувањата"], "Open in Files" : "Отвори во датотеките", @@ -340,8 +364,12 @@ OC.L10N.register( "Error updating the share" : "Грешка при ажурирање на споделувањето", "File \"{path}\" has been unshared" : "Датотеката \"{path}\" повеќе не се споделува", "Folder \"{path}\" has been unshared" : "Папката \"{path}\" повеќе не се споделува", + "Could not update share" : "Неможе да се ажурира споделувањето", + "Share saved" : "Споделувањето е зачувано", "Share label saved" : "Ознаката е зачувана", + "Share note for recipient saved" : "Белешката на споделувањето до примачот е зачувана", "Share password saved" : "Лозинката е зачувана", + "Share permissions saved" : "Дозволите за споделување се зачувани", "Shared by" : "Споделено од", "Shared with" : "Споделено со", "Password created successfully" : "Успрешно е креирана лозинка", @@ -376,6 +404,10 @@ OC.L10N.register( "Download all files" : "Преземи ги сите датотеки", "Search for share recipients" : "Пребарај за примачи на споделувањето", "No recommendations. Start typing." : "Нема препораки. Започнете со пишување.", - "Allow download" : "Дозволи преземање" + "Password field can't be empty" : "Полето за лозинка неможе да биде празно", + "Allow download" : "Дозволи преземање", + "You are not allowed to edit link shares that you don't own" : "Не ви е дозволено да ги уредувате споделувањата кој не се ваши", + "_1 email address already added_::_{count} email addresses already added_" : ["1 е-пошта адреса е веќе додадена","{count} е-пошта адреси се веќе додадени"], + "_1 email address added_::_{count} email addresses added_" : ["1 е-пошта адреса е додадена","{count} е-пошта адреси се додадени"] }, "nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;"); diff --git a/apps/files_sharing/l10n/mk.json b/apps/files_sharing/l10n/mk.json index 7bdcd58bca9..2e65dc61c7d 100644 --- a/apps/files_sharing/l10n/mk.json +++ b/apps/files_sharing/l10n/mk.json @@ -63,13 +63,17 @@ "Please specify a file or folder path" : "Изберете датотека или патека до папка", "Wrong path, file/folder does not exist" : "Погрешна патека, датотеката/папката не постои", "Could not create share" : "Неможе да се креира споделување", + "Please specify a valid account to share with" : "Ве молиме наведете валидна сметка за споделување", "Group sharing is disabled by the administrator" : "Споделување во групата е оневозможено од страна на администраторот", "Please specify a valid group" : "Изберете група", "Public link sharing is disabled by the administrator" : "Споделување со јавен линк е оневозможено од страна на администраторот", "Please specify a valid email address" : "Наведете важечка адреса за е-пошта", "Sharing %s sending the password by Nextcloud Talk failed because Nextcloud Talk is not enabled" : "Неуспешно испраќање на лозинка за споделувањето %s преку разговор бидејќи разговорот не е овозможен", "Sharing %1$s failed because the back end does not allow shares from type %2$s" : "Споделувањето на %1$s е неуспешно бидејќи позадината не дозволува споделувања од видот %2$s", + "Please specify a valid federated account ID" : "Ве молиме наведете важечки ID на федерирана сметка", "Please specify a valid federated group ID" : "Внесете валидно федерално групно ИД", + "You cannot share to a Team if the app is not enabled" : "Не можете да споделувате со тим ако апликацијата не е овозможена", + "Please specify a valid team" : "Ве молиме наведете валиден тим", "Sharing %s failed because the back end does not support room shares" : "Споделувањето на %s е неуспешно бидејќи позадината не дозволува споделувања во соби со разговори", "Unknown share type" : "Непознат вид на споделување", "Not a directory" : "Не е директориум", @@ -124,7 +128,9 @@ "Enter a valid password" : "Внесете валидна лозинка", "Generate a new password" : "Генерирај нова лозинка", "Link copied to clipboard" : "Линкот е копиран во клипборд", + "Email already added" : "Е-поштата е веќе додадена", "Invalid email address" : "Неправилна е-пошта адреса", + "_The following email address is not valid: {emails}_::_The following email addresses are not valid: {emails}_" : ["Адресата на е-пошта не е валидна: {emails}","Следниве адреси на е-пошта не се валидни: {emails}"], "_{count} email address already added_::_{count} email addresses already added_" : ["{count} е-пошта адреса е веќе додадена","{count} е-пошта адреси се веќе додадени"], "_{count} email address added_::_{count} email addresses added_" : ["{count} е-пошта адреса е додадена","{count} е-пошта адреси се додадени"], "You can now share the link below to allow people to upload files to your directory." : "Испратете го линкот за да им дозволите на луѓето да прикачат датотеки.", @@ -198,6 +204,7 @@ "Share link ({label})" : "Сподели линк ({label})", "Mail share" : "Споделување со е-пошта", "Share link ({index})" : "Сподели линк ({index})", + "Create public link" : "Креирај јавен линк", "Actions for \"{title}\"" : "Акции за \"{title}\"", "Copy public link of \"{title}\" to clipboard" : "Копирај јавен линк во клипборд за \"{title}\"", "Error, please enter proper password and/or expiration date" : "Грешка, внесете лозинка и/или рок на траење", @@ -232,6 +239,8 @@ "Team" : "Тим", "Talk conversation" : "Talk раговор", "on {server}" : "на {server}", + "Enter external recipients" : "Внесете надворешни примачи", + "Search for internal recipients" : "Пребарај внатрешни примачи", "Note from" : "Белешка од", "Note:" : "Белешка:", "File drop" : "Повлечи и прикачи", @@ -250,6 +259,7 @@ "Share with group" : "Сподели со група", "Share in conversation" : "Сподели во разговор", "Share with {user} on remote server {server}" : "Споделено со {user} на далечен сервер {server}", + "Share with remote group" : "Сподели со оддалечена група", "Share with guest" : "Сподели со гости", "Update share" : "Ажурирај споделување", "Save share" : "Зачувај споделување", @@ -258,6 +268,7 @@ "Edit" : "Уреди", "Share" : "Сподели", "Delete" : "Избриши", + "Password field cannot be empty" : "Полето за лозинка неможе да биде празно", "Replace current password" : "Заменете ја тековната лозинка", "Failed to generate a new token" : "Неуспешно генерирање нов токен", "Allow upload and editing" : "Дозволи прикачување и уредување", @@ -279,16 +290,29 @@ "Allow download and sync" : "Дозволете преземање и синхронизирање", "Note to recipient" : "Белешка до примачот", "Enter a note for the share recipient" : "Внесете белешка до примачот на споделуваето", + "Show files in grid view" : "Прикажи ги датотеките во поглед во мрежа", "Delete share" : "Избриши споделување", "Others with access" : "Други со пристап", + "No other accounts with access found" : "Не се најдени други сметки со пристап", "Toggle list of others with access to this directory" : "Изберете листата со други корисници со пристап до овој директориум", "Toggle list of others with access to this file" : "Изберете листата со други корисници со пристап до оваа датотека", "Unable to fetch inherited shares" : "Не можам да ги преземам наследените споделувања", "Shares" : "Споделувања", + "Use this method to share files with individuals or teams within your organization. If the recipient already has access to the share but cannot locate it, you can send them the internal share link for easy access." : "Користете го овој метод за споделување датотеки со поединци или тимови во вашата организација. Ако примачот веќе има пристап до споделувањето, но не може да го лоцира, можете да му ја испратите внатрешната врска за споделување за лесен пристап.", + "Use this method to share files with individuals or organizations outside your organization. Files and folders can be shared via public share links and email addresses. You can also share to other Nextcloud accounts hosted on different instances using their federated cloud ID." : "Користете го овој метод за споделување датотеки со поединци или организации надвор од вашата организација. Датотеките и папките може да се споделуваат преку јавни линкови и адреси на е-пошта. Можете исто така да споделувате со други сметки на Nextcloud хостирани на различни истанци користејќи го нивниот федеративен ID.", + "Shares that are not part of the internal or external shares. This can be shares from apps or other sources." : "Споделувања кои не се дел од внатрешни или надворешни споделувања. Ова може да биде споделување од апликации или други извори.", "Unable to load the shares list" : "Неможе да се вчита листата на споделувања", "Expires {relativetime}" : "Истекува {relativetime}", "this share just expired." : "ова споделување штотуку истече.", "Shared with you by {owner}" : "Споделено со Вас од {owner}", + "Internal shares" : "Внатрешни споделувања", + "Internal shares explanation" : "Објаснување за внатрешни споделувања", + "Share with accounts and teams" : "Сподели со корисници и тимови", + "External shares" : "Надворешни споделувања", + "External shares explanation" : "Објаснување за надворешни споделувања", + "Email, federated cloud id" : "Е-пошта, федерален ИД", + "Additional shares" : "Дополнителни споделувања", + "Additional shares explanation" : "Објаснување за додатни споделувања", "Link to a file" : "Линк до датотеката", "_Accept share_::_Accept shares_" : ["Прифати го споделувањето","Прифати ги споделувањата"], "Open in Files" : "Отвори во датотеките", @@ -338,8 +362,12 @@ "Error updating the share" : "Грешка при ажурирање на споделувањето", "File \"{path}\" has been unshared" : "Датотеката \"{path}\" повеќе не се споделува", "Folder \"{path}\" has been unshared" : "Папката \"{path}\" повеќе не се споделува", + "Could not update share" : "Неможе да се ажурира споделувањето", + "Share saved" : "Споделувањето е зачувано", "Share label saved" : "Ознаката е зачувана", + "Share note for recipient saved" : "Белешката на споделувањето до примачот е зачувана", "Share password saved" : "Лозинката е зачувана", + "Share permissions saved" : "Дозволите за споделување се зачувани", "Shared by" : "Споделено од", "Shared with" : "Споделено со", "Password created successfully" : "Успрешно е креирана лозинка", @@ -374,6 +402,10 @@ "Download all files" : "Преземи ги сите датотеки", "Search for share recipients" : "Пребарај за примачи на споделувањето", "No recommendations. Start typing." : "Нема препораки. Започнете со пишување.", - "Allow download" : "Дозволи преземање" + "Password field can't be empty" : "Полето за лозинка неможе да биде празно", + "Allow download" : "Дозволи преземање", + "You are not allowed to edit link shares that you don't own" : "Не ви е дозволено да ги уредувате споделувањата кој не се ваши", + "_1 email address already added_::_{count} email addresses already added_" : ["1 е-пошта адреса е веќе додадена","{count} е-пошта адреси се веќе додадени"], + "_1 email address added_::_{count} email addresses added_" : ["1 е-пошта адреса е додадена","{count} е-пошта адреси се додадени"] },"pluralForm" :"nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;" }
\ No newline at end of file diff --git a/apps/files_sharing/l10n/sv.js b/apps/files_sharing/l10n/sv.js index 06b5b2a3912..d49eb79716f 100644 --- a/apps/files_sharing/l10n/sv.js +++ b/apps/files_sharing/l10n/sv.js @@ -254,7 +254,7 @@ OC.L10N.register( "Search for internal recipients" : "Sök efter interna mottagare", "Note from" : "Anteckning från", "Note:" : "Notering:", - "File drop" : "Göm fillista", + "File drop" : "Filinkast", "Upload files to {foldername}." : "Ladda upp filer till {foldername}.", "By uploading files, you agree to the terms of service." : "Genom att ladda upp filer godkänner du användarvillkoren.", "View terms of service" : "Visa användarvillkoren", diff --git a/apps/files_sharing/l10n/sv.json b/apps/files_sharing/l10n/sv.json index afbe5ebf17f..3260d534275 100644 --- a/apps/files_sharing/l10n/sv.json +++ b/apps/files_sharing/l10n/sv.json @@ -252,7 +252,7 @@ "Search for internal recipients" : "Sök efter interna mottagare", "Note from" : "Anteckning från", "Note:" : "Notering:", - "File drop" : "Göm fillista", + "File drop" : "Filinkast", "Upload files to {foldername}." : "Ladda upp filer till {foldername}.", "By uploading files, you agree to the terms of service." : "Genom att ladda upp filer godkänner du användarvillkoren.", "View terms of service" : "Visa användarvillkoren", diff --git a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php index caadd89b46c..686ba32fd49 100644 --- a/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php +++ b/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php @@ -70,8 +70,10 @@ class DefaultPublicShareTemplateProvider implements IPublicShareTemplateProvider $ownerNameProperty = $ownerAccount->getProperty(IAccountManager::PROPERTY_DISPLAYNAME); if ($ownerNameProperty->getScope() === IAccountManager::SCOPE_PUBLISHED) { - $ownerName = $owner->getDisplayName(); $ownerId = $owner->getUID(); + $ownerName = $owner->getDisplayName(); + $this->initialState->provideInitialState('owner', $ownerId); + $this->initialState->provideInitialState('ownerDisplayName', $ownerName); } } diff --git a/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue b/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue index 31b66741698..ec6348606fb 100644 --- a/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue +++ b/apps/files_sharing/src/views/FilesHeaderNoteToRecipient.vue @@ -6,7 +6,7 @@ <NcNoteCard v-if="note.length > 0" class="note-to-recipient" type="info"> - <p v-if="user" class="note-to-recipient__heading"> + <p v-if="displayName" class="note-to-recipient__heading"> {{ t('files_sharing', 'Note from') }} <NcUserBubble :user="user.id" :display-name="user.displayName" /> </p> @@ -28,13 +28,13 @@ import NcUserBubble from '@nextcloud/vue/components/NcUserBubble' const folder = ref<Folder>() const note = computed<string>(() => folder.value?.attributes.note ?? '') +const displayName = computed<string>(() => folder.value?.attributes['owner-display-name'] ?? '') const user = computed(() => { const id = folder.value?.owner - const displayName = folder.value?.attributes?.['owner-display-name'] if (id !== getCurrentUser()?.uid) { return { id, - displayName, + displayName: displayName.value, } } return null diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php index 0ed43da52cd..58cbb4e0b82 100644 --- a/apps/files_sharing/tests/Controller/ShareControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php @@ -330,6 +330,8 @@ class ShareControllerTest extends \Test\TestCase { 'filename' => $filename, 'view' => $view, 'fileId' => 111, + 'owner' => 'ownerUID', + 'ownerDisplayName' => 'ownerDisplay', ]; $response = $this->shareController->showShare(); @@ -470,6 +472,8 @@ class ShareControllerTest extends \Test\TestCase { 'filename' => $filename, 'view' => 'public-file-drop', 'disclaimer' => 'My disclaimer text', + 'owner' => 'ownerUID', + 'ownerDisplayName' => 'ownerDisplay', ]; $response = $this->shareController->showShare(); |