From ab1dc1faa0e532e00332a5069ab7f2407c8501db Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 30 Mar 2015 11:28:05 +0200 Subject: [PATCH] Do not translate format strings --- modules/monitoring/library/Monitoring/Plugin/Perfdata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php index cdafa534c..b1c71cb72 100644 --- a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php +++ b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php @@ -434,7 +434,7 @@ class Perfdata public function formatLabel($html = false) { return sprintf( - $html ? t('%s %s (%s%%)') : t('%s %s (%s%%)'), + $html ? '%s %s (%s%%)' : '%s %s (%s%%)', htmlspecialchars($this->getLabel()), $this->format($this->value), number_format($this->getPercentage(), 2)