mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Use View::translate() instead of t() in the Perfdata view helper
refs #7330
This commit is contained in:
parent
83408ee21b
commit
8c46e5e285
@ -26,7 +26,15 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||||||
$table = array(
|
$table = array(
|
||||||
'<td><b>' . implode(
|
'<td><b>' . implode(
|
||||||
'</b></td><td><b>',
|
'</b></td><td><b>',
|
||||||
array('', t('Label'), t('Value'), t('Min'), t('Max'), t('Warning'), t('Critical'))
|
array(
|
||||||
|
'',
|
||||||
|
$this->view->translate('Label'),
|
||||||
|
$this->view->translate('Value'),
|
||||||
|
$this->view->translate('Min'),
|
||||||
|
$this->view->translate('Max'),
|
||||||
|
$this->view->translate('Warning'),
|
||||||
|
$this->view->translate('Critical')
|
||||||
|
)
|
||||||
) . '<b></td>'
|
) . '<b></td>'
|
||||||
);
|
);
|
||||||
foreach ($pieChartData as $perfdata) {
|
foreach ($pieChartData as $perfdata) {
|
||||||
@ -61,7 +69,7 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||||||
$table = array_slice ($table, 0, $limit);
|
$table = array_slice ($table, 0, $limit);
|
||||||
$results = array_slice ($results, 0, $limit);
|
$results = array_slice ($results, 0, $limit);
|
||||||
if ($count > $limit) {
|
if ($count > $limit) {
|
||||||
$mess = sprintf(t('%d more ...'), $count - $limit);
|
$mess = sprintf($this->view->translate('%d more ...'), $count - $limit);
|
||||||
$results[] = '<span title="' . $mess . '">...</span>';
|
$results[] = '<span title="' . $mess . '">...</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user