summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_camanager.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2010-04-28 12:45:21 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2010-04-28 12:45:21 -0300
commit38fb1109ce44b696676a0704aa62e61eb5cd4b95 (patch)
treee2839bc9ac720767260bf46aca8210a99903342b /usr/local/www/system_camanager.php
parente2f0ac59490b8eb907416588d4d058e03f674fdc (diff)
downloadpfsense-38fb1109ce44b696676a0704aa62e61eb5cd4b95.zip
pfsense-38fb1109ce44b696676a0704aa62e61eb5cd4b95.tar.gz
Fixing gettext() implementation for required fields
Diffstat (limited to 'usr/local/www/system_camanager.php')
-rw-r--r--usr/local/www/system_camanager.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php
index 94001f1..342b5e9 100644
--- a/usr/local/www/system_camanager.php
+++ b/usr/local/www/system_camanager.php
@@ -118,19 +118,23 @@ if ($_POST) {
/* input validation */
if ($pconfig['method'] == "existing") {
$reqdfields = explode(" ", "name cert");
- $reqdfieldsn = explode(",", "Descriptive name,Certificate data");
+ $reqdfieldsn = array(
+ gettext("Descriptive name"),
+ gettext("Certificate data"));
}
if ($pconfig['method'] == "internal") {
$reqdfields = explode(" ",
"name keylen lifetime dn_country dn_state dn_city ".
"dn_organization dn_email dn_commonname");
- $reqdfieldsn = explode(",",
- gettext("Descriptive name,Key length,Lifetime,").
- gettext("Distinguished name Country Code,").
- gettext("Distinguished name State or Province,").
- gettext("Distinguished name City,").
- gettext("Distinguished name Organization,").
- gettext("Distinguished name Email Address,").
+ $reqdfieldsn = array(
+ gettext("Descriptive name"),
+ gettext("Key length"),
+ gettext("Lifetime"),
+ gettext("Distinguished name Country Code"),
+ gettext("Distinguished name State or Province"),
+ gettext("Distinguished name City"),
+ gettext("Distinguished name Organization"),
+ gettext("Distinguished name Email Address"),
gettext("Distinguished name Common Name"));
}
OpenPOWER on IntegriCloud