l10n: Add changes to text string for user

This commit is contained in:
Valdnet 2021-03-22 09:01:45 +01:00 committed by GitHub
parent 4b4b1f6ff1
commit 1dab60a79d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class ShareByMailProvider implements IShareProvider {
$alreadyShared = $this->getSharedWith($shareWith, IShare::TYPE_EMAIL, $share->getNode(), 1, 0); $alreadyShared = $this->getSharedWith($shareWith, IShare::TYPE_EMAIL, $share->getNode(), 1, 0);
if (!empty($alreadyShared)) { if (!empty($alreadyShared)) {
$message = 'Sharing %1$s failed, because this item is already shared with user %2$s'; $message = 'Sharing %1$s failed, because this item is already shared with user %2$s';
$message_t = $this->l->t('Sharing %1$s failed, 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);
} }