summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-30 15:56:02 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-06-30 15:56:02 -0300
commitf76baeb30629637effdb1ff00f7996c5e8f81d68 (patch)
tree62090e9183838560452f7f743d9acb03d1e95cdc /usr/local/www/interfaces_vlan.php
parentc24e9a112c60c05663e8ecb7d33056b9460b7380 (diff)
downloadpfsense-f76baeb30629637effdb1ff00f7996c5e8f81d68.zip
pfsense-f76baeb30629637effdb1ff00f7996c5e8f81d68.tar.gz
Implement gettext() calls
Diffstat (limited to 'usr/local/www/interfaces_vlan.php')
-rwxr-xr-xusr/local/www/interfaces_vlan.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/usr/local/www/interfaces_vlan.php b/usr/local/www/interfaces_vlan.php
index cd8975c..c75190f 100755
--- a/usr/local/www/interfaces_vlan.php
+++ b/usr/local/www/interfaces_vlan.php
@@ -62,7 +62,7 @@ function vlan_inuse($num) {
if ($_GET['act'] == "del") {
/* check if still in use */
if (vlan_inuse($_GET['id'])) {
- $input_errors[] = "This VLAN cannot be deleted because it is still being used as an interface.";
+ $input_errors[] = gettext("This VLAN cannot be deleted because it is still being used as an interface.");
} else {
mwexec("/sbin/ifconfig " . $a_vlans[$_GET['id']]['vlanif'] . " destroy");
unset($a_vlans[$_GET['id']]);
@@ -75,7 +75,7 @@ if ($_GET['act'] == "del") {
}
-$pgtitle = array("Interfaces","VLAN");
+$pgtitle = array(gettext("Interfaces"),gettext("VLAN"));
include("head.inc");
?>
@@ -87,16 +87,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", true, "interfaces_vlan.php");
- $tab_array[4] = array("QinQs", false, "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"), true, "interfaces_vlan.php");
+ $tab_array[4] = array(gettext("QinQs"), false, "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>
@@ -105,9 +105,9 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="20%" class="listhdrr">Interface</td>
- <td width="20%" class="listhdrr">VLAN tag</td>
- <td width="50%" class="listhdr">Description</td>
+ <td width="20%" class="listhdrr"><?=gettext("Interface");?></td>
+ <td width="20%" class="listhdrr"><?=gettext("VLAN tag");?></td>
+ <td width="50%" class="listhdr"><?=gettext("Description");?></td>
<td width="10%" class="list"></td>
</tr>
<?php $i = 0; foreach ($a_vlans as $vlan): ?>
@@ -122,18 +122,18 @@ include("head.inc");
<?=htmlspecialchars($vlan['descr']);?>&nbsp;
</td>
<td valign="middle" nowrap class="list"> <a href="interfaces_vlan_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_vlan.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this VLAN?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
+ &nbsp;<a href="interfaces_vlan.php?act=del&id=<?=$i;?>" onclick="return confirm(<?=gettext("Do you really want to delete this VLAN?");?>)"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
</tr>
<?php $i++; endforeach; ?>
<tr>
<td class="list" colspan="3">&nbsp;</td>
- <td class="list"> <a href="interfaces_vlan_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
+ <td class="list"> <a href="interfaces_vlan_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="<F12>17" border="0"></a></td>
</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 VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems. See the <?=$g['product_name']?> handbook for information on supported cards. </p>
+ <?=gettext("Not all drivers/NICs support 802.1Q VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems. See the ");?><?=$g['product_name']?><?=gettext(" handbook for information on supported cards.");?> </p>
</td>
<td class="list">&nbsp;</td>
</tr>
OpenPOWER on IntegriCloud