Ignore:
Timestamp:
03/19/08 11:59:26 (16 years ago)
Author:
wmerlotto
Message:

Internacionalizacao do ExpressoAdmin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/jscode/maillists.js

    r208 r233  
    66         
    77        if (document.forms[0].uid.value == ''){ 
    8                 alert('Campo LOGIN da lista está vazio.'); 
     8                alert(document.getElementById('login_field_has_spaces').value); 
    99                return; 
    1010        } 
    1111 
    1212        if (document.forms[0].cn.value == ''){ 
    13                 alert('Campo NOME da lista está vazio.'); 
     13                alert(document.getElementById('list_email_field_is_empty').value); 
    1414                return; 
    1515        } 
     
    1919                uid_tmp = document.forms[0].uid.value.split("-"); 
    2020                if ((uid_tmp.length < 3) || (uid_tmp[0] != 'lista')){ 
    21                         alert( 
    22                                 'O campo LOGIN da lista está incompleto.\n' + 
    23                                 'O nome da lista deve ser formado assim:\n' + 
    24                                 'lista-ORGANIZACAO-NOME_DA_LISTA.\n' + 
    25                                 'Ex: lista-celepar-rh.'); 
     21                        alert(document.getElementById('login_field_incomplete').value); 
    2622                        return; 
    2723                } 
     
    2925                 
    3026        if (document.forms[0].uid.value.split(" ").length > 1){ 
    31                 alert('Campo LOGIN comtém espaços.'); 
     27                alert(document.getElementById('login_field_has_spaces').value); 
    3228                document.forms[0].uid.focus(); 
    3329                return; 
     
    3531         
    3632        if (document.forms[0].mail.value == ''){ 
    37                 alert('Campo E-MAIL da lista está vazio.'); 
     33                alert(document.getElementById('list_email_field_is_empty').value); 
    3834                document.forms[0].mail.focus(); 
    3935                return; 
     
    4137        var reEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 
    4238        if(!reEmail.test(document.forms[0].mail.value)){ 
    43                 alert("Campo E-mail não é válido."); 
     39                alert(document.getElementById('field_email_is_invalid').value); 
    4440                return false; 
    4541        } 
     
    4743        select_userInMaillist = document.getElementById('ea_select_usersInMaillist'); 
    4844        if (select_userInMaillist.options.length == 0){ 
    49                 alert('Nenhum usuário faz parte da lista.'); 
     45                alert(document.getElementById('no_user_is_part_of_the_list').value); 
    5046                return; 
    5147        } 
     
    9591                alert(data.msg); 
    9692        else{ 
    97                 alert('Lista de emails criada com êxito!'); 
     93                alert(document.getElementById('email_list_successfully_created').value); 
    9894                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    9995        } 
     
    112108                alert(data.msg); 
    113109        else{ 
    114                 alert('Lista de emails salva com êxito!!'); 
     110                alert(document.getElementById('email_list_successfully_saved').value); 
    115111                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    116112        } 
     
    137133                alert(data.msg); 
    138134        else 
    139                 alert('Sending Control List salva com êxito!!'); 
     135                alert(document.getElementById('sending_control_list_successfully_saved').value); 
    140136        location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    141137        return; 
     
    185181        if ((recursive) && (document.forms[0].ldap_context.value == document.getElementById('ea_combo_org_maillists').value)) 
    186182        { 
    187                 alert('Nao é possível selecionar todos os usuários da organização raiz.') 
     183            alert(document.getElementById('it_is_not_possible_select_users').value); 
    188184                document.getElementById('ea_check_allUsers').checked = false; 
    189185                 
     
    358354function delete_maillist(uid, uidnumber) 
    359355{ 
    360         if (confirm("Realmente deletar Lista " + uid + " ??")) 
     356        if (confirm(document.getElementById('delete_list').value + uid + " ??")) 
    361357        { 
    362358                var handler_delete_maillist = function(data) 
     
    365361                                alert(data.msg); 
    366362                        else 
    367                                 alert('Lista de email deletada com êxito!!'); 
     363                                alert(document.getElementById('email_list_successfully_deleted'); 
    368364                         
    369365                        location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
Note: See TracChangeset for help on using the changeset viewer.