summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_pptp_users.php
diff options
context:
space:
mode:
authorRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-27 14:34:58 -0300
committerRafael Lucas <rafalucas.unicamp@gmail.com>2010-07-27 14:34:58 -0300
commita7a9a566bf1e067e0e0e37f15991a9e99cf90411 (patch)
tree398524f5b5e7af07b7e0d1b7cde7560530fdf58d /usr/local/www/vpn_pptp_users.php
parent188097024801509c431899e7d9d4382e0a05b204 (diff)
downloadpfsense-a7a9a566bf1e067e0e0e37f15991a9e99cf90411.zip
pfsense-a7a9a566bf1e067e0e0e37f15991a9e99cf90411.tar.gz
Implement gettext() calls on vpn_pptp_users.php
Diffstat (limited to 'usr/local/www/vpn_pptp_users.php')
-rwxr-xr-xusr/local/www/vpn_pptp_users.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/vpn_pptp_users.php b/usr/local/www/vpn_pptp_users.php
index 8d74aec..c402613 100755
--- a/usr/local/www/vpn_pptp_users.php
+++ b/usr/local/www/vpn_pptp_users.php
@@ -68,7 +68,7 @@ if ($_GET['act'] == "del") {
}
}
-$pgtitle = array("VPN","VPN PPTP","Users");
+$pgtitle = array(gettext("VPN"),gettext("VPN PPTP"),gettext("Users"));
include("head.inc");
?>
@@ -78,16 +78,16 @@ include("head.inc");
<form action="vpn_pptp_users.php" method="post">
<?php if ($savemsg) print_info_box($savemsg); ?>
<?php if (isset($config['pptpd']['radius']['enable']))
- print_info_box("Warning: RADIUS is enabled. The local user database will not be used."); ?>
+ print_info_box(gettext("Warning: RADIUS is enabled. The local user database will not be used.")); ?>
<?php if (is_subsystem_dirty('pptpusers')): ?><p>
-<?php print_info_box_np("The PPTP user list has been modified.<br>You must apply the changes in order for them to take effect.<br><b>Warning: this will terminate all current PPTP sessions!</b>");?><br>
+<?php print_info_box_np(gettext("The PPTP user list has been modified.")."<br>".gettext("You must apply the changes in order for them to take effect.")."<br><b>".gettext("Warning: this will terminate all current PPTP sessions!")."</b>");?><br>
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="tabnavtbl">
<?php
$tab_array = array();
- $tab_array[0] = array("Configuration", false, "vpn_pptp.php");
- $tab_array[1] = array("Users", true, "vpn_pptp_users.php");
+ $tab_array[0] = array(gettext("Configuration"), false, "vpn_pptp.php");
+ $tab_array[1] = array(gettext("Users"), true, "vpn_pptp_users.php");
display_top_tabs($tab_array);
?> </td></tr>
<tr>
@@ -95,13 +95,13 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td class="listhdrr">Username</td>
- <td class="listhdr">IP address</td>
+ <td class="listhdrr"><?=gettext("Username");?></td>
+ <td class="listhdr"><?=gettext("IP address");?></td>
<td class="list">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="17"></td>
- <td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add user" width="17" height="17" border="0"></a></td>
+ <td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0"></a></td>
</tr>
</table>
</td>
@@ -114,8 +114,8 @@ include("head.inc");
<td class="listr">
<?=htmlspecialchars($secretent['ip']);?>&nbsp;
</td>
- <td class="list" nowrap> <a href="vpn_pptp_users_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit user" width="17" height="17" border="0"></a>
- &nbsp;<a href="vpn_pptp_users.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this user?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="delete user" width="17" height="17" border="0"></a></td>
+ <td class="list" nowrap> <a href="vpn_pptp_users_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit user");?>" width="17" height="17" border="0"></a>
+ &nbsp;<a href="vpn_pptp_users.php?act=del&id=<?=$i;?>" onclick="return confirm(<?=gettext('Do you really want to delete this user?');?>)"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete user");?>" width="17" height="17" border="0"></a></td>
</tr>
<?php $i++; endforeach; ?>
<tr>
@@ -124,7 +124,7 @@ include("head.inc");
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="17"></td>
- <td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add user" width="17" height="17" border="0"></a></td>
+ <td><a href="vpn_pptp_users_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add user");?>" width="17" height="17" border="0"></a></td>
</tr>
</table>
</td>
OpenPOWER on IntegriCloud