From 77b60588bc12f66b24df1e550946a474cc134d69 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 16:57:32 +0100 Subject: [PATCH] Add proper titles to the multi selection controller tabs refs #8458 --- .../application/controllers/HostsController.php | 8 ++++++-- .../application/controllers/ServicesController.php | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/controllers/HostsController.php b/modules/monitoring/application/controllers/HostsController.php index c2661d01f..de1f063ac 100644 --- a/modules/monitoring/application/controllers/HostsController.php +++ b/modules/monitoring/application/controllers/HostsController.php @@ -72,8 +72,12 @@ class Monitoring_HostsController extends Controller $this->getTabs()->add( 'show', array( - 'title' => mt('monitoring', 'Hosts'), - 'url' => Url::fromRequest() + 'title' => sprintf( + $this->translate('Show summarized information for %u hosts'), + count($this->hostList) + ), + 'label' => $this->translate('Hosts'), + 'url' => Url::fromRequest() ) )->activate('show'); $this->setAutorefreshInterval(15); diff --git a/modules/monitoring/application/controllers/ServicesController.php b/modules/monitoring/application/controllers/ServicesController.php index 7d052e067..a74b61074 100644 --- a/modules/monitoring/application/controllers/ServicesController.php +++ b/modules/monitoring/application/controllers/ServicesController.php @@ -93,8 +93,12 @@ class Monitoring_ServicesController extends Controller $this->getTabs()->add( 'show', array( - 'title' => mt('monitoring', 'Services'), - 'url' => Url::fromRequest() + 'title' => sprintf( + $this->translate('Show summarized information for %u services'), + count($this->serviceList) + ), + 'label' => $this->translate('Services'), + 'url' => Url::fromRequest() ) )->activate('show'); $this->setAutorefreshInterval(15);