diff --git a/library/Director/ProvidedHook/Monitoring/HostActions.php b/library/Director/ProvidedHook/Monitoring/HostActions.php index 7f2b670e..6e72daea 100644 --- a/library/Director/ProvidedHook/Monitoring/HostActions.php +++ b/library/Director/ProvidedHook/Monitoring/HostActions.php @@ -31,14 +31,14 @@ class HostActions extends HostActionsHook } $hostname = $host->host_name; if (Util::hasPermission('director/inspect')) { - $actions['Inspect'] = Url::fromPath( + $actions[mt('director', 'Inspect')] = Url::fromPath( 'director/inspect/object', array('type' => 'host', 'plural' => 'hosts', 'name' => $hostname) ); } if (Util::hasPermission('director/hosts') && IcingaHost::exists($hostname, $db)) { - $actions['Modify'] = Url::fromPath( + $actions[mt('director', 'Modify')] = Url::fromPath( 'director/host/edit', array('name' => $hostname) ); diff --git a/library/Director/ProvidedHook/Monitoring/ServiceActions.php b/library/Director/ProvidedHook/Monitoring/ServiceActions.php index 07b25038..f45662b5 100644 --- a/library/Director/ProvidedHook/Monitoring/ServiceActions.php +++ b/library/Director/ProvidedHook/Monitoring/ServiceActions.php @@ -37,7 +37,7 @@ class ServiceActions extends ServiceActionsHook $hostname = $service->host_name; if (Util::hasPermission('director/inspect')) { - $actions['Inspect'] = Url::fromPath('director/inspect/object', [ + $actions[mt('director', 'Inspect')] = Url::fromPath('director/inspect/object', [ 'type' => 'service', 'plural' => 'services', 'name' => sprintf(