some small styling and L10n improvements
[php-utility-classes.git] / include / classes / rrdstat.php-class
index eff225551f27124b3ccaeeeff5c31084d0e00552..4eae8b60edad176fa541ddbf4cda5318696b1d32 100644 (file)
@@ -862,7 +862,7 @@ class rrdstat {
             $s_ptitle = $this->config_all[$sname]['page']['title_page'];
           }
           else {
-            $s_ptitle = $sname.(isset($s_psub)?' ('.$s_psub.')':'').' statistics';
+            $s_ptitle = isset($s_psub)?sprintf(dgettext($td, '%s (%s) statistics'), $sname, $s_psub):sprintf(dgettext($td, '%s statistics'), $sname);
           }
           if (!isset($pconf['hide_titles']) || !$pconf['hide_titles']) {
             $out .= '<h2>'.$s_ptitle.'</h2>';