Translate the "Passwords are enforced..." exception
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
e0372e3a43
commit
7e2996f555
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue