BackendConfigForm: Translate exceptions shown to the user
This commit is contained in:
parent
4e3da3a6eb
commit
666c401a40
|
@ -109,7 +109,10 @@ class BackendConfigForm extends ConfigForm
|
|||
|
||||
$backendName = $data['name'];
|
||||
if ($this->config->hasSection($backendName)) {
|
||||
throw new IcingaException('A monitoring backend with the name "%s" does already exist', $backendName);
|
||||
throw new IcingaException(
|
||||
$this->translate('A monitoring backend with the name "%s" does already exist'),
|
||||
$backendName
|
||||
);
|
||||
}
|
||||
|
||||
unset($data['name']);
|
||||
|
|
Loading…
Reference in New Issue