From e5ac319cbb85a9e30e6f8bbf07f15f864ba3d6cc Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 12 Nov 2014 08:23:56 +0100 Subject: [PATCH] helpers/MonitoringState: translate 'since' --- .../application/views/helpers/MonitoringState.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/views/helpers/MonitoringState.php b/modules/monitoring/application/views/helpers/MonitoringState.php index 871e8ad08..4db1a7a91 100644 --- a/modules/monitoring/application/views/helpers/MonitoringState.php +++ b/modules/monitoring/application/views/helpers/MonitoringState.php @@ -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'}) + ); } }