Changeset 53
- Timestamp:
- 08/13/07 17:18:06 (17 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r51 r53 48 48 include("class.imap_attachment.inc.php"); 49 49 $imap_attachment = new imap_attachment(); 50 $folder = $params['folder'];50 $folder = $params['folder']; 51 51 $msg_range_begin = $params['msg_range_begin']; 52 52 $msg_range_end = $params['msg_range_end']; 53 $sort_box_type = $params['sort_box_type']; 53 $sort_box_type = $params['sort_box_type']; 54 $sort_box_reverse = $params['sort_box_reverse']; 54 55 $search_box_type = $params['search_box_type'] != "ALL" && $params['search_box_type'] != "" ? $params['search_box_type'] : false; 55 $sort_box_reverse = $params['sort_box_reverse']; 56 $this->mbox = $this->open_mbox($folder); 57 58 switch($sort_box_type){ 59 case 'SORTFROM': 60 $sort_array_msg = $this->imap_sortfrom($sort_box_reverse, $folder); 61 break; 62 case 'SORTSUBJECT': 63 $sort_array_msg = imap_sort($this->mbox, SORTSUBJECT, $sort_box_reverse, SE_UID, $search_box_type); 64 break; 65 case 'SORTSIZE': 66 $sort_array_msg = imap_sort($this->mbox, SORTSIZE, $sort_box_reverse, SE_UID, $search_box_type); 67 break; 68 default: 69 $sort_array_msg = imap_sort($this->mbox, SORTARRIVAL, $sort_box_reverse, SE_UID, $search_box_type); 70 break; 71 } 56 $sort_array_msg = $this-> get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse); 72 57 73 58 $return = array(); … … 773 758 { 774 759 include("class.imap_attachment.inc.php"); 775 $imap_attachment = new imap_attachment(); 776 760 $imap_attachment = new imap_attachment(); 777 761 $folder = $params['folder']; 778 762 $msg_range_begin = $params['msg_range_begin']; 779 763 $msg_range_end = $params['msg_range_end']; 780 764 $msgs_existent = $params['msgs_existent']; 781 $sort_box_type = $params['sort_box_type']; 782 $search_box_type = $params['search_box_type'] != "ALL" && $params['search_box_type'] != "" ? $params['search_box_type'] : false; 765 $sort_box_type = $params['sort_box_type']; 783 766 $sort_box_reverse = $params['sort_box_reverse']; 784 767 $msgs_in_the_server = array(); 785 $sort_array_msg = array(); 786 $this->mbox = $this->open_mbox($folder); 787 788 switch($sort_box_type){ 789 case 'SORTFROM': 790 $sort_array_msg = $this->imap_sortfrom($sort_box_reverse, $folder); 791 break; 792 case 'SORTSUBJECT': 793 $sort_array_msg = imap_sort($this->mbox, SORTSUBJECT, $sort_box_reverse, SE_UID, $search_box_type); 794 break; 795 case 'SORTSIZE': 796 $sort_array_msg = imap_sort($this->mbox, SORTSIZE, $sort_box_reverse, SE_UID, $search_box_type); 797 break; 798 default: 799 $sort_array_msg = imap_sort($this->mbox, SORTARRIVAL, $sort_box_reverse, SE_UID, $search_box_type); 800 break; 801 } 768 $search_box_type = $params['search_box_type'] != "ALL" && $params['search_box_type'] != "" ? $params['search_box_type'] : false; 769 $sort_array_msg = $this -> get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse); 802 770 803 771 if(!count($sort_array_msg)) … … 1265 1233 } 1266 1234 1267 function imap_sortfrom($sort_box_reverse, $ folder)1235 function imap_sortfrom($sort_box_reverse, $search_box_type) 1268 1236 { 1269 1237 $sortfrom = array(); … … 1274 1242 { 1275 1243 $header = imap_headerinfo($this->mbox, $i, 80, 255); 1244 // List UNSEEN messages. 1245 if($search_box_type == "UNSEEN" && (!trim($header->Recent) && !trim($header->Unseen))){ 1246 continue; 1247 } 1248 // List SEEN messages. 1249 elseif($search_box_type == "SEEN" && (trim($header->Recent) || trim($header->Unseen))){ 1250 continue; 1251 } 1252 // List ANSWERED messages. 1253 elseif($search_box_type == "ANSWERED" && !trim($header->Answered)){ 1254 continue; 1255 } 1256 // List FLAGGED messages. 1257 elseif($search_box_type == "FLAGGED" && !trim($header->Flagged)){ 1258 continue; 1259 } 1260 1276 1261 if (($header->from[0]->mailbox . "@" . $header->from[0]->host) == $_SESSION['phpgw_info']['expressomail']['user']['email']) 1277 1262 $from = $header->to; 1278 1263 else 1279 1264 $from = $header->from; 1280 $tmp = imap_mime_header_decode($from[0]->personal); 1265 1266 $tmp = imap_mime_header_decode($from[0]->personal); 1267 1281 1268 if ($tmp[0]->text != "") 1282 $sortfrom[ ] = $tmp[0]->text;1269 $sortfrom[$i] = $tmp[0]->text; 1283 1270 else 1284 $sortfrom[ ] = $from[0]->mailbox . "@" . $from[0]->host;1271 $sortfrom[$i] = $from[0]->mailbox . "@" . $from[0]->host; 1285 1272 } 1286 1273 … … 1288 1275 1289 1276 foreach($sortfrom as $index => $header_msg) 1290 { 1291 $sortfrom_uid[] = imap_uid($this->mbox, $index +1);1277 { 1278 $sortfrom_uid[] = imap_uid($this->mbox, $index); 1292 1279 } 1293 1280 … … 1548 1535 return $str; 1549 1536 } 1537 1538 function get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse){ 1539 1540 if(!$this->mbox) 1541 $this->mbox = $this->open_mbox($folder); 1542 1543 switch($sort_box_type){ 1544 case 'SORTFROM': 1545 return $this->imap_sortfrom($sort_box_reverse, $search_box_type); 1546 case 'SORTSUBJECT': 1547 return imap_sort($this->mbox, SORTSUBJECT, $sort_box_reverse, SE_UID, $search_box_type); 1548 case 'SORTSIZE': 1549 return imap_sort($this->mbox, SORTSIZE, $sort_box_reverse, SE_UID, $search_box_type); 1550 default: 1551 return imap_sort($this->mbox, SORTARRIVAL, $sort_box_reverse, SE_UID, $search_box_type); 1552 } 1553 } 1554 1550 1555 function get_info_next_msg($params) 1551 1556 { … … 1555 1560 $sort_box_reverse = $params['sort_box_reverse']; 1556 1561 $reuse_border = $params['reuse_border']; 1557 1558 if(!$this->mbox) 1559 $this->mbox = $this->open_mbox($folder); 1560 1561 switch($sort_box_type){ 1562 case 'SORTFROM': 1563 $sort_array_msg = $this->imap_sortfrom($this->mbox , $sort_box_reverse, $folder); 1564 break; 1565 case 'SORTSUBJECT': 1566 $sort_array_msg = imap_sort($this->mbox , SORTSUBJECT, $sort_box_reverse, SE_UID); 1567 break; 1568 case 'SORTARRIVAL': 1569 $sort_array_msg = imap_sort($this->mbox , SORTARRIVAL, $sort_box_reverse, SE_UID); 1570 break; 1571 case 'SORTSIZE': 1572 $sort_array_msg = imap_sort($this->mbox , SORTSIZE, $sort_box_reverse, SE_UID); 1573 break; 1574 } 1575 1562 $search_box_type = $params['search_box_type'] != "ALL" && $params['search_box_type'] != "" ? $params['search_box_type'] : false; 1563 $sort_array_msg = $this -> get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse); 1576 1564 $i = 0; 1565 1577 1566 while($sort_array_msg[$i] != $msg_number) 1578 1567 { … … 1603 1592 $sort_box_reverse = $params['sort_box_reverse']; 1604 1593 $reuse_border = $params['reuse_border']; 1605 1606 if(!$this->mbox) 1607 $this->mbox = $this->open_mbox($folder); 1608 1609 switch($sort_box_type){ 1610 case 'SORTFROM': 1611 $sort_array_msg = $this->imap_sortfrom($this->mbox, $sort_box_reverse, $folder); 1612 break; 1613 case 'SORTSUBJECT': 1614 $sort_array_msg = imap_sort($this->mbox, SORTSUBJECT, $sort_box_reverse, SE_UID); 1615 break; 1616 case 'SORTARRIVAL': 1617 $sort_array_msg = imap_sort($this->mbox, SORTARRIVAL, $sort_box_reverse, SE_UID); 1618 break; 1619 case 'SORTSIZE': 1620 $sort_array_msg = imap_sort($this->mbox, SORTSIZE, $sort_box_reverse, SE_UID); 1621 break; 1622 } 1623 1594 $search_box_type = $params['search_box_type'] != "ALL" && $params['search_box_type'] != "" ? $params['search_box_type'] : false; 1595 $sort_array_msg = $this -> get_msgs($folder, $sort_box_type, $search_box_type, $sort_box_reverse); 1624 1596 $i = 0; 1625 1597 -
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r2 r53 239 239 '<br><br><br>'+ 240 240 '<table border="0" cellpading="0" cellspacing="0">'+ 241 '<tr><td>'+get_lang("Select the type of contact that it desires to visualize")+' :</td></tr>'+241 '<tr><td>'+get_lang("Select the type of contact that you want to view")+' :</td></tr>'+ 242 242 '<tr><td><input onclick="javascript:QuickCatalogSearch.changeOptions(this.value)" id="type" type="radio" name="type" value="p"/>Pessoas <input type="radio" name="type" value="g" onclick="javascript:QuickCatalogSearch.changeOptions(this.value)"/>Grupos '+ 243 243 '<tr><td>'+ -
trunk/expressoMail1_2/js/TreeShow.js
r51 r53 227 227 } 228 228 cExecute("$this.exporteml.export_all",hand_export,"folder="+ttree.FOLDER); 229 write_msg(get_lang('You must wait while the messages will be export ...'));229 write_msg(get_lang('You must wait while the messages will be exported...')); 230 230 } 231 231 -
trunk/expressoMail1_2/js/common_functions.js
r51 r53 44 44 window.onbeforeunload = unloadMess; 45 45 function unloadMess(){ 46 var mess = get_lang("Your message has not been sent . You will discard your message.");46 var mess = get_lang("Your message has not been sent and will be discarted."); 47 47 for(var i = 0; i < BordersArray.length;i++) { 48 48 var body = Element('body_'+BordersArray[i].sequence); -
trunk/expressoMail1_2/js/draw_api.js
r51 r53 38 38 tree_folders = new dFTree({name: 'tree_folders'}); 39 39 40 var n_root = new dNode({id:'root', caption: 'Minhas Pastas'});40 var n_root = new dNode({id:'root', caption: get_lang("My Folders")}); 41 41 tree_folders.add(n_root,'anything'); //Places the root; second argument can be anything. 42 42 … … 51 51 else if (folders[i].folder_parent == 'user'){ 52 52 if (!tree_folders.getNodeById('user')){ 53 var n_root_shared_folders = new dNode({id:'user', caption: 'Pastas compartilhadas', plusSign:true});53 var n_root_shared_folders = new dNode({id:'user', caption:get_lang("Shared folders"), plusSign:true}); 54 54 tree_folders.add(n_root_shared_folders,'root'); 55 55 } … … 83 83 } 84 84 if(folder_create != ""){ 85 if(confirm( "Existem pastas com formato inválido.Deseja corrigi-las?")){85 if(confirm(get_lang("There are folders with invalid format. Do you want to fix them?"))){ 86 86 var handler_correct_folders = function(data){ 87 87 //Timeout to release HTTPRequest , loadScript and update tree folders. … … 815 815 var option_reply_without_history = '<span class="message_options" onclick=new_message("reply_without_history","'+ID+'");>'+get_lang("Reply without history")+'</span> | '; 816 816 var option_reply_to_all_without_history = '<span class="message_options" onclick=new_message("reply_to_all_without_history","'+ID+'");>'+get_lang("Reply to all without history")+'</span> | '; 817 var option_source_msg = '<span class="message_options" onclick=source_msg("'+ID+'","'+url_encode(info_msg.msg_folder)+'");>'+get_lang(" Font Message")+'</span>';817 var option_source_msg = '<span class="message_options" onclick=source_msg("'+ID+'","'+url_encode(info_msg.msg_folder)+'");>'+get_lang("Message Font")+'</span>'; 818 818 819 819 div_other_options.innerHTML = option_mark_as + option_mark_as_unseen + option_mark_as_important + option_mark_as_normal + option_move + option_reply_to_all + option_reply_without_history + option_reply_to_all_without_history + option_source_msg; … … 1189 1189 if ((preferences.save_in_folder == '-1') || (preferences.save_in_folder == '')){ 1190 1190 var option_send = '<span class="message_options" onclick=send_message("'+ID+'","null","null");>'+get_lang("Send")+'</span> | '; 1191 var option_send_and_file= '<span class="message_options" onclick=wfolders.makeWindow("'+ID+'","send_and_file");>'+get_lang("Send and File")+'</span> | ';1191 var option_send_and_file= '<span class="message_options" onclick=wfolders.makeWindow("'+ID+'","send_and_file");>'+get_lang("Send and Store")+'</span> | '; 1192 1192 } 1193 1193 else{ … … 1292 1292 var img_search = document.createElement("IMG"); 1293 1293 img_search.src = "./templates/default/images/search.gif"; 1294 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key forshortcut.');1294 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 1295 1295 img_search.onclick = function () {emQuickSearch(document.getElementById('to_'+ID).value, 'to', ID);}; 1296 1296 var span_search = document.createElement("SPAN"); … … 1375 1375 img_search.src = "./templates/default/images/search.gif"; 1376 1376 img_search.onclick = function () {emQuickSearch(document.getElementById('cc_'+ID).value, 'cc', ID)} 1377 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key forshortcut.');1377 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 1378 1378 var span_search = document.createElement("SPAN"); 1379 1379 span_search.innerHTML = get_lang('Search'); … … 1455 1455 var img_search = document.createElement("IMG"); 1456 1456 img_search.src = "./templates/default/images/search.gif"; 1457 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key forshortcut.');1457 img_search.title = get_lang('Search') + " | " + get_lang('Use F9 Key as shortcut.'); 1458 1458 img_search.onclick = function () {emQuickSearch(document.getElementById('cco_'+ID).value, 'cco', ID);}; 1459 1459 var span_search = document.createElement("SPAN"); … … 1835 1835 if(value > 90) { 1836 1836 if(value >= 100) 1837 write_msg(get_lang("Your Mailbox is 100% full! You must tofree more space or will not receive messages."));1837 write_msg(get_lang("Your Mailbox is 100% full! You must free more space or will not receive messages.")); 1838 1838 else 1839 1839 write_msg(get_lang("Warning: Your Mailbox is almost full!")); -
trunk/expressoMail1_2/js/filter.js
r41 r53 228 228 var form = ""; 229 229 form = "<div id='div_rule' style='display:none'><table id='table_rule' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 230 "<tr><td colspan='2'><input type='checkBox' id='checkBox1' name='checkb'>"+get_lang(' To also check message against next rule') + "</td></tr>"+231 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' name='checkb'>"+get_lang(' To keep a copy of the message in its Box of Entrance')+ "</td><tr>"+230 "<tr><td colspan='2'><input type='checkBox' id='checkBox1' name='checkb'>"+get_lang('Also check message against next rule') + "</td></tr>"+ 231 "<tr><td colspan='2'><input type='checkBox' id='checkBox2' name='checkb'>"+get_lang('Keep a copy of the message at your Inbox')+ "</td><tr>"+ 232 232 "<tr><td colspan='2'><hr size='1' width='100%'></td></tr><tr>"+ 233 233 "<td rowspan='4' width='20%'>"+get_lang('Coincident')+"<br><select id='select_rules' name='select_rules'>"+ … … 241 241 "</tr><tr><td colspan='2'><hr size='1' width='100%'></td></tr>"+ 242 242 "</table><table id='table_rule1' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 243 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang(' To file')+".:</td>"+243 "<tr><td width='50%'><input type='radio' id='radio1' name='radio' value='folder'>"+get_lang('Store at')+".:</td>"+ 244 244 "<td width='50%'><select id='select_mailboxes' name='select_mailboxes'></select></td>"+ 245 "</tr><tr><td width='50%'><input type='radio' id='radio2' name='radio' value='address'>"+get_lang(' It directs forthe address')+".:</td>"+245 "</tr><tr><td width='50%'><input type='radio' id='radio2' name='radio' value='address'>"+get_lang('Forward to the address')+".:</td>"+ 246 246 "<td width='50%'><input type='text' id='field5' name='field5' size='35' maxlength='70'></td>"+ 247 "</tr><tr><td width='50%'><input type='radio' id='radio3' name='radio' value='reject'>"+get_lang(' It sendsa rejection message')+".:</td>"+247 "</tr><tr><td width='50%'><input type='radio' id='radio3' name='radio' value='reject'>"+get_lang('Send a rejection message')+".:</td>"+ 248 248 "<td width='50%'><textarea id='field6' name='field6' rows='3' cols='25'></textarea></td>"+ 249 "</tr><tr><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang(' It erasesthe message')+"</td>"+249 "</tr><tr><td colspan='2'><input type='radio' id='radio4' name='radio' value='discard'>"+get_lang('Erase the message')+"</td>"+ 250 250 "</tr></table></div><div id='div_vacation' style='display:none'>"+ 251 251 "<table id='table_vacation' border='0' cellpading='0' cellspacing='0' width='100%'>"+ 252 "<tr><td width='40%' valign='top'>"+get_lang(' To answer messages sent')+":<select multiple id='select_1' name='select_1' size='6' style='width:250px'></select></td>"+252 "<tr><td width='40%' valign='top'>"+get_lang('Reply sent messages to')+":<select multiple id='select_1' name='select_1' size='6' style='width:250px'></select></td>"+ 253 253 "<td width='8%'><table border='0' cellpading='0' cellspacing='0' width='100%'>"+ 254 254 "<tr><td align='right' valign='top'><br><a href=javascript:void(0) onclick='filter.box_select(0);'><<</a> <br><br></td>"+ … … 256 256 "</tr></table></td><td width='52%' valign='top'>"+get_lang('Emails of the account')+":<br><select multiple id='select_2' name='select_2' size='6' style='width:250px'></select>"+ 257 257 "</td></tr><tr><td colspan='3'><hr size='1' width='100%'></td>"+ 258 "</tr><tr><td colspan='3'>"+get_lang('During (days are of the office)')+": <input type='text' id='select_days' size='3'> "+get_lang('day(s)')+"</td>"+258 "</tr><tr><td colspan='3'>"+get_lang('During (days off the office)')+": <input type='text' id='select_days' size='3'> "+get_lang('day(s)')+"</td>"+ 259 259 "</tr><tr><td colspan='3'><hr size='1' width='100%'></td></tr><tr><td colspan='3'>"+get_lang('With the following message')+".:</td>"+ 260 260 "</tr><tr><td colspan='3'><textarea id='field8' rows='3' cols='50'></textarea></td></tr></table></div>"+ 261 "<span align='right'><input type='button' value="+get_lang("to comeback")+" onclick='filter.form_m()'></span>"+262 "<span align='right'><input type='button' value="+get_lang(" to save")+" onclick='filter.saved_rules()'></span>";261 "<span align='right'><input type='button' value="+get_lang("to go back")+" onclick='filter.form_m()'></span>"+ 262 "<span align='right'><input type='button' value="+get_lang("Save")+" onclick='filter.saved_rules()'></span>"; 263 263 return form; 264 264 } … … 316 316 var emailReg = /^[a-z][a-z-_0-9\.]+@[a-z-_=>0-9\.]+\.[a-z]{2,3}$/i 317 317 if(!emailReg.test(email)){ 318 alert(get_lang("I t informs a valid email!"));318 alert(get_lang("Inform a valid e-mail!")); 319 319 return false; 320 320 } … … 404 404 if(LTrim(Element("field1").value) == "" && LTrim(Element("field2").value) == "" && LTrim(Element("field3").value) == "" && Element("field4").value == "") 405 405 { 406 alert(get_lang(" It defines criteria forthe fields From, To and Subject with more than 3 characters!"));406 alert(get_lang("Define some criterion to the fields From, To and Subject with more than 3 characters!")); 407 407 return false; 408 408 } 409 409 410 410 if((LTrim(Element("field1").value).length <= 3) && (LTrim(Element("field2").value).length <= 3) && (LTrim(Element("field3").value).length <= 3 && Element("field4").value == "")){ 411 alert(get_lang(" It defines criteria forthe fields From, To and Subject with more than 3 characters!"));411 alert(get_lang("Define some criterion to the fields From, To and Subject with more than 3 characters!")); 412 412 return false; 413 413 } … … 424 424 mount_rule += "address&&"; 425 425 if(Element("field5").value == ""){ 426 alert(get_lang("I t informs a guiding email!"));426 alert(get_lang("Inform a forwarding e-mail!")); 427 427 return false; 428 428 }else{ … … 431 431 mount_rule += Element("field5").value + "&&"; 432 432 }else{ 433 alert(get_lang("I t informs a valid email!"));433 alert(get_lang("Inform a valid e-mail!")); 434 434 return false; 435 435 } … … 440 440 mount_rule += "reject&&"; 441 441 if(Element("field6").value == ""){ 442 alert(get_lang("I t informsa text for rejection!"));442 alert(get_lang("Inform a text for rejection!")); 443 443 return false; 444 444 }else{ … … 452 452 } 453 453 if(!v_checked){ 454 alert(get_lang("No option was notmarked!"));454 alert(get_lang("No option marked!")); 455 455 return false; 456 456 } … … 481 481 mount_rule += fld_days.value + "&&"; 482 482 }else{ 483 alert(get_lang("I t informsbetween 1 and 31!"));483 alert(get_lang("Inform between 1 and 31!")); 484 484 return false; 485 485 } 486 486 }else{ 487 alert(get_lang("I t informsthe days!"));487 alert(get_lang("Inform the days!")); 488 488 return false; 489 489 } … … 496 496 mount_rule += fld_men.value + "&&on "; 497 497 }else{ 498 alert(get_lang("I t informs email(s) for guiding!"));498 alert(get_lang("Inform the forwarding e-mail(s)!")); 499 499 return false; 500 500 } 501 501 if(LTrim(fld_men.value) == ""){ 502 alert(get_lang("I t informsa message!"));502 alert(get_lang("Inform a message!")); 503 503 return false; 504 504 } -
trunk/expressoMail1_2/js/filters.js
r2 r53 44 44 form_buttons.innerHTML = "<input type='button' value="+get_lang("Enable")+" onclick='filter.enabled_disabled(\"ENABLED\");'>"+ 45 45 " <input type='button' value="+get_lang("Disable")+" onclick='filter.enabled_disabled(\"DISABLED\");'>"+ 46 " <input type='button' value="+get_lang(" to remove")+" onclick='filter.delete_r();'>"+47 " <input type='button' value="+get_lang(" to close")+" onclick='filter.close_frm();'>";46 " <input type='button' value="+get_lang("Remove")+" onclick='filter.delete_r();'>"+ 47 " <input type='button' value="+get_lang("Close")+" onclick='filter.close_frm();'>"; 48 48 49 49 form.appendChild(form_buttons); … … 107 107 cfilterSh.prototype.vl_rule = function(rule,pos){ 108 108 var aux = rule.split("&&"); 109 return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"')><b>" + get_lang("Status") + " :</b>" + "<font color='red'>" + get_lang(aux[2]) + "</font>" + "- <b>" + get_lang(" rule of the email") + ":</b> " + aux[3] + " - <b>" + get_lang("Action") + ":</b> " + aux[6] + "</a>";109 return " <a href='javascript:void(0)' onclick=filter.form_r('"+pos+"')><b>" + get_lang("Status") + " :</b>" + "<font color='red'>" + get_lang(aux[2]) + "</font>" + "- <b>" + get_lang("E-mail rule") + ":</b> " + aux[3] + " - <b>" + get_lang("Action") + ":</b> " + aux[6] + "</a>"; 110 110 } 111 111 112 112 cfilterSh.prototype.vl_outOffice = function(outOffice){ 113 113 var aux = outOffice.split("&&"); 114 return " <a href='javascript:void(0)' onclick=filter.form_out()><b>" + get_lang(" to answer messages of") + " :</b>" + aux[2] + "- <b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + aux[4] + "</font>" + "- <b>" + get_lang("message") + ":</b> " + aux[3] + "</a>";114 return " <a href='javascript:void(0)' onclick=filter.form_out()><b>" + get_lang("Answer messages from") + " :</b>" + aux[2] + "- <b>" + get_lang("Status") + " : </b>" + "<font color='red'>" + aux[4] + "</font>" + "- <b>" + get_lang("message") + ":</b> " + aux[3] + "</a>"; 115 115 } 116 116 … … 159 159 div.style.position = "absolute"; 160 160 div.style.zIndex = "10000"; 161 var title = ':: ' + get_lang(' Management of filters') + ' - ' + get_lang('maintenance of filters') + ':: ';161 var title = ':: ' + get_lang('Filters management') + ' - ' + get_lang('filters maintenance') + ':: '; 162 162 var wHeight = div.offsetHeight + "px"; 163 163 var wWidth = div.offsetWidth + "px"; -
trunk/expressoMail1_2/js/main.js
r51 r53 175 175 176 176 if(typeof(data) == 'string' && data.match(/^(.*)TRYCREATE(.*)$/)){ 177 alert( "Sua pasta Lixeira não está criada. É necessário criar para que funcione corretamente.");177 alert(get_lang('Its Lixeira folder is not created. It is necessary to create so that it functions correctly.')); 178 178 return false; 179 179 } … … 205 205 206 206 if (folder == new_folder){ 207 write_msg(get_lang('The folders of origin and destination are the same ones.'));207 write_msg(get_lang('The origin folder and the destination folder are the same.')); 208 208 return; 209 209 } … … 762 762 if (msgs_to_export) { 763 763 cExecute ("$this.exporteml.makeAll", handler_export_all_selected_msgs, "folder="+get_current_folder()+"&msgs_to_export="+msgs_to_export); 764 write_msg(get_lang('You must wait while the messages will be export ...'));764 write_msg(get_lang('You must wait while the messages will be exported...')); 765 765 } 766 766 else -
trunk/expressoMail1_2/js/preferences.js
r2 r53 24 24 form.innerHTML = "<table border='0' cellpading='0' cellspacing='0'>"+ 25 25 "<tr><td colspan='2'><center>" + get_lang('Config for expressoMail1_2') + "</center></td></tr>"+ 26 "<tr><td nowrap> - " + get_lang('Max number of e-mails for page') + "</td>"+26 "<tr><td nowrap> - " + get_lang('Max number of e-mails per page') + "</td>"+ 27 27 "<td> <select id='sel_num_max' name='sel_num_max'>"+ 28 28 "<option value='25'>25</option>"+ … … 35 35 "<td><input type='checkBox' id='check_save_men' name='check_save_men'></td>"+ 36 36 "</tr>"+ 37 "<tr><td nowrap> - " + get_lang('Delete trash messages after ndays?') + "</td>"+37 "<tr><td nowrap> - " + get_lang('Delete trash messages after how many days?') + "</td>"+ 38 38 "<td> <select id='sel_del_men' name='sel_del_men'>"+ 39 "<option value='0'> Não usar</option>"+39 "<option value='0'>" + get_lang('Not use') + "</option>"+ 40 40 "<option value='1'>1 dia</option>"+ 41 41 "<option value='2'>2 dias</option>"+ … … 48 48 "<td><input type='checkBox' id='check_show_previous' name='check_show_previous'></td>"+ 49 49 "</tr>"+ 50 "<tr><td nowrap> - " + get_lang('Do you wan nareceive an alert for new messages?') + "</td>"+50 "<tr><td nowrap> - " + get_lang('Do you want receive an alert for new messages?') + "</td>"+ 51 51 "<td><input type='checkBox' id='check_alert' name='check_alert'></td>"+ 52 52 "</tr>"+ 53 "<tr><td nowrap> - " + get_lang('Show default view on main screen') + "</td>"+53 "<tr><td nowrap> - " + get_lang('Show ExpressoMail summary at main screen?') + "</td>"+ 54 54 "<td><input type='checkBox' id='check_view' name='check_view'></td>"+ 55 55 "</tr>"+ 56 "<tr><td nowrap> - " + get_lang(' save sent messages in folder named below') + "</td>"+56 "<tr><td nowrap> - " + get_lang('Auto-save sent messages in folder:') + "</td>"+ 57 57 "<td> <select style='width:125px' id='sel_name_box' name='sel_name_box'></select></td>"+ 58 58 "</tr>"+ … … 83 83 form_pref.appendChild(form); 84 84 var sel_nm = Element("sel_name_box"); 85 var opt = new Option(get_lang(" The user select"),"-1",true,true);85 var opt = new Option(get_lang("Select the user"),"-1",true,true); 86 86 sel_nm.options[sel_nm.length] = opt; 87 87 for(var i=0; i < folders.length; i++){ -
trunk/expressoMail1_2/js/rich_text_editor.js
r2 r53 208 208 if (is_ie){ 209 209 if ((mainField.document.selection.createRange().text) == ''){ 210 alert('Primeiro, selecione o texto que deseja transformar em link.');210 alert(get_lang('Chose the text you want transform in link before.')); 211 211 return; 212 212 } … … 214 214 else{ 215 215 if (mainField.window.getSelection() == ''){ 216 alert('Primeiro, selecione o texto que deseja transformar em link.');216 alert(get_lang('Chose the text you want transform in link before.')); 217 217 return; 218 218 } 219 219 } 220 var szURL = prompt("Entre com a URL do link:", "http://");220 var szURL = prompt(get_lang('Enter with link URL:", "http://"')); 221 221 if ((szURL != null) && (szURL != "")){ 222 222 this.editorCommand("CreateLink", szURL); -
trunk/expressoMail1_2/js/search.js
r2 r53 55 55 "<span id='num_search_results'></span></td>"+ 56 56 "<td><input type='button' value=" + get_lang('Search') + " onclick='EsearchE.func_search()'></td>"+ 57 "<td><input type='button' value=" + get_lang(' to clean') + " onclick='EsearchE.func_clean()'></td>"+58 "<td><input type='button' value=" + get_lang(' to close') + " onclick='EsearchE.func_close(\"close\")'></td>"+57 "<td><input type='button' value=" + get_lang('Clean') + " onclick='EsearchE.func_clean()'></td>"+ 58 "<td><input type='button' value=" + get_lang('Close') + " onclick='EsearchE.func_close(\"close\")'></td>"+ 59 59 "<td><input type='button' value=" + get_lang('Hide Search') + " onclick='EsearchE.func_close(\"hidden\")'></td>"+ 60 60 "</tr>"+ … … 67 67 table_layer.id = "table_layer"; 68 68 table_layer.innerHTML = "<br><table border='0' cellpading='0' cellspacing='0' width='100%'>"+ 69 70 "<td width='20%' style='background:#C0C0C0'><b>Pasta</b></td>"+71 "<td width='30%' style='background:#C0C0C0'><b>Quem</b></td>"+72 "<td width='30%' style='background:#C0C0C0'><b>Assunto</b></td>"+73 "<td width='10%' style='background:#C0C0C0'><b>Data</b></td>"+74 "<td width='10%' style='background:#C0C0C0' align='left'><b>Tamanho</b></td>"+75 "</tr>"+69 "<tr>"+ 70 "<td width='20%' style='background:#C0C0C0'><b>" + get_lang('Folder') + "</b></td>"+ 71 "<td width='30%' style='background:#C0C0C0'><b>" + get_lang('Who') + "</b></td>"+ 72 "<td width='30%' style='background:#C0C0C0'><b>" + get_lang('Subject') + "</b></td>"+ 73 "<td width='10%' style='background:#C0C0C0'><b>" + get_lang('Date') + "</b></td>"+ 74 "<td width='10%' style='background:#C0C0C0' align='left'><b>" + get_lang('Size') + "</b></td>"+ 75 "</tr>"+ 76 76 "</table>"; 77 77 table_layer.style.position = "absolute"; … … 117 117 form_sch.innerHTML = "<table id='table_princ' border='0' cellpading='0' cellspacing='0' align='center'>"+ 118 118 "<tr>"+ 119 "<td colspan='2'><b>" + get_lang('I t informs the search in the boxes of text') + " :</b></td>"+119 "<td colspan='2'><b>" + get_lang('Inform your search in the text fields') + " :</b></td>"+ 120 120 "<td rowspan='7'> "+ 121 121 "</td>"+ … … 123 123 "<table border='0' cellpading='0' cellspacing='0'>"+ 124 124 "<tr>"+ 125 "<td colspan='3' valign='top'> <b>" + get_lang(' It searchesmessages in these folders') + " :</b></td>"+125 "<td colspan='3' valign='top'> <b>" + get_lang('Searche the messages in these folders') + " :</b></td>"+ 126 126 "</tr>"+ 127 127 "<tr>"+ … … 373 373 fields += "##"; 374 374 if(fields == "####"){ 375 alert(get_lang("Define some parameters to search!"));375 alert(get_lang("Define some parameters!")); 376 376 return false; 377 377 } -
trunk/expressoMail1_2/js/sharemailbox.js
r2 r53 163 163 '<tr><td>'+ 164 164 '<table border=0><tbody><tr><td colspan=2>'+ 165 get_lang(' Right of access')+':'+165 get_lang('Access right')+':'+ 166 166 '</td></tr>'+ 167 167 '<tr><td>'+get_lang('Read')+':</td><td><input id=\'em_input_readAcl\' onClick="return sharemailbox.setaclfromuser();" type="checkbox"><img title="'+get_lang("hlp_msg_read_acl")+'." src=\'./templates/default/images/ajuda.jpg\'></td></tr>'+ -
trunk/expressoMail1_2/js/wfolders.js
r2 r53 36 36 } 37 37 if (type == 'save') 38 butt.value = 'Salvar';38 butt.value = get_lang('Save'); 39 39 else if (type == 'send_and_file') 40 butt.value = 'Enviar e Arquivar'; 40 butt.value = get_lang('Send and File'); 41 41 else if (type == 'move_to') 42 42 butt.value = get_lang('Move'); … … 108 108 div.style.width = "275px"; 109 109 div.style.height = "250px"; 110 var title = 'Selecione uma pasta:';110 var title = get_lang('Select a box:'); 111 111 var wHeight = div.offsetHeight + "px"; 112 112 var wWidth = div.offsetWidth + "px";
Note: See TracChangeset
for help on using the changeset viewer.