helpers/MonitoringState: translate 'since'

This commit is contained in:
Thomas Gelf 2014-11-12 08:23:56 +01:00
parent 13d3b81728
commit e5ac319cbb
1 changed files with 6 additions and 3 deletions

View File

@ -95,8 +95,11 @@ class Zend_View_Helper_MonitoringState extends Zend_View_Helper_Abstract
*/
public function getStateTitle($object, $type)
{
return strtoupper($this->monitoringState($object, $type))
. ' since '
. date('Y-m-d H:i:s', $object->{$type.'_last_state_change'});
return sprintf(
'%s %s %s',
$this->view->translate(strtoupper($this->monitoringState($object, $type))),
$this->view->translate('since'),
date('Y-m-d H:i:s', $object->{$type.'_last_state_change'})
);
}
}