mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Correclty use plural for share exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5a514a9a41
commit
2b8e47dcac
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue