Changeset 2247


Ignore:
Timestamp:
03/15/10 14:10:57 (14 years ago)
Author:
eduardoalex
Message:

Ticket #887 - Alteracao da mensagem exibida para o usuario, sera necessario atualizar o lang

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2213 r2247  
    18231823                $namebox = mb_convert_encoding($namebox, "UTF7-IMAP","UTF-8"); 
    18241824                $new_box = mb_convert_encoding($new_box, "UTF7-IMAP","UTF-8"); 
    1825  
    1826                 if(!imap_renamemailbox($mbox_stream,"{".$imap_server."}$namebox","{".$imap_server."}$new_box")) 
    1827                 { 
    1828                         $result = imap_errors(); 
     1825                if(!$this->folder_exists($new_box)) 
     1826                { 
     1827                        if(!imap_renamemailbox($mbox_stream,"{".$imap_server."}$namebox","{".$imap_server."}$new_box")) 
     1828                        { 
     1829                                $result = imap_errors(); 
     1830                        } 
     1831                } 
     1832                else{ 
     1833                        $result = "Mailbox already exists"; 
    18291834                } 
    18301835                if($mbox_stream) 
  • trunk/expressoMail1_2/js/TreeShow.js

    r1999 r2247  
    6767        { 
    6868                // IE does not understand regExp!!! 
    69                 if (is_ie) 
    70                         var reTipo = /^[a-z0-9 \-_+=]*$/i; 
    71                 else 
    72                         eval('var reTipo = /^[a-z0-9 \-_+=áéíóúàèìòùâêôãõÃÕÁÉÍÓÚÀÈÌÒÙÂÊÔçÇüñ]*$/i'); 
    73                 return reTipo.test(exp); 
     69                if (is_ie) 
     70                        var reTipo = /[^a-z0-9 \-_+=]*$/i; 
     71                else 
     72                        reTipo = /[^a-z0-9 \-_=áéíóúàèìòùâêôãõÃÕÁÉÍÓÚÀÈÌÒÙÂÊÔçÇüñ]/i; 
     73                         
     74        return reTipo.test(exp); 
    7475        } 
    7576 
     
    149150                var newp2 = ""; 
    150151                if( aux[0] == "root"){ 
    151                         if(!this.verify(newp)){ 
    152                                 alert(get_lang("Type without spaces, dots or special characters!")); 
     152                        if(this.verify(newp)){ 
     153                                alert(get_lang("The folder name must not contain special characters.")); 
    153154                                newp = ""; 
    154155                                return false; 
     
    158159                        } 
    159160                }else{ 
    160                         if(!this.verify(newp)){ 
    161                                 alert(get_lang("Type without spaces, dots or special characters!")); 
     161                        if(this.verify(newp)){ 
     162                                alert(get_lang("The folder name must not contain special characters.")); 
    162163                                newp = ""; 
    163164                                return false; 
     
    205206                                return false; 
    206207                        }else{ 
    207                                 if(!this.verify(rename)){ 
    208                     alert(get_lang("Type without spaces, dots or special characters!")); 
     208                                if(this.verify(rename)){ 
     209                    alert(get_lang("The folder name must not contain special characters.")); 
    209210                                        rename = ""; 
    210211                                        return false; 
     
    224225                        var handler_return = function(data) 
    225226                        { 
    226                                 expresso.connector.purgeCache(); 
    227                                 ttreeBox.name_folder = "root"; 
    228                                 ttreeBox.update_folder(); 
     227                                if (data != "Ok") { 
     228                                        alert(get_lang(data)); 
     229                                } 
     230                                else { 
     231                                        expresso.connector.purgeCache(); 
     232                                        ttreeBox.name_folder = "root"; 
     233                                        ttreeBox.update_folder(); 
     234                                } 
    229235                        } 
    230236                        var args = "$this.imap_functions.ren_mailbox"; 
  • trunk/expressoMail1_2/setup/phpgw_pt-br.lang

    r2173 r2247  
    456456The field \"%1\" of the message it contains     expressoMail1_2 pt-br   O campo \"%1\" da mensagem contém 
    457457The folder %1 was successfully removed  expressoMail1_2 pt-br   A pasta %1 foi removida com sucesso! 
     458The folder name must not contain special characters.    expressoMail1_2 pt-br   O nome da pasta não deve conter caracteres especiais. 
    458459The folder was not deleted!     expressoMail1_2 es-es   A pasta não foi removida! 
    459460The import was executed successfully.   expressoMail1_2 pt-br   A importação foi executada com sucesso. 
Note: See TracChangeset for help on using the changeset viewer.