diff options
author | Joas Schilling <coding@schilljs.com> | 2021-03-31 09:56:36 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-04-20 16:43:40 +0200 |
commit | 2b8e47dcace5d329a874c0dfa9a30cfbc551ca80 (patch) | |
tree | c064314575fa679afd9c3c7d17f5de0ed8bde896 /lib/private/Share20 | |
parent | 5a514a9a419f40800e5dc70c33b9de9f33cf7a76 (diff) | |
download | nextcloud-server-2b8e47dcace5d329a874c0dfa9a30cfbc551ca80.tar.gz nextcloud-server-2b8e47dcace5d329a874c0dfa9a30cfbc551ca80.zip |
Correclty use plural for share exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r-- | lib/private/Share20/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 7211a4eb1e8..00020c3a8f6 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -441,7 +441,7 @@ class Manager implements IManager { $date->setTime(0, 0, 0); $date->add(new \DateInterval('P' . $defaultExpireDays . 'D')); if ($date < $expirationDate) { - $message = $this->l->t('Can’t set expiration date more than %s days in the future', [$defaultExpireDays]); + $message = $this->l->n('Can’t set expiration date more than %n day in the future', 'Can’t set expiration date more than %n days in the future', $defaultExpireDays); throw new GenericShareException($message, $message, 404); } } @@ -517,7 +517,7 @@ class Manager implements IManager { $date->setTime(0, 0, 0); $date->add(new \DateInterval('P' . $this->shareApiLinkDefaultExpireDays() . 'D')); if ($date < $expirationDate) { - $message = $this->l->t('Can’t set expiration date more than %s days in the future', [$this->shareApiLinkDefaultExpireDays()]); + $message = $this->l->n('Can’t set expiration date more than %n day in the future', 'Can’t set expiration date more than %n days in the future', $this->shareApiLinkDefaultExpireDays()); throw new GenericShareException($message, $message, 404); } } |