Skip to content

Commit 5517ce1

Browse files
authored
Merge pull request #26509 from nextcloud/backport/26230/stable20
[stable20] l10n: Add word user in FederatedShareProvider.php
2 parents 0cdfea0 + 1e4fc52 commit 5517ce1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/federatedfilesharing/lib/FederatedShareProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function create(IShare $share) {
189189
$alreadySharedGroup = $this->getSharedWith($shareWith, IShare::TYPE_REMOTE_GROUP, $share->getNode(), 1, 0);
190190
if (!empty($alreadyShared) || !empty($alreadySharedGroup)) {
191191
$message = 'Sharing %1$s failed, because this item is already shared with %2$s';
192-
$message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with %2$s', [$share->getNode()->getName(), $shareWith]);
192+
$message_t = $this->l->t('Sharing %1$s failed, because this item is already shared with user %2$s', [$share->getNode()->getName(), $shareWith]);
193193
$this->logger->debug(sprintf($message, $share->getNode()->getName(), $shareWith), ['app' => 'Federated File Sharing']);
194194
throw new \Exception($message_t);
195195
}

apps/federatedfilesharing/tests/FederatedShareProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function testCreateAlreadyShared() {
436436
try {
437437
$this->provider->create($share);
438438
} catch (\Exception $e) {
439-
$this->assertEquals('Sharing myFile failed, because this item is already shared with user@server.com', $e->getMessage());
439+
$this->assertEquals('Sharing myFile failed, because this item is already shared with user user@server.com', $e->getMessage());
440440
}
441441
}
442442

0 commit comments

Comments
 (0)