diff options
author | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-22 09:53:23 -0300 |
---|---|---|
committer | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-07-22 10:10:32 -0300 |
commit | 51d4cad7817092c96fb44d24585e97688380a746 (patch) | |
tree | 876a952cc5744b365b59c56a2b19eaeaa08156ac /usr/local | |
parent | 10232193692322d272e98294c1427b63b8e58d72 (diff) | |
download | pfsense-51d4cad7817092c96fb44d24585e97688380a746.zip pfsense-51d4cad7817092c96fb44d24585e97688380a746.tar.gz |
Implement gettext() calls on status_rrd_graph_img.php
Diffstat (limited to 'usr/local')
-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); |