diff options
author | Vinicius Coque <vinicius.coque@bluepex.com> | 2010-04-28 12:45:21 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2010-04-28 12:45:21 -0300 |
commit | 38fb1109ce44b696676a0704aa62e61eb5cd4b95 (patch) | |
tree | e2839bc9ac720767260bf46aca8210a99903342b /usr/local/www/system_camanager.php | |
parent | e2f0ac59490b8eb907416588d4d058e03f674fdc (diff) | |
download | pfsense-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.php | 20 |
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")); } |