summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateway_groups.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-04-27 17:20:22 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-04-27 17:20:22 -0300
commit198afa092d20a856add9eb6414ea69ac825e8640 (patch)
treebdf5899b088ee2d82a19c891b6240fb97e8dea7b /usr/local/www/system_gateway_groups.php
parent51ecb99e3f03cd3b77ada53dd86e30311290619b (diff)
downloadpfsense-198afa092d20a856add9eb6414ea69ac825e8640.zip
pfsense-198afa092d20a856add9eb6414ea69ac825e8640.tar.gz
Implementing gettext()
Diffstat (limited to 'usr/local/www/system_gateway_groups.php')
-rwxr-xr-xusr/local/www/system_gateway_groups.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/system_gateway_groups.php b/usr/local/www/system_gateway_groups.php
index e292402..dadfa1d 100755
--- a/usr/local/www/system_gateway_groups.php
+++ b/usr/local/www/system_gateway_groups.php
@@ -49,7 +49,7 @@ if (!is_array($config['gateways']['gateway_group']))
$a_gateway_groups = &$config['gateways']['gateway_group'];
$a_gateways = &$config['gateways']['gateway_item'];
-$changedesc = "Gateway Groups: ";
+$changedesc = gettext("Gateway Groups") . ": ";
if ($_POST) {
@@ -70,7 +70,7 @@ if ($_POST) {
if ($_GET['act'] == "del") {
if ($a_gateway_groups[$_GET['id']]) {
- $changedesc .= "removed gateway group {$_GET['id']}";
+ $changedesc .= gettext("removed gateway group") . " {$_GET['id']}";
unset($a_gateway_groups[$_GET['id']]);
write_config($changedesc);
mark_subsystem_dirty('staticroutes');
@@ -79,7 +79,7 @@ if ($_GET['act'] == "del") {
}
}
-$pgtitle = array("System","Gateway Groups");
+$pgtitle = array(gettext("System"),gettext("Gateway Groups"));
include("head.inc");
?>
@@ -90,18 +90,18 @@ include("head.inc");
<input type="hidden" name="y1" value="1">
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (is_subsystem_dirty('staticroutes')): ?><p>
-<?php print_info_box_np("The gateway configuration has been changed.<br>You must apply the changes in order for them to take
-effect.");?><br>
+<?php print_info_box_np(gettext("The gateway configuration has been changed.<br>You must apply the changes in order for them to take
+effect."));?><br>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php
$tab_array = array();
- $tab_array[0] = array("Gateways", false, "system_gateways.php");
- $tab_array[1] = array("Routes", false, "system_routes.php");
- $tab_array[2] = array("Groups", true, "system_gateway_groups.php");
- $tab_array[3] = array("Settings", false, "system_gateways_settings.php");
+ $tab_array[0] = array(gettext("Gateways"), false, "system_gateways.php");
+ $tab_array[1] = array(gettext("Routes"), false, "system_routes.php");
+ $tab_array[2] = array(gettext("Groups"), true, "system_gateway_groups.php");
+ $tab_array[3] = array(gettext("Settings"), false, "system_gateways_settings.php");
display_top_tabs($tab_array);
?>
</td></tr>
@@ -110,10 +110,10 @@ effect.");?><br>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
- <td width="15%" class="listhdrr">Group Name</td>
- <td width="15%" class="listhdrr">Gateways</td>
- <td width="20%" class="listhdrr">Priority</td>
- <td width="30%" class="listhdr">Description</td>
+ <td width="15%" class="listhdrr"><?=gettext("Group Name");?></td>
+ <td width="15%" class="listhdrr"><?=gettext("Gateways");?></td>
+ <td width="20%" class="listhdrr"><?=gettext("Priority");?></td>
+ <td width="30%" class="listhdr"><?=gettext("Description");?></td>
<td width="10%" class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
@@ -154,7 +154,7 @@ effect.");?><br>
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td><a href="system_gateway_groups_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
- <td><a href="system_gateway_groups.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this gateway group?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
+ <td><a href="system_gateway_groups.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this gateway group?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
</tr>
<tr>
<td width="17"></td>
OpenPOWER on IntegriCloud