summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/graph.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-21 23:53:25 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-21 23:53:25 +0545
commitf49cd72565cf246c3ce357ad6fc091f198bb811a (patch)
tree4cc7dd5a47ae7612a3fbb1709b0a0edb21d7318b /src/usr/local/www/graph.php
parent321a8b9a7e11d24fdbf10ab10d5ddefba85786e3 (diff)
downloadpfsense-f49cd72565cf246c3ce357ad6fc091f198bb811a.zip
pfsense-f49cd72565cf246c3ce357ad6fc091f198bb811a.tar.gz
Internationalization graph guiconfig head index
Diffstat (limited to 'src/usr/local/www/graph.php')
-rwxr-xr-xsrc/usr/local/www/graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/graph.php b/src/usr/local/www/graph.php
index 0f3f421..4853114 100755
--- a/src/usr/local/www/graph.php
+++ b/src/usr/local/www/graph.php
@@ -115,7 +115,7 @@ $attribs['error']='fill="blue" font-family="Arial" font-size="4"';
$attribs['collect_initial']='fill="gray" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"';
//Error text if we cannot fetch data : depends on which method is used
-$error_text = "Cannot get data about interface " . htmlspecialchars($ifnum);
+$error_text = sprintf(gettext("Cannot get data about interface %s"), htmlspecialchars($ifnum));
$height=100; //SVG internal height : do not modify
$width=200; //SVG internal width : do not modify
@@ -144,7 +144,7 @@ print('<?xml version="1.0" encoding="UTF-8"?>' . "\n");?>
<text id="switch_scale" x="<?=$width*0.55?>" y="11" <?=$attribs['switch_scale']?>><?=gettext("AutoScale"); ?> (<?=$scale_type?>)</text>
<text id="date" x="<?=$width*0.33?>" y="5" <?=$attribs['legend']?>> </text>
<text id="time" x="<?=$width*0.33?>" y="11" <?=$attribs['legend']?>> </text>
- <text id="graphlast" x="<?=$width*0.55?>" y="17" <?=$attribs['legend']?>><?=gettext("Graph shows last"); ?> <?=$time_interval*$nb_plot?> <?=gettext("seconds"); ?></text>
+ <text id="graphlast" x="<?=$width*0.55?>" y="17" <?=$attribs['legend']?>><?=sprintf(gettext("Graph shows last %s seconds"), $time_interval*$nb_plot)?></text>
<polygon id="axis_arrow_x" <?=$attribs['axis']?> points="<?=($width) . "," . ($height)?> <?=($width-2) . "," . ($height-2)?> <?=($width-2) . "," . $height?>"/>
<text id="error" x="<?=$width*0.5?>" y="<?=$height*0.5?>" visibility="hidden" <?=$attribs['error']?> text-anchor="middle"><?=$error_text?></text>
<text id="collect_initial" x="<?=$width*0.5?>" y="<?=$height*0.5?>" visibility="hidden" <?=$attribs['collect_initial']?> text-anchor="middle"><?=gettext("Collecting initial data, please wait"); ?>...</text>
OpenPOWER on IntegriCloud