diff options
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php index 567d272..cd93550 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -37,7 +37,7 @@ require_once("filter.inc"); require_once("shaper.inc"); require_once("rrd.inc"); -$pgtitle = array("System","RRD Graphs","Image viewer"); +$pgtitle = array(gettext("System"),gettext("RRD Graphs"),gettext("Image viewer")); if ($_GET['database']) { $curdatabase = $_GET['database']; @@ -188,7 +188,7 @@ $rrdcolors = "./themes/{$g['theme']}/rrdcolors.inc.php"; if(file_exists($rrdcolors)) { include($rrdcolors); } else { - log_error("rrdcolors.inc.php for theme {$g['theme']} does not exist, using defaults!"); + log_error(printf(gettext("rrdcolors.inc.php for theme %s does not exist, using defaults!"),$g['theme'])); $colortrafficup = array("666666", "CCCCCC"); $colortrafficdown = array("990000", "CC0000"); $colorpacketsup = array("666666", "CCCCCC"); @@ -889,7 +889,7 @@ elseif((strstr($curdatabase, "-cellular.rrd")) && (file_exists("$rrddbpath$curda } else { $data = false; - log_error("Sorry we do not have data to graph for $curdatabase"); + log_error(printf(gettext("Sorry we do not have data to graph for %s"),$curdatabase)); } /* check modification time to see if we need to generate image */ @@ -909,16 +909,16 @@ if (file_exists("$rrdtmppath$curdatabase-$curgraph.png")) { usleep(500); } if(($graphcmdreturn <> 0) || (! $data)) { - log_error("Failed to create graph with error code $graphcmdreturn, the error is: $graphcmdoutput"); + log_error(printf(gettext("Failed to create graph with error code %s, the error is: %s"),$graphcmdreturn,$graphcmdoutput)); if(strstr($curdatabase, "queues")) { - log_error("failed to create graph from $rrddbpath$curdatabase, removing database"); + log_error(printf(gettext("failed to create graph from %s%s, removing database"),$rrddbpath,$curdatabase)); exec("/bin/rm -f $rrddbpath$curif$queues"); flush(); usleep(500); enable_rrd_graphing(); } if(strstr($curdatabase, "queuesdrop")) { - log_error("failed to create graph from $rrddbpath$curdatabase, removing database"); + log_error(printf(gettext("failed to create graph from %s%s, removing database"),$rrddbpath,$curdatabase)); exec("/bin/rm -f $rrddbpath$curdatabase"); flush(); usleep(500); |