diff options
Diffstat (limited to 'usr/local/www/system_camanager.php')
-rw-r--r-- | usr/local/www/system_camanager.php | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/usr/local/www/system_camanager.php b/usr/local/www/system_camanager.php index 19f338d..365b39b 100644 --- a/usr/local/www/system_camanager.php +++ b/usr/local/www/system_camanager.php @@ -41,12 +41,12 @@ require("guiconfig.inc"); require_once("certs.inc"); $ca_methods = array( - "existing" => "Import an existing Certificate Authority", - "internal" => "Create an internal Certificate Authority"); + "existing" => gettext("Import an existing Certificate Authority"), + "internal" => gettext("Create an internal Certificate Authority")); $ca_keylens = array( "512", "1024", "2048", "4096"); -$pgtitle = array("System", "Certificate Authority Manager"); +$pgtitle = array(gettext("System"), gettext("Certificate Authority Manager")); $id = $_GET['id']; if (isset($_POST['id'])) @@ -125,13 +125,13 @@ if ($_POST) { "name keylen lifetime dn_country dn_state dn_city ". "dn_organization dn_email dn_commonname"); $reqdfieldsn = explode(",", - "Descriptive name,Key length,Lifetime,". - "Distinguished name Country Code,". - "Distinguished name State or Province,". - "Distinguished name City,". - "Distinguished name Organization,". - "Distinguished name Email Address,". - "Distinguished name Common Name"); + 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,"). + gettext("Distinguished name Common Name")); } do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); @@ -260,15 +260,15 @@ function method_change() { <td colspan="2" class="list" height="12"></td> </tr> <tr> - <td colspan="2" valign="top" class="listtopic">Existing Certificate Authority</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Authority");?></td> </tr> <tr> - <td width="22%" valign="top" class="vncellreq">Certificate data</td> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td> <td width="78%" class="vtable"> <textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=$pconfig['cert'];?></textarea> <br> - Paste a certificate in X.509 PEM format here.</td> + <?=gettext("Paste a certificate in X.509 PEM format here.");?></td> </td> </tr> </table> @@ -278,7 +278,7 @@ function method_change() { <td colspan="2" class="list" height="12"></td> </tr> <tr> - <td colspan="2" valign="top" class="listtopic">Internal Certificate Authority</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Authority");?></td> </tr> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td> @@ -293,14 +293,14 @@ function method_change() { <option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option> <?php endforeach; ?> </select> - bits + <?=gettext(bits);?> </td> </tr> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td> <td width="78%" class="vtable"> <input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/> - days + <?=gettext(days);?> </td> </tr> <tr> @@ -308,64 +308,64 @@ function method_change() { <td width="78%" class="vtable"> <table border="0" cellspacing="0" cellpadding="2"> <tr> - <td align="right">Country Code : </td> + <td align="right"><?=gettext("Country Code");?> : </td> <td align="left"> <input name="dn_country" type="text" class="formfld unknown" maxlength="2" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>"/> <em>ex:</em> - US - <em>( two letters )</em> + <?=gettext("US");?> + <em><?=gettext("( two letters )");?></em> </td> </tr> <tr> - <td align="right">State or Province : </td> + <td align="right"><?=gettext("State or Province");?> : </td> <td align="left"> <input name="dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_state']);?>"/> <em>ex:</em> - Texas + <?=gettext("Texas");?> </td> </tr> <tr> - <td align="right">City : </td> + <td align="right"><?=gettext("City");?> : </td> <td align="left"> <input name="dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_city']);?>"/> <em>ex:</em> - Austin + <?=gettext("Austin");?> </td> </tr> <tr> - <td align="right">Organization : </td> + <td align="right"><?=gettext("Organization");?> : </td> <td align="left"> <input name="dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_organization']);?>"/> <em>ex:</em> - My Company Inc. + <?=gettext("My Company Inc.");?> </td> </tr> <tr> - <td align="right">Email Address : </td> + <td align="right"><?=gettext("Email Address");?> : </td> <td align="left"> <input name="dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_email']);?>"/> <em>ex:</em> - admin@mycompany.com + <?=gettext("admin@mycompany.com");?> </td> </tr> <tr> - <td align="right">Common Name : </td> + <td align="right"><?=gettext("Common Name");?> : </td> <td align="left"> <input name="dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_commonname']);?>"/> <em>ex:</em> - internal-ca + <?=gettext("internal-ca");?> </td> </tr> </table> @@ -390,11 +390,11 @@ function method_change() { <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> - <td width="20%" class="listhdrr">Name</td> - <td width="10%" class="listhdrr">Internal</td> - <td width="10%" class="listhdrr">Issuer</td> - <td width="10%" class="listhdrr">Certificates</td> - <td width="40%" class="listhdrr">Distinguished Name</td> + <td width="20%" class="listhdrr"><?=gettext("Name");?></td> + <td width="10%" class="listhdrr"><?=gettext("Internal");?></td> + <td width="10%" class="listhdrr"><?=gettext("Issuer");?></td> + <td width="10%" class="listhdrr"><?=gettext("Certificates");?></td> + <td width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></td> <td width="10%" class="list"></td> </tr> <?php @@ -404,9 +404,9 @@ function method_change() { $subj = cert_get_subject($ca['crt']); $issuer = cert_get_issuer($ca['crt']); if($subj == $issuer) - $issuer_name = "<em>self-signed</em>"; + $issuer_name = "<em>" . gettext("self-signed") . "</em>"; else - $issuer_name = "<em>external</em>"; + $issuer_name = "<em>" . gettext("external") . "</em>"; $subj = htmlspecialchars($subj); $issuer = htmlspecialchars($issuer); $certcount = 0; @@ -451,7 +451,7 @@ function method_change() { <td class="listr"><?=$subj;?> </td> <td valign="middle" nowrap class="list"> <a href="system_camanager.php?act=exp&id=<?=$i;?>")"> - <img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="export ca" alt="export ca" width="17" height="17" border="0" /> + <img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export ca");?>" alt="<?=gettext("export ca");?>" width="17" height="17" border="0" /> </a> <a href="system_camanager.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Authority and all associated Certificates?");?>')"> <img src="/themes/<?= $g['theme'];?>/images/icons/icon_x.gif" title="delete ca" alt="delete ca" width="17" height="17" border="0" /> @@ -466,7 +466,7 @@ function method_change() { <td class="list" colspan="5"></td> <td class="list"> <a href="system_camanager.php?act=new"> - <img src="/themes/<?= $g['theme'];?>/images/icons/icon_plus.gif" title="add or import ca" alt="add ca" width="17" height="17" border="0" /> + <img src="/themes/<?= $g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add or import ca");?>" alt="<?=gettext("add ca");?>" width="17" height="17" border="0" /> </a> </td> </tr> |