NavigationConfigForm: Translate non-translated error messages
refs #5600
This commit is contained in:
parent
3f22469c18
commit
e8f93e8ea1
|
@ -464,7 +464,10 @@ class NavigationConfigForm extends ConfigForm
|
|||
$children = $this->getFlattenedChildren($name);
|
||||
if (! empty($children)) {
|
||||
throw new IcingaException(
|
||||
'Unable to delete navigation item "%s". There are other items dependent from it: %s',
|
||||
$this->translate(
|
||||
'Unable to delete navigation item "%s". There'
|
||||
. ' are other items dependent from it: %s'
|
||||
),
|
||||
$name,
|
||||
join(', ', $children)
|
||||
);
|
||||
|
@ -500,8 +503,10 @@ class NavigationConfigForm extends ConfigForm
|
|||
|
||||
if ($parent && $this->hasBeenShared($parent)) {
|
||||
throw new IcingaException(
|
||||
'Unable to unshare navigation item "%s". It is dependent from item "%s".'
|
||||
. ' Dependent items can only be unshared by unsharing their parent',
|
||||
$this->translate(
|
||||
'Unable to unshare navigation item "%s". It is dependent from item "%s".'
|
||||
. ' Dependent items can only be unshared by unsharing their parent'
|
||||
),
|
||||
$name,
|
||||
$parent
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue