Merge pull request #26508 from nextcloud/backport/26230/stable21
[stable21] l10n: Add word user in FederatedShareProvider.php
This commit is contained in:
commit
dcbe928371
|
@ -190,7 +190,7 @@ class FederatedShareProvider implements IShareProvider {
|
||||||
$alreadySharedGroup = $this->getSharedWith($shareWith, IShare::TYPE_REMOTE_GROUP, $share->getNode(), 1, 0);
|
$alreadySharedGroup = $this->getSharedWith($shareWith, IShare::TYPE_REMOTE_GROUP, $share->getNode(), 1, 0);
|
||||||
if (!empty($alreadyShared) || !empty($alreadySharedGroup)) {
|
if (!empty($alreadyShared) || !empty($alreadySharedGroup)) {
|
||||||
$message = 'Sharing %1$s failed, because this item is already shared with %2$s';
|
$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']);
|
$this->logger->debug(sprintf($message, $share->getNode()->getName(), $shareWith), ['app' => 'Federated File Sharing']);
|
||||||
throw new \Exception($message_t);
|
throw new \Exception($message_t);
|
||||||
}
|
}
|
||||||
|
|
|
@ -437,7 +437,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
|
||||||
try {
|
try {
|
||||||
$this->provider->create($share);
|
$this->provider->create($share);
|
||||||
} catch (\Exception $e) {
|
} 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue