summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_keys_edit.php
diff options
context:
space:
mode:
authorCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-27 10:06:05 -0300
committerCarlos Eduardo Ramos <carlos.ramos@bluepex.com>2010-07-27 10:06:30 -0300
commit4b1f6c12edd6313ae6c8c95f332856199e4ccdd3 (patch)
treea3d4c9357e4cbee6fd2cb747bb8a0ef66a424f7c /usr/local/www/vpn_ipsec_keys_edit.php
parentf23be1d8a07f9ba404809401f02990b822547934 (diff)
downloadpfsense-4b1f6c12edd6313ae6c8c95f332856199e4ccdd3.zip
pfsense-4b1f6c12edd6313ae6c8c95f332856199e4ccdd3.tar.gz
Implement gettext() calls on vpn_ipsec_keys_edit.php
Diffstat (limited to 'usr/local/www/vpn_ipsec_keys_edit.php')
-rw-r--r--usr/local/www/vpn_ipsec_keys_edit.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/vpn_ipsec_keys_edit.php b/usr/local/www/vpn_ipsec_keys_edit.php
index ff1ef9a..8a76dd2 100644
--- a/usr/local/www/vpn_ipsec_keys_edit.php
+++ b/usr/local/www/vpn_ipsec_keys_edit.php
@@ -66,21 +66,21 @@ if ($_POST) {
/* input validation */
$reqdfields = explode(" ", "ident psk");
- $reqdfieldsn = explode(",", "Identifier,Pre-shared key");
+ $reqdfieldsn = array(gettext("Identifier,Pre-shared key"));
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if (preg_match("/[^a-zA-Z0-9@\.\-]/", $_POST['ident']))
- $input_errors[] = "The identifier contains invalid characters.";
+ $input_errors[] = gettext("The identifier contains invalid characters.");
if (array_key_exists($_POST['ident'], $userids))
- $input_errors[] = "A user with this name already exists. Add the key to the user instead.";
+ $input_errors[] = gettext("A user with this name already exists. Add the key to the user instead.");
if (!$input_errors && !(isset($id) && $a_secret[$id])) {
/* make sure there are no dupes */
foreach ($a_secret as $secretent) {
if ($secretent['ident'] == $_POST['ident']) {
- $input_errors[] = "Another entry with the same identifier already exists.";
+ $input_errors[] = gettext("Another entry with the same identifier already exists.");
break;
}
}
@@ -97,10 +97,10 @@ if ($_POST) {
if (isset($id) && $a_secret[$id]) {
$a_secret[$id] = $secretent;
- $text = "Edited";
+ $text = gettext("Edited");
} else {
$a_secret[] = $secretent;
- $text = "Added";
+ $text = gettext("Added");
}
write_config("{$text} IPsec Pre-Shared Keys");
@@ -111,7 +111,7 @@ if ($_POST) {
}
}
-$pgtitle = "VPN: IPsec: Edit pre-shared key";
+$pgtitle = gettext("VPN: IPsec: Edit pre-shared key");
$statusurl = "diag_ipsec.php";
$logurl = "diag_logs_ipsec.php";
@@ -125,15 +125,15 @@ include("head.inc");
<form action="vpn_ipsec_keys_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
- <td valign="top" class="vncellreq">Identifier</td>
+ <td valign="top" class="vncellreq"><?=gettext("Identifier"); ?></td>
<td class="vtable">
<?=$mandfldhtml;?><input name="ident" type="text" class="formfld unknown" id="ident" size="30" value="<?=$pconfig['ident'];?>">
<br>
-This can be either an IP address, fully qualified domain name or an e-mail address.
+<?=gettext("This can be either an IP address, fully qualified domain name or an e-mail address"); ?>.
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncellreq">Pre-shared key</td>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Pre-shared key"); ?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="psk" type="text" class="formfld unknown" id="psk" size="40" value="<?=htmlspecialchars($pconfig['psk']);?>">
</td>
@@ -141,7 +141,7 @@ This can be either an IP address, fully qualified domain name or an e-mail addre
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
- <input name="Submit" type="submit" class="formbtn" value="Save">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>">
<?php if (isset($id) && $a_secret[$id]): ?>
<input name="id" type="hidden" value="<?=$id;?>">
<?php endif; ?>
OpenPOWER on IntegriCloud