fix(user_ldap): Do not use variables directly in translation strings

I simply removed translations for exceptions which are never supposed to
 happen apart from API misuse or code bug.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2025-11-27 14:18:39 +01:00 committed by Côme Chilliet
parent 86560b33bc
commit 7eefd725db

View file

@ -104,7 +104,7 @@ class WizardController extends OCSController {
throw new OCSException();
default:
throw new OCSException($this->l->t('Action does not exist'));
throw new OCSException('Action ' . $wizardAction . 'does not exist');
break;
}
} catch (OCSException $e) {
@ -149,7 +149,7 @@ class WizardController extends OCSController {
$mapping = Server::get(GroupMapping::class);
$result = $mapping->clear();
} else {
throw new OCSException($this->l->t('Unsupported subject ' . $subject));
throw new OCSException('Unsupported subject ' . $subject);
}
if (!$result) {