summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_qinq.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-30 23:15:42 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-30 23:15:42 -0300
commita11b95856f511caaf375dd712c76c9f512116035 (patch)
tree35015d7346079c9de148355e27ea6eaef097d316 /usr/local/www/interfaces_qinq.php
parent01c47039036eb859ddf02ccea5a091dfb7208cb8 (diff)
downloadpfsense-a11b95856f511caaf375dd712c76c9f512116035.zip
pfsense-a11b95856f511caaf375dd712c76c9f512116035.tar.gz
Implement gettext() calls on interfaces_qinq.php
Diffstat (limited to 'usr/local/www/interfaces_qinq.php')
-rwxr-xr-xusr/local/www/interfaces_qinq.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/usr/local/www/interfaces_qinq.php b/usr/local/www/interfaces_qinq.php
index f25a5dc..34582d3 100755
--- a/usr/local/www/interfaces_qinq.php
+++ b/usr/local/www/interfaces_qinq.php
@@ -60,7 +60,7 @@ function qinq_inuse($num) {
if ($_GET['act'] == "del") {
/* check if still in use */
if (qinq_inuse($_GET['id'])) {
- $input_errors[] = "This QinQ cannot be deleted because it is still being used as an interface.";
+ $input_errors[] = gettext("This QinQ cannot be deleted because it is still being used as an interface.");
} else {
$id = $_GET['id'];
$qinq =& $a_qinqs[$id];
@@ -81,7 +81,7 @@ if ($_GET['act'] == "del") {
}
}
-$pgtitle = array("Interfaces","QinQ");
+$pgtitle = array(gettext("Interfaces"),gettext("QinQ"));
include("head.inc");
?>
@@ -93,16 +93,16 @@ include("head.inc");
<tr><td>
<?php
$tab_array = array();
- $tab_array[0] = array("Interface assignments", false, "interfaces_assign.php");
- $tab_array[1] = array("Interface Groups", false, "interfaces_groups.php");
- $tab_array[2] = array("Wireless", false, "interfaces_wireless.php");
- $tab_array[3] = array("VLANs", false, "interfaces_vlan.php");
- $tab_array[4] = array("QinQs", true, "interfaces_qinq.php");
- $tab_array[5] = array("PPPs", false, "interfaces_ppps.php");
- $tab_array[6] = array("GRE", false, "interfaces_gre.php");
- $tab_array[7] = array("GIF", false, "interfaces_gif.php");
- $tab_array[8] = array("Bridges", false, "interfaces_bridge.php");
- $tab_array[9] = array("LAGG", false, "interfaces_lagg.php");
+ $tab_array[0] = array(gettext("Interface assignments"), false, "interfaces_assign.php");
+ $tab_array[1] = array(gettext("Interface Groups"), false, "interfaces_groups.php");
+ $tab_array[2] = array(gettext("Wireless"), false, "interfaces_wireless.php");
+ $tab_array[3] = array(gettext("VLANs"), false, "interfaces_vlan.php");
+ $tab_array[4] = array(gettext("QinQs"), true, "interfaces_qinq.php");
+ $tab_array[5] = array(gettext("PPPs"), false, "interfaces_ppps.php");
+ $tab_array[6] = array(gettext("GRE"), false, "interfaces_gre.php");
+ $tab_array[7] = array(gettext("GIF"), false, "interfaces_gif.php");
+ $tab_array[8] = array(gettext("Bridges"), false, "interfaces_bridge.php");
+ $tab_array[9] = array(gettext("LAGG"), false, "interfaces_lagg.php");
display_top_tabs($tab_array);
?>
</td></tr>
@@ -111,10 +111,10 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="15%" class="listhdrr">Interface</td>
- <td width="10%" class="listhdrr">Tag</td>
- <td width="20%" class="listhdrr">QinQ members</td>
- <td width="45%" class="listhdr">Description</td>
+ <td width="15%" class="listhdrr"><?=gettext("Interface");?></td>
+ <td width="10%" class="listhdrr"><?=gettext("Tag");?></td>
+ <td width="20%" class="listhdrr"><?=gettext("QinQ members");?></td>
+ <td width="45%" class="listhdr"><?=gettext("Description");?></td>
<td width="10%" class="list"></td>
</tr>
<?php $i = 0; foreach ($a_qinqs as $qinq): ?>
@@ -137,7 +137,7 @@ include("head.inc");
<?=htmlspecialchars($qinq['descr']);?>&nbsp;
</td>
<td valign="middle" nowrap class="list"> <a href="interfaces_qinq_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
- &nbsp;<a href="interfaces_qinq.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this QinQ?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
+ &nbsp;<a href="interfaces_qinq.php?act=del&id=<?=$i;?>" onclick="return confirm(<?=gettext("Do you really want to delete this QinQ?");?>)"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
</tr>
<?php $i++; endforeach; ?>
<tr>
@@ -146,9 +146,9 @@ include("head.inc");
</tr>
<tr>
<td colspan="3" class="list"><p class="vexpl"><span class="red"><strong>
- Note:<br>
+ <?=gettext("Note:");?><br>
</strong></span>
- Not all drivers/NICs support 802.1Q QinQ tagging properly. On cards that do not explicitly support it, QinQ tagging will still work, but the reduced MTU may cause problems. See the <?=$g['product_name']?> handbook for information on supported cards. </p>
+ <?php sprintf(gettext("Not all drivers/NICs support 802.1Q QinQ tagging properly. On cards that do not explicitly support it, QinQ tagging will still work, but the reduced MTU may cause problems. See the %s handbook for information on supported cards."), $g['product_name']);?></p>
</td>
<td class="list">&nbsp;</td>
</tr>
OpenPOWER on IntegriCloud