Skip to content

Commit

Permalink
helpers/MonitoringState: translate 'since'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Gelf committed Nov 12, 2014
1 parent 13d3b81 commit e5ac319
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -95,8 +95,11 @@ public function getStateFlags($object, $type = 'service')
*/
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'})
);
}
}

0 comments on commit e5ac319

Please sign in to comment.