Commit a230c799 authored by Ad Schellevis's avatar Ad Schellevis

Merge pull request #610 from fabianfrz/translation

Translation
parents d21be1c5 4739172d
...@@ -348,7 +348,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl ...@@ -348,7 +348,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
<div class="col-xs-12"> <div class="col-xs-12">
<p><span class="text-danger"><strong><?=gettext("Note"); ?>:</strong></span> <?=gettext("the"); ?> <a href="http://www.adobe.com/svg/viewer/install/" target="_blank"><?=gettext("Adobe SVG Viewer"); ?></a>, <?=gettext("Firefox 1.5 or later or other browser supporting SVG is required to view the graph"); ?>.</p> <p><?=gettext("Note:"); ?> <?=sprintf(gettext('The %sAdobe SVG Viewer%s, Firefox 1.5 or later or other browser supporting SVG is required to view the graph.'),'<a href="http://www.adobe.com/svg/viewer/install/" target="_blank">','</a>'); ?></p>
</div> </div>
</div> </div>
</section> </section>
......
...@@ -115,33 +115,33 @@ if (isset($a_config["scale_type"])) { ...@@ -115,33 +115,33 @@ if (isset($a_config["scale_type"])) {
</td> </td>
</tr> </tr>
<?php <?php
$scale_type_up="checked=\"checked\""; $scale_type_up='checked="checked"';
$scale_type_follow=""; $scale_type_follow="";
if (isset($config["widgets"]["trafficgraphs"]["scale_type"])) { if (isset($config["widgets"]["trafficgraphs"]["scale_type"])) {
$selected_radio = $config["widgets"]["trafficgraphs"]["scale_type"]; $selected_radio = $config["widgets"]["trafficgraphs"]["scale_type"];
if ($selected_radio == "up") { if ($selected_radio == "up") {
$scale_type_up = "checked=\"checked\""; $scale_type_up = 'checked="checked"';
$scale_type_follow=""; $scale_type_follow="";
} elseif ($selected_radio == "follow") { } elseif ($selected_radio == "follow") {
$scale_type_up=""; $scale_type_up="";
$scale_type_follow = "checked=\"checked\""; $scale_type_follow = 'checked="checked"';
} }
} }
?> ?>
<tr> <tr>
<td> <td>
<input name="scale_type" type="radio" id="scale_type_up" value="up" <?php echo $scale_type_up; ?> /> <?php echo gettext('Scale up')?> <input name="scale_type" type="radio" id="scale_type_up" value="up" <?= $scale_type_up; ?> /> <?= gettext('Scale up')?>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<input name="scale_type" type="radio" id="scale_type_follow" value="follow" <?php echo $scale_type_follow; ?> /> <?php echo gettext('Scale follow')?><br /><br /> <input name="scale_type" type="radio" id="scale_type_follow" value="follow" <?= $scale_type_follow; ?> /> <?= gettext('Scale follow')?><br /><br />
Refresh Interval: <?= gettext('Refresh Interval:') ?>
<select name="refreshinterval" class="formfld" id="refreshinterval" > <select name="refreshinterval" class="formfld" id="refreshinterval" >
<?php for ($i = 1; $i <= 10; $i += 1) { <?php for ($i = 1; $i <= 10; $i += 1) {
?> ?>
<option value="<?= $i ?>" <?php if ($refreshinterval == $i) { <option value="<?= $i ?>" <?php if ($refreshinterval == $i) {
echo "selected=\"selected\""; echo 'selected="selected"';
}?>><?= $i ?></option> }?>><?= $i ?></option>
<?php <?php
} ?> } ?>
...@@ -187,7 +187,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) { ...@@ -187,7 +187,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
<div id="<?=$ifname;?>topic" class="widgetsubheader"> <div id="<?=$ifname;?>topic" class="widgetsubheader">
<div style="float:left;width:49%"> <div style="float:left;width:49%">
<span onclick="location.href='/status_graph.php?if=<?=$ifname; <span onclick="location.href='/status_graph.php?if=<?=$ifname;
?>'" style="cursor:pointer">Current <?=$ifdescr;?> Traffic</span> ?>'" style="cursor:pointer"><?= sprintf(gettext('Current %s Traffic'),$ifdescr) ?></span>
</div> </div>
<div align="right" style="float:right;width:49%"> <div align="right" style="float:right;width:49%">
<div id="<?=$ifname;?>graphdiv-min" onclick='return trafficminimizeDiv("<?= $ifname ?>", true);' <div id="<?=$ifname;?>graphdiv-min" onclick='return trafficminimizeDiv("<?= $ifname ?>", true);'
...@@ -199,7 +199,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) { ...@@ -199,7 +199,7 @@ foreach ($ifdescrs as $ifname => $ifdescr) {
</div> </div>
<div style="clear:both;"></div> <div style="clear:both;"></div>
</div> </div>
<div id="<?=$ifname;?>graphdiv" style="display:<?php echo $graphdisplay;?>"> <div id="<?=$ifname;?>graphdiv" style="display:<?= $graphdisplay;?>">
<object data="graph.php?ifnum=<?=$ifname; <object data="graph.php?ifnum=<?=$ifname;
?>&amp;ifname=<?=rawurlencode($ifdescr); ?>&amp;ifname=<?=rawurlencode($ifdescr);
?>&amp;timeint=<?=$refreshinterval; ?>&amp;timeint=<?=$refreshinterval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment