mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
InstanceConfigForm: Translate exceptions shown to the user
This commit is contained in:
parent
666c401a40
commit
0448323697
@ -95,7 +95,10 @@ class InstanceConfigForm extends ConfigForm
|
||||
|
||||
$instanceName = $data['name'];
|
||||
if ($this->config->hasSection($instanceName)) {
|
||||
throw new IcingaException('A monitoring instance with the name "%s" does already exist', $instanceName);
|
||||
throw new IcingaException(
|
||||
$this->translate('A monitoring instance with the name "%s" does already exist'),
|
||||
$instanceName
|
||||
);
|
||||
}
|
||||
|
||||
unset($data['name']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user