diff options
author | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-10 23:26:31 -0300 |
---|---|---|
committer | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-10 23:26:31 -0300 |
commit | 57d8432169d01bc9dd6fafe886265b22e2832bb2 (patch) | |
tree | c28021d36c9e2c6b60fcd3e78e6b86627e745f8b | |
parent | 5daab3141197d61962c3504c5e00356370976ccc (diff) | |
download | pfsense-57d8432169d01bc9dd6fafe886265b22e2832bb2.zip pfsense-57d8432169d01bc9dd6fafe886265b22e2832bb2.tar.gz |
Checked gettext() implementation on interfaces_gif.php
-rw-r--r-- | usr/local/www/interfaces_gif.php | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/usr/local/www/interfaces_gif.php b/usr/local/www/interfaces_gif.php index 92439fa..3c03ad5 100644 --- a/usr/local/www/interfaces_gif.php +++ b/usr/local/www/interfaces_gif.php @@ -61,7 +61,7 @@ function gif_inuse($num) { if ($_GET['act'] == "del") { /* check if still in use */ if (gif_inuse($_GET['id'])) { - $input_errors[] = "This gif TUNNEL cannot be deleted because it is still being used as an interface."; + $input_errors[] = gettext("This gif TUNNEL cannot be deleted because it is still being used as an interface."); } else { mwexec("/sbin/ifconfig " . $a_gifs[$_GET['id']]['gifif'] . " destroy"); unset($a_gifs[$_GET['id']]); @@ -73,7 +73,7 @@ if ($_GET['act'] == "del") { } } -$pgtitle = array("Interfaces","GIF"); +$pgtitle = array(gettext("Interfaces"),gettext("GIF")); include("head.inc"); ?> @@ -85,16 +85,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", 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", true, "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"), 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"), true, "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> @@ -103,9 +103,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">Tunnel to...</td> - <td width="50%" class="listhdr">Description</td> + <td width="20%" class="listhdrr"><?=gettext("Interface"); ?></td> + <td width="20%" class="listhdrr"><?=gettext("Tunnel to"); ?>...</td> + <td width="50%" class="listhdr"><?=gettext("Description"); ?></td> <td width="10%" class="list"></td> </tr> <?php $i = 0; foreach ($a_gifs as $gif): ?> @@ -120,7 +120,7 @@ include("head.inc"); <?=htmlspecialchars($gif['descr']);?> </td> <td valign="middle" nowrap class="list"> <a href="interfaces_gif_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> - <a href="interfaces_gif.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this gif tunnel?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <a href="interfaces_gif.php?act=del&id=<?=$i;?>" onclick="return confirm(gettext("'Do you really want to delete this gif tunnel?'"))"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> </tr> <?php $i++; endforeach; ?> <tr> @@ -129,9 +129,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> - GIF tunnels are configured here. + <?=gettext("GIF tunnels are configured here"); ?>. </td> <td class="list"> </td> </tr> |