summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorValdnet <47037905+Valdnet@users.noreply.github.com>2021-03-20 15:33:29 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-04-12 06:41:46 +0000
commit0c3fcbac91e2102ae7231a63381439baa0636e74 (patch)
treecc60b0e679a6b0368ab3126723a2b601311be17f /apps
parentc2d01da31f16b93139f9e4cabc5736932ab3fc5b (diff)
downloadnextcloud-server-0c3fcbac91e2102ae7231a63381439baa0636e74.tar.gz
nextcloud-server-0c3fcbac91e2102ae7231a63381439baa0636e74.zip
l10n: Add word user in FederatedShareProvider.php
Standardizing text strings with other Nextcloud applications. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/lib/FederatedShareProvider.php2
-rw-r--r--apps/federatedfilesharing/tests/FederatedShareProviderTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/FederatedShareProvider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php
index d77bea1fb54..2d056e1b8b3 100644
--- a/apps/federatedfilesharing/lib/FederatedShareProvider.php
+++ b/apps/federatedfilesharing/lib/FederatedShareProvider.php
@@ -190,7 +190,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 %2$s', [$share->getNode()->getName(), $shareWith]);
+ $message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with user %2$s', [$share->getNode()->getName(), $shareWith]);
$this->logger->debug(sprintf($message, $share->getNode()->getName(), $shareWith), ['app' => 'Federated File Sharing']);
throw new \Exception($message_t);
}
diff --git a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
index 50d861cc5d7..45a2b158a64 100644
--- a/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
+++ b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php
@@ -437,7 +437,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@server.com', $e->getMessage());
+ $this->assertEquals('Sharing myFile failed, because this item is already shared with user user@server.com', $e->getMessage());
}
}