BackendConfigForm: Translate exceptions shown to the user

This commit is contained in:
Johannes Meyer 2015-07-23 16:18:35 +02:00
parent 4e3da3a6eb
commit 666c401a40

View File

@ -109,7 +109,10 @@ class BackendConfigForm extends ConfigForm
$backendName = $data['name']; $backendName = $data['name'];
if ($this->config->hasSection($backendName)) { 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']); unset($data['name']);