Changeset 3377 for branches


Ignore:
Timestamp:
10/20/10 12:54:49 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1310 - Traduções para msgs emitidas com uso do certificado digital.

Location:
branches/2.2
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/security/gera-arvore.php

    r3232 r3377  
    8282                        else 
    8383                            { 
    84                                 $msg =  '<font color="FF0000" size="4"><b>Certificado ausente da cadeia.</b></font> '; 
     84                                $msg =  '<font color="FF0000" size="4"><b>' . lang('Certificate not in chain') . '.</b></font> '; 
    8585                                $lnk = '<b>' . $K . '</b>'; 
    8686                            } 
     
    100100                                        else 
    101101                                            { 
    102                                                 $msg =  '<font color="FF0000" ><b>Certificado ausente da cadeia.</b></font> '; 
     102                                                $msg =  '<font color="FF0000" ><b>' . lang('Certificate not in chain') . '.</b></font> '; 
    103103                                            } 
    104104                                        $tudo .=  $prefixo1 .  '<font color="#000000" ><a href="javascript:Um_Certificado(\''. $tab_certs[$K1]['item']  . ' - ' . $K1 .'\',\'' .  $arquivo . '\')" style="text-decoration: none" >' . $K1 . '</a></font> ' .  '  ' . $msg . '<br/>'; 
     
    113113                                                        else 
    114114                                                            { 
    115                                                                 $msg =  '<font color="FF0000" ><b>Certificado ausente da cadeia.</b></font> '; 
     115                                                                $msg =  '<font color="FF0000" ><b>' . lang('Certificate not in chain') . '.</b></font> '; 
    116116                                                            } 
    117117                                                        if($num>$item) 
  • branches/2.2/security/security-cas.php

    r3232 r3377  
    1111        if(!is_dir(dirname($path3))) 
    1212        { 
    13             echo lang('Erro.') . ' ' . lang('Não foi possível localizar arquivo de configuração no servidor.'); 
     13            echo lang('Erro.') . ' ' . lang('Configuration file not found in server.'); 
    1414            exit(); 
    1515        } 
     
    5353                                if(count(explode(chr(0x0A),$w)) < 7 ) 
    5454                                    { 
    55                                         $msgs_alertas .= lang('Arquivo') . ' '. $_FILES['file']['name'] . lang('nao pode ser processado. Formato invalido') . '.<br/>'; 
     55                                        $msgs_alertas .= lang('File') . ' '. $_FILES['file']['name'] . lang('not processed. Invalid format') . '.<br/>'; 
    5656                                    } 
    5757                            } 
     
    8080                                            { 
    8181                                                $conteudo .= chr(0x0D) . chr(0x0A) . $cert; 
    82                                                 $msgs_alertas .= lang('Adicionado certificado para') . ' ' . $a->dados['NOME'] . ' .<br/>'; 
     82                                                $msgs_alertas .= lang('Certificate added to') . ' ' . $a->dados['NOME'] . ' .<br/>'; 
    8383                                            } 
    8484                                    } 
     
    9292                                                    { 
    9393                                                        file_put_contents($path3,$conteudo,FILE_APPEND); 
    94                                                         $msgs_alertas .= lang('Arquivo atualizado e salvo') . '.'; 
     94                                                        $msgs_alertas .= lang('File updated and save') . '.'; 
    9595                                                    } 
    9696                                                else 
    9797                                                    { 
    98                                                         $msgs_alertas .= lang('Falhou ao salvar arquivo (CD04). Nao foi concluida a operacao solicitada') . '.<br/>'; 
     98                                                        $msgs_alertas .= lang('Failure on save file (CD04). The requested operation is not concluded') . '.<br/>'; 
    9999                                                    } 
    100100                                            } 
    101101                                        else 
    102102                                            { 
    103                                                 $msgs_alertas .= lang('Falhou ao salvar arquivo (CD03). Nao foi concluida a operacao solicitada') . '.<br/>'; 
     103                                                $msgs_alertas .= lang('Failure on save file (CD03). The requested operation is not concluded') . '.<br/>'; 
    104104                                            } 
    105105                                    } 
    106106                                 else 
    107107                                     { 
    108                                         $msgs_alertas .= lang('Nao foram localizados certificados de CAs') . '.'; 
     108                                        $msgs_alertas .= lang('ACs certificates not found') . '.'; 
    109109                                     } 
    110110                            } 
     
    115115        echo '<div style="padding-left:90px" >'; 
    116116        echo '<form id="frm3" enctype="multipart/form-data" method="post" action="' . $_SERVER["PHP_SELF"] . '">'; 
    117         echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a>'; 
     117        echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 
    118118        $aux99 = explode('/',$path3); 
    119119        $path3 = $aux99[count($aux99)-1]; 
     
    123123        echo '</div>'; 
    124124        echo '<div id="files"/>'; 
    125         echo '<h4 style="color: #000066">' . lang('Selecione um arquivo com certificados de CAs para adionar ao arquivo de Cas em uso') . ':<h5>'; 
     125        echo '<h4 style="color: #000066">' . lang('Choose a file with CAs to add') . ':<h5>'; 
    126126        echo '<input id="file" type="file" name="file" />'; 
    127127        echo '&nbsp;&nbsp;&nbsp;&nbsp;'; 
    128         echo '<input type="button" name="adicionar" value="' . lang('Adicionar') . '" onclick="javascript:Submete_Cas(\'frm3\',\'' . lang('Adicionar conteudo do arquivo selecionado ao arquivo de CAs') . ' ?\')" />'; 
     128        echo '<input type="button" name="adicionar" value="' . lang('Add') . '" onclick="javascript:Submete_Cas(\'frm3\',\'' . lang('Add file contents to ACs file') . ' ?\')" />'; 
    129129        echo '</div>'; 
    130130        echo '</form>'; 
    131         echo '<h2 id="titulo1" style="color: #000066">' . lang('Certificados em') . ' ' . $path3 . ' :</h2>'; 
     131        echo '<h2 id="titulo1" style="color: #000066">' . lang('Certificates in') . ' ' . $path3 . ' :</h2>'; 
    132132        echo '<div id="xdiv1" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 160px; white-space: pre;  padding: 3px; " >'; 
    133         echo '<br/><font color="#000066"><b> ' . lang('Carregando ...') . '</b></font>'; 
     133        echo '<br/><font color="#000066"><b> ' . lang('Loading ...') . '</b></font>'; 
    134134        echo '</div>'; 
    135135        echo '<br/><pre>'; 
    136136        echo '<div id="xdiv2" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 180px; white-space: pre;  padding: 3px; " >'; 
    137         echo '<br/><font color="#000066"><b> ' . lang('Carregando ...') . '</b></font>'; 
     137        echo '<br/><font color="#000066"><b> ' . lang('Loading ...') . '</b></font>'; 
    138138        echo '</div></pre>'; 
    139139        echo '<br/>'; 
    140         echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a>'; 
     140        echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 
    141141        echo '<div>'; 
    142142        echo '<script type="text/javascript"> Lista_de_Certificados(\'' . $path3 . '\'); </script>'; 
  • branches/2.2/security/security-cfg.php

    r3232 r3377  
    88    echo '<script type="text/javascript" src="certificados.js"  ></script>'; 
    99    echo '<div style="padding-left:90px" >'; 
    10     echo  '<h2  style="color: #000066">' . lang('Parametros em') . ' ' . $path1 . ':</h2>'; 
     10    echo  '<h2  style="color: #000066">' . lang('Parameters into') . ' ' . $path1 . ':</h2>'; 
    1111    echo '<table border="0" witdh="80%">'; 
    1212    echo '<tr >'; 
    13     echo '<td valign="top"><b>' . lang('Caminho BASE') . ':</b><br/></td>'; 
     13    echo '<td valign="top"><b>' . lang('Path BASE') . ':</b><br/></td>'; 
    1414    echo '<td valign="top">'; 
    1515    echo '<input type="text" name="BASE" value="'. $GLOBALS['BASE'] . '" size="60" READONLY />'; 
     
    1818    echo '<tr>'; 
    1919    $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['dirtemp']); 
    20     echo '<td valign="top"><b>' . lang('Pasta para conter arquivos temporarios usados na validacao do certificado digital') . ':</b><br/></td>'; 
     20    echo '<td valign="top"><b>' . lang('Folder to temporary files to digital certificate validation') . ':</b><br/></td>'; 
    2121    echo '<td valign="top">'; 
    2222    echo '<input type="text" name="dirtemp" value="'. $aux[1] . '" size="60" READONLY />'; 
     
    2525    echo '<tr >'; 
    2626    $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['CAs']); 
    27     echo '<td valign="top"><b>' . lang('Arquivo contendo cadeias das autoridades certificadoras(CAs)') . ':</b><br/></td>'; 
     27    echo '<td valign="top"><b>' . lang('File with Certificate Authority(CAs) chains') . ':</b><br/></td>'; 
    2828    echo '<td valign="top">'; 
    2929    echo '<input type="text" name="CAs" value="'. $aux[1] . '" size="60" READONLY />'; 
     
    3232    echo '<tr>'; 
    3333    $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['CRLs']); 
    34     echo '<td valign="top"><b>' . lang('Pasta para conter Listas de Revogacao de Certificados(CRLs)') . ':<br> 
    35            ' . lang('Deixar vazio para nao verificar se certificado esta revogado') . '.</b></td>'; 
     34    echo '<td valign="top"><b>' . lang('Folder with CRLs') . ':<br> 
     35           ' . lang('Empty to disable revogation test') . '.</b></td>'; 
    3636    echo '<td valign="top">'; 
    3737    echo '<input type="text" name="CRLs" value="'. $aux[1]. '" size="60" READONLY />'; 
     
    4040    echo '<tr >'; 
    4141    $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['arquivos_crls']); 
    42     echo '<td valign="top"><b>' . lang('Arquivo contendo as URLs para obter as listas de certificados revogados') . ':</b></td>'; 
     42    echo '<td valign="top"><b>' . lang('Point to file with URLs of CRLs') . ':</b></td>'; 
    4343    echo '<td valign="top">'; 
    4444    echo '<input type="text" name="arquivos_crls" value="'. $aux[1] . '" size="60" READONLY />'; 
     
    4747    echo '<tr>'; 
    4848    $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['log']); 
    49     echo '<td valign="top"><b>' . lang('Arquivo para conter log de execucao da rotina de obtencao das listas de certificados revogados') . ':</b></td>'; 
     49    echo '<td valign="top"><b>' . lang('File to execution log of get CRLs') . ':</b></td>'; 
    5050    echo '<td valign="top">'; 
    5151    echo '<input type="text" name="log" value="'. $aux[1] . '" size="60" READONLY />'; 
     
    5353    echo '</tr>'; 
    5454    echo '<tr>'; 
    55     echo '<td valign="top"><b>' . lang('Tamanho maximo do arquivo de log(em bytes):') . ':</b></td>'; 
     55    echo '<td valign="top"><b>' . lang('Maximum length of file log(bytes)') . ':</b></td>'; 
    5656    echo '<td valign="top">'; 
    5757    echo '<input type="text" name="log" value="'. $GLOBALS['lenMax'] . '" size="60" READONLY />'; 
     
    5959    echo '</tr>'; 
    6060    echo '<tr>'; 
    61     echo '<td valign="top"><b>' . lang('Numero maximo de arquivos de log a serem guardados:') . ':</b></td>'; 
     61    echo '<td valign="top"><b>' . lang('Maximum number of files log to retain') . ':</b></td>'; 
    6262    echo '<td valign="top">'; 
    6363    echo '<input type="text" name="log" value="'. $GLOBALS['bkpNum'] . '" size="60" READONLY />'; 
     
    6666    echo '</table>'; 
    6767    echo '<br/>'; 
    68     echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a>'; 
     68    echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 
    6969    echo '<div>'; 
    7070?> 
  • branches/2.2/security/security-clr.php

    r3232 r3377  
    77    if($GLOBALS['CRLs'] == '') 
    88        { 
    9             echo '<br/><br/><br/><div align="center"><h3><b>' . lang('O uso de listas de revogacao de certificados nao esta habilitado') . '.<b><h3><br/><br/>'; 
    10             echo '<a href="security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a></div>'; 
     9            echo '<br/><br/><br/><div align="center"><h3><b>' . lang('CRLs use is disable') . '.<b><h3><br/><br/>'; 
     10            echo '<a href="security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a></div>'; 
    1111            exit(); 
    1212        } 
     
    2727    echo '<script type="text/javascript" src="certificados.js"  ></script>'; 
    2828    echo '<div style="padding-left:90px" >'; 
    29     echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a>'; 
     29    echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 
    3030    echo '<input type="hidden" name="adicionar" value="adicionar" />'; 
    3131    $Linhas = explode(chr(0x0A),$arq); 
     
    3333        { 
    3434 
    35             echo '<h2  style="color: #000066">' . lang('LCRs configuradas') . ':</h2>'; 
     35            echo '<h2  style="color: #000066">' . lang('RCLs configurated') . ':</h2>'; 
    3636            echo '<div id="xdiv2" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 190px; white-space: pre;  padding: 3px; " >'; 
    3737            echo '<table border ="1" style="margin-top: 8px; width: 770px">'; 
    38             echo '<th nowrap align="left" style=" padding: 5px">' . lang('Lista de Certificados revogados obtida em') . ':</th><th nowrap align="left" style=" padding: 5px">' . lang('Onde é salva a LCR') . ':</th>'; 
     38            echo '<th nowrap align="left" style=" padding: 5px">' . lang('RCLs get in') . ':</th><th nowrap align="left" style=" padding: 5px">' . lang('Where save RCLs') . ':</th>'; 
    3939            foreach($Linhas as $linhaz) 
    4040                { 
     
    4848                            if(!is_file($f)) 
    4949                                { 
    50                                     echo '<p style="margin-bottom: 5px"><b  style="color: #FF0000">' . lang('Arquivo nao localizado') . '.</b></p>'; 
     50                                    echo '<p style="margin-bottom: 5px"><b  style="color: #FF0000">' . lang('File not found') . '.</b></p>'; 
    5151                                } 
    5252                            else 
     
    5454                                    $data = file_get_contents($f); 
    5555                                    $dados = Crl_parseASN($data); 
    56                                     echo '<br/><br/>Emitido por: '; 
     56                                    echo '<br/><br/>' . lang ('Issuer') . ': '; 
    5757                                    $aux = $dados[1][0][1][2][1]; // pega dados do emissor. 
    5858                                    $aux = $aux[count($aux)-1];  // ultimo item he o do CN..... 
    5959                                    echo $aux[1][1][1][1]; 
    60                                     echo '<br/>Num. certificados: '; 
     60                                    echo '<br/>' . lang('Num. Certificates') . ': '; 
    6161                                    $num = 0; 
    6262                                    if(count($dados[1][0][1]) > 6)        // qtd de itens esperado he 7. o 6 contem os certificados revogados. 
     
    6565                                        } 
    6666                                    echo $num; 
    67                                     echo '<br/>LCR num. : '; 
     67                                    echo '<br/>' . lang('Num. RCL') . ': '; 
    6868                                    $oid_Num_crl = recupera_dados_oid($data,'2.5.29.20');  // oid que informa o numero de geracao da LCR. 
    6969                                    $num = $oid_Num_crl[0][1][1][1]; 
     
    8787                                            $cor = 'style="color: #000066"'; 
    8888                                        } 
    89                                 echo '<p><b  ' . $cor . '>' . lang('Gerada em') . ' : </b>' . substr($di,0,4) . '/' . substr($di,4,2) . '/' . substr($di,6,2) . '  -  ' . substr($di,8,2) . ':' . substr($di,10,2) . ':' . substr($di,12,2) . ' GMT</p>'; 
     89                                echo '<p><b  ' . $cor . '>' . lang('Create in') . ' : </b>' . substr($di,0,4) . '/' . substr($di,4,2) . '/' . substr($di,6,2) . '  -  ' . substr($di,8,2) . ':' . substr($di,10,2) . ':' . substr($di,12,2) . ' GMT</p>'; 
    9090                                    if(gmdate("YmdHis") > $df) 
    9191                                        { 
    92                                             $cor = 'style="color: #FF0000" >' . lang('Expirada em') . ': '; 
     92                                            $cor = 'style="color: #FF0000" >' . lang('Expired on') . ': '; 
    9393                                        } 
    9494                                    else 
    9595                                        { 
    96                                             $cor = 'style="color: #000066" >' . lang('Expira em') . ': '; 
     96                                            $cor = 'style="color: #000066" >' . lang('Expire on') . ': '; 
    9797                                        } 
    9898                                    echo '<p><b  ' . $cor . ' </b>' . substr($df,0,4) . '/' . substr($df,4,2) . '/' . substr($df,6,2) . '  -  ' . substr($df,8,2) . ':' . substr($df,10,2) . ':' . substr($df,12,2) . ' GMT</p>'; 
     
    106106            echo '<input type="hidden" name="atualizar" value="atualizar" />'; 
    107107            echo '<br/>'; 
    108             echo '<input type="button" name="atualiz" value="' . lang('Executar atualização das LCRs') . '" onclick="javascript:Salvar_arq(\'frm2\',\'' . lang('Confirma atualização das LCRs') . ' ?\')"/>'; 
     108            echo '<input type="button" name="atualiz" value="' . lang('Execute RCLs update') . '" onclick="javascript:Salvar_arq(\'frm2\',\'' . lang('Confirm RCLs update') . ' ?\')"/>'; 
    109109            echo '<br/>'; 
    110110            echo '</form>'; 
     
    114114    if($path2) 
    115115        { 
    116             echo '<h2  style="color: #000066">' . lang('Log da atualizacao das LCRs') . ':</h2>'; 
     116            echo '<h2  style="color: #000066">' . lang('Log of RCLs update') . ':</h2>'; 
    117117            echo '<div style="border: #000000 1px solid; overflow: auto; width: 770px; height:180px; white-space: pre; padding: 5px" >'; 
    118118            echo '<pre>'; 
     
    130130                { 
    131131                    //$ret = exec('cat ' . $path2 ,$saida); 
    132                     echo '<p style="margin-bottom: 5px"><b  style="color: #FF0000">' . lang('Arquivo') . ' ' . $path2 . ' ' . lang('nao localizado') . '</b></p>'; 
     132                    echo '<p style="margin-bottom: 5px"><b  style="color: #FF0000">' . lang('File') . ' ' . $path2 . ' ' . lang('not found') . '</b></p>'; 
    133133                } 
    134134            echo '</pre>'; 
    135135            echo '</div><br/><br/>'; 
    136             echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Voltar') . '"/></a>'; 
     136            echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 
    137137            echo '<div>'; 
    138138        } 
  • branches/2.2/security/security.php

    r3232 r3377  
    44            <br/><br/> 
    55            <span> 
    6                 <a href="security-cas.php" style="text-decoration:none"><b><?php echo lang('ACs (Autoridades Certificadoras)') ?></b></a> 
     6                <a href="security-cas.php" style="text-decoration:none"><b><?php echo lang('CAs (Certificate Authority)') ?></b></a> 
    77            </span> 
    88            <br/><br/> 
    99            <span> 
    10                 <a href="security-clr.php" style="text-decoration:none"><b><?php echo lang('LCRs(Listas de Certificados Revogados)') ?></b></a> 
     10                <a href="security-clr.php" style="text-decoration:none"><b><?php echo lang('RCLs(Revoked Certificate List)') ?></b></a> 
    1111            </span> 
    1212            <br/><br/> 
    1313            <span> 
    14                 <a href="security-cfg.php" style="text-decoration:none"><b><?php echo lang('Visualizar Configuracao em uso') ?></b></a> 
     14                <a href="security-cfg.php" style="text-decoration:none"><b><?php echo lang('View Current configuration') ?></b></a> 
    1515            </span> 
    1616            <br/><br/><br/><br/> 
    17             <a href="../admin/index.php" style="text-decoration:none"><input type="button" value="<?php echo lang('Cancelar') ?>"/></a> 
     17            <a href="../admin/index.php" style="text-decoration:none"><input type="button" value="<?php echo lang('Cancel') ?>"/></a> 
    1818            <br/><br/> 
    1919        </div> 
  • branches/2.2/security/security_admin.php

    r3232 r3377  
    1212        else 
    1313          { 
    14                echo '<div><h4>' . lang('Dados para administra&ccedil;&atilde;o das CA\'s e CRL\'s n&atilde;o foram localizados') . '.</h4></div>'; 
     14               echo '<div><h4>' . lang('Administration data of AC\'s and RCL\'s not found') . '.</h4></div>'; 
    1515          } 
    1616?> 
Note: See TracChangeset for help on using the changeset viewer.