Changeset 3400


Ignore:
Timestamp:
10/22/10 13:44:09 (14 years ago)
Author:
brunocosta
Message:

Ticket #891 - Implementação do correção ortográfica.

Location:
branches/2.2/expressoMail1_2
Files:
30 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/hook_settings.inc.php

    r3388 r3400  
    114114create_check_box('Do you want to use remove attachments function?','remove_attachments_function','It allow you to remove attachments from messages'); 
    115115create_check_box('Do you want to use important flag in email editor?','use_important_flag','It allow you to send emails with important flag, but you can receive unwanted messages with important flag'); 
    116  
     116create_check_box('Do you want to use SpellChecker in email editor?','use_SpellChecker','It allow you to check the spelling of your emails'); 
    117117//Use user folders from email 
    118118if ($type != "" && $type != "user"){ 
  • branches/2.2/expressoMail1_2/index.php

    r3388 r3400  
    2525        echo '<script type="text/javascript" src="../phpgwapi/js/wz_dragdrop/wz_dragdrop.js?'.$update_version.'"></script> 
    2626                <script type="text/javascript" src="../phpgwapi/js/dJSWin/dJSWin.js?'.$update_version.'"></script>'; 
     27 
     28 
     29 
    2730         
    2831        //Enable/Disable VoIP Service -> Voip Server Config 
     
    8992        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['from_to_sent'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['from_to_sent'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['from_to_sent'] : "0"; 
    9093        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_create_local'] : "0"; 
    91  
     94        $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] : "0"; 
     95 
     96        //SpellChecker 
     97        if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_SpellChecker'] !='0'){ 
     98            echo '<link rel="stylesheet" type="text/css" href="spell_checker/css/spell_checker.css">'; 
     99            echo '<script src="spell_checker/cpaint/cpaint2.inc.js" type="text/javascript"></script>'; 
     100            echo ' <script src="spell_checker/js/spell_checker.js" type="text/javascript"></script>'; 
     101        } 
     102         
    92103        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
    93104        $template->set_var("txt_loading",lang("Loading")); 
  • branches/2.2/expressoMail1_2/js/main.js

    r3387 r3400  
    13711371        set_border_caption("border_id_" + new_border_ID, title); 
    13721372 
     1373        if(!expresso_offline && preferences.use_SpellChecker != '0') 
     1374            setupSpellChecker(); 
     1375 
    13731376        return new_border_ID; //Preciso retornar o ID da nova mensagem. 
    13741377} 
  • branches/2.2/expressoMail1_2/js/rich_text_editor.js

    r3238 r3400  
    238238                div_button_rt.appendChild(img); 
    239239        } 
     240        if(preferences.use_SpellChecker != '0'){ 
     241            selectBox=document.createElement("SELECT"); 
     242            selectBox.id="selectLanguage"; 
     243            selectBox.setAttribute("tabIndex","-1"); 
     244            selectBox.setAttribute("unselectable","on"); 
     245            selectBox.className = 'select_richtext'; 
     246            selectBox.onchange = function () {RichTextEditor.Select("selectLanguage");}; 
     247            var option1 = new Option(get_lang("Portuguese"),"pt_BR" ); 
     248            option1.selected = true; 
     249            var option2 = new Option(get_lang("English"),'en'); 
     250            var option3 = new Option(get_lang("Spanish"),'es'); 
     251            if (is_ie){ 
     252                    selectBox.add(option1); 
     253                    selectBox.add(option2); 
     254                    selectBox.add(option3); 
     255            } 
     256            else{ 
     257                    selectBox.add(option1, null); 
     258                    selectBox.add(option2, null); 
     259                    selectBox.add(option3, null); 
     260            } 
     261            div_button_rt.appendChild(selectBox); 
     262 
     263            // spellCheck button 
     264            var img = document.createElement("IMG"); 
     265            img.id = "spellCheck"; 
     266            img.className = 'imagebutton'; 
     267            img.align = 'center'; 
     268            img.src = './templates/'+template+'/images/'+img.id+'.gif'; 
     269            img.title = get_lang(img.id); 
     270            img.style.cursor = 'pointer'; 
     271            img.onclick = function () {RichTextEditor.editorCommand(this.id,'');}; 
     272            img.onmouseover = function () {this.style.border="outset 2px";}; 
     273            img.onmouseout = function () {this.style.border="solid 2px #C0C0C0";}; 
     274            div_button_rt.appendChild(img); 
     275        } 
     276 
    240277 
    241278        td.appendChild(div_button_rt); 
     
    281318                else if (command == 'Image') 
    282319                        mainField.document.execCommand('InsertImage', false, option); 
     320                else if (command == 'spellCheck' && preferences.use_SpellChecker != '0'){ 
     321                        beginSpellCheck(); // configure 
     322                        spellCheck(); // run spellChecker 
     323                } 
    283324                else 
    284325                        mainField.document.execCommand(command, false, option); 
  • branches/2.2/expressoMail1_2/setup/phpgw_pt-br.lang

    r3388 r3400  
    142142Enabling this options you will be able to store messages in your local computer expressoMail1_2 pt-br   Ao ativar esta opção você será capaz de armazenar mensagens no seu computador local 
    143143End of archive messages expressoMail1_2 pt-br   Fim do arquivamento de mensagens 
     144English expressoMail1_2 pt-br   Inglês 
    144145Enter a name for the box        expressoMail1_2 pt-br   Entre com um nome para a caixa 
    145146Enter the name of the new folder:       expressoMail1_2 pt-br   Insira o nome da nova pasta:  
     
    361362Phone Warnings List     expressoMail1_2 pt-br   Lista de Alertas Telefônicos 
    362363Postfix with LDAP       expressoMail1_2 pt-br   Postfix with LDAP 
     364Portuguese      expressoMail1_2 pt-br   Português 
    363365Preferences     expressoMail1_2 pt-br   Preferências 
    364366Preview message text within a tool-tip box      expressoMail1_2 pt-br   Pré-visualizar a mensagem em uma caixa tool-tip? 
     
    460462Spam    expressoMail1_2 pt-br   Spam 
    461463Spam Folder name        admin   pt-br   Nome da pasta spam 
     464Spanish expressoMail1_2 pt-br   Espanhol 
     465SpellCheck      expressoMail1_2 pt-br   Corretor Ortográfico 
    462466standard IMAP server    expressoMail1_2 pt-br   servidor padrão de IMAP 
    463467standard POP3 server    expressoMail1_2 pt-br   servidor padrão de POP3 
     
    612616Enable this option if you want to automaticaly create the Inbox, Draft, Trash and Sent folders  expressoMail1_2 pt-br   Ative essa opção para que as pastas Caixa de entrada, Lixeira, Enviada e Rascunhos sejam criadas automáticamente no arquivamento local. 
    613617View extended information about users?  expressoMail1_2 pt-br   Ver informações extendidas nas buscas por usuários? 
     618Do you want to use SpellChecker in email editor?        expressoMail1_2 pt-br   Quer usar o corretor ortográfico no editor de emails? 
     619It allow you to check the spelling of your emails       expressoMail1_2 pt-br   Possiblita a correção ortográfica de emails. 
Note: See TracChangeset for help on using the changeset viewer.