Add proper titles to the multi selection controller tabs

refs #8458
This commit is contained in:
Johannes Meyer 2015-02-23 16:57:32 +01:00
parent ebf8d183a7
commit 77b60588bc
2 changed files with 12 additions and 4 deletions

View File

@ -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);

View File

@ -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);