Translate the "Passwords are enforced..." exception

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-10-12 09:51:04 +02:00
parent e0372e3a43
commit 7e2996f555
No known key found for this signature in database
GPG Key ID: 074BBBCB8DECC9E2
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Manager implements IManager {
if ($password === null) {
// No password is set, check if this is allowed.
if ($this->shareApiLinkEnforcePassword()) {
throw new \InvalidArgumentException('Passwords are enforced for link shares');
throw new \InvalidArgumentException($this->l->t('Passwords are enforced for link shares'));
}
return;