]> source.dussan.org Git - nextcloud-server.git/commitdiff
l10n: Add word user in FederatedShareProvider.php 26509/head
authorValdnet <47037905+Valdnet@users.noreply.github.com>
Sat, 20 Mar 2021 14:33:29 +0000 (15:33 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 12 Apr 2021 06:43:54 +0000 (06:43 +0000)
Standardizing text strings with other Nextcloud applications.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/federatedfilesharing/lib/FederatedShareProvider.php
apps/federatedfilesharing/tests/FederatedShareProviderTest.php

index 13348a1d7bd816eef2a90484030622ce40194879..dfcc7175545583650adfdfc643e3088fd5004dda 100644 (file)
@@ -189,7 +189,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);
                }
index 7a2fd5f006f23dcfd3e188658913c8712369dfa4..e71e4215b937e745201d8e15c7f74087e75c6934 100644 (file)
@@ -436,7 +436,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());
                }
        }