Ignore:
Timestamp:
04/12/10 10:27:29 (14 years ago)
Author:
paula.franceschini
Message:

Ticket #891 - modificações referentes ao corretor ortografico.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/corretor_ortografico/spell_checker/spell_checker.php

    r2430 r2477  
    7575 
    7676//$pspell_link = pspell_new_config($pspell_config); 
    77 $pspell_link = pspell_new("pt_BR"); 
     77 
    7878 
    7979require_once("cpaint/cpaint2.inc.php"); //AJAX library file 
     
    9898 * 
    9999 *************************************************************/ 
    100 function showSuggestions($word, $id) 
     100function showSuggestions($word, $id, $language) 
    101101{ 
    102102        global $editablePersonalDict; //bool to set editability of personal dictionary 
    103         global $pspell_link; //the global link to the pspell module 
     103        //global $pspell_link; //the global link to the pspell module 
     104        $pspell_link = pspell_new($language); 
    104105        global $cp; //the CPAINT object 
    105106         
     
    160161 * 
    161162 *************************************************************/ 
    162 function spellCheck($string, $varName) 
    163 { 
    164         global $pspell_link; //the global link to the pspell module 
     163function spellCheck($string, $varName, $language) 
     164{ 
     165        //global $pspell_link; //the global link to the pspell module 
     166        $pspell_link = pspell_new($language); 
    165167        global $cp; //the CPAINT object 
    166168        $retVal = ""; 
     
    287289{ 
    288290        global $editablePersonalDict; 
    289         global $pspell_link; //the global link to the pspell module 
     291        //global $pspell_link; //the global link to the pspell module 
     292        $pspell_link = pspell_new("pt_BR"); 
    290293        global $cp; //the CPAINT object 
    291294        $retVal = ""; 
Note: See TracChangeset for help on using the changeset viewer.