diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-13 21:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 21:28:00 +0100 |
commit | 6f1d9eb11880efb900370f1e6857f05dbef5f84a (patch) | |
tree | 906494fac943bd6ae4ecdf1e5460ee590e98afb1 /apps/federatedfilesharing | |
parent | b63abdae8c1708693addf1dc3b2f862131e0299d (diff) | |
parent | 524ed97d621ded1aafa0f2f92670765af22ba55f (diff) | |
download | nextcloud-server-6f1d9eb11880efb900370f1e6857f05dbef5f84a.tar.gz nextcloud-server-6f1d9eb11880efb900370f1e6857f05dbef5f84a.zip |
Merge pull request #34178 from nextcloud/replace-user-to-account-or-person
Rename users to account or person
Diffstat (limited to 'apps/federatedfilesharing')
3 files changed, 12 insertions, 12 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php index 479b636fd40..69813289cae 100644 --- a/apps/federatedfilesharing/lib/FederatedShareProvider.php +++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php @@ -132,7 +132,7 @@ class FederatedShareProvider implements IShareProvider { $alreadySharedGroup = $this->getSharedWith($shareWith, IShare::TYPE_REMOTE_GROUP, $share->getNode(), 1, 0); if (!empty($alreadyShared) || !empty($alreadySharedGroup)) { $message = 'Sharing %1$s failed, because this item is already shared with %2$s'; - $message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with user %2$s', [$share->getNode()->getName(), $shareWith]); + $message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with the account %2$s', [$share->getNode()->getName(), $shareWith]); $this->logger->debug(sprintf($message, $share->getNode()->getName(), $shareWith), ['app' => 'Federated File Sharing']); throw new \Exception($message_t); } @@ -143,8 +143,8 @@ class FederatedShareProvider implements IShareProvider { $currentServer = $this->addressHandler->generateRemoteURL(); $currentUser = $sharedBy; if ($this->addressHandler->compareAddresses($cloudId->getUser(), $cloudId->getRemote(), $currentUser, $currentServer)) { - $message = 'Not allowed to create a federated share with the same user.'; - $message_t = $this->l->t('Not allowed to create a federated share with the same user'); + $message = 'Not allowed to create a federated share to the same account.'; + $message_t = $this->l->t('Not allowed to create a federated share to the same account'); $this->logger->debug($message, ['app' => 'Federated File Sharing']); throw new \Exception($message_t); } diff --git a/apps/federatedfilesharing/src/components/AdminSettings.vue b/apps/federatedfilesharing/src/components/AdminSettings.vue index 484dd9a519e..f9de2e0858c 100644 --- a/apps/federatedfilesharing/src/components/AdminSettings.vue +++ b/apps/federatedfilesharing/src/components/AdminSettings.vue @@ -22,44 +22,44 @@ <template> <NcSettingsSection :name="t('federatedfilesharing', 'Federated Cloud Sharing')" - :description="t('federatedfilesharing', 'Adjust how people can share between servers. This includes shares between users on this server as well if they are using federated sharing.')" + :description="t('federatedfilesharing', 'Adjust how people can share between servers. This includes shares between people on this server as well if they are using federated sharing.')" :doc-url="sharingFederatedDocUrl"> <NcCheckboxRadioSwitch type="switch" :checked.sync="outgoingServer2serverShareEnabled" @update:checked="update('outgoing_server2server_share_enabled', outgoingServer2serverShareEnabled)"> - {{ t('federatedfilesharing', 'Allow users on this server to send shares to other servers (this option also allows WebDAV access to public shares)') }} + {{ t('federatedfilesharing', 'Allow people on this server to send shares to other servers (this option also allows WebDAV access to public shares)') }} </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch type="switch" :checked.sync="incomingServer2serverShareEnabled" @update:checked="update('incoming_server2server_share_enabled', incomingServer2serverShareEnabled)"> - {{ t('federatedfilesharing', 'Allow users on this server to receive shares from other servers') }} + {{ t('federatedfilesharing', 'Allow people on this server to receive shares from other servers') }} </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch v-if="federatedGroupSharingSupported" type="switch" :checked.sync="outgoingServer2serverGroupShareEnabled" @update:checked="update('outgoing_server2server_group_share_enabled', outgoingServer2serverGroupShareEnabled)"> - {{ t('federatedfilesharing', 'Allow users on this server to send shares to groups on other servers') }} + {{ t('federatedfilesharing', 'Allow people on this server to send shares to groups on other servers') }} </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch v-if="federatedGroupSharingSupported" type="switch" :checked.sync="incomingServer2serverGroupShareEnabled" @update:checked="update('incoming_server2server_group_share_enabled', incomingServer2serverGroupShareEnabled)"> - {{ t('federatedfilesharing', 'Allow users on this server to receive group shares from other servers') }} + {{ t('federatedfilesharing', 'Allow people on this server to receive group shares from other servers') }} </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch type="switch" :checked.sync="lookupServerEnabled" @update:checked="update('lookupServerEnabled', lookupServerEnabled)"> - {{ t('federatedfilesharing', 'Search global and public address book for users') }} + {{ t('federatedfilesharing', 'Search global and public address book for people') }} </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch type="switch" :checked.sync="lookupServerUploadEnabled" @update:checked="update('lookupServerUploadEnabled', lookupServerUploadEnabled)"> - {{ t('federatedfilesharing', 'Allow users to publish their data to a global and public address book') }} + {{ t('federatedfilesharing', 'Allow people to publish their data to a global and public address book') }} </NcCheckboxRadioSwitch> </NcSettingsSection> </template> diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php index 744cb769c54..6f0cb93c4a9 100644 --- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php +++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php @@ -397,7 +397,7 @@ class FederatedShareProviderTest extends \Test\TestCase { $share = $this->provider->create($share); $this->fail(); } catch (\Exception $e) { - $this->assertEquals('Not allowed to create a federated share with the same user', $e->getMessage()); + $this->assertEquals('Not allowed to create a federated share to the same account', $e->getMessage()); } $qb = $this->connection->getQueryBuilder(); @@ -459,7 +459,7 @@ class FederatedShareProviderTest extends \Test\TestCase { try { $this->provider->create($share); } catch (\Exception $e) { - $this->assertEquals('Sharing myFile failed, because this item is already shared with user user@server.com', $e->getMessage()); + $this->assertEquals('Sharing myFile failed, because this item is already shared with the account user@server.com', $e->getMessage()); } } |