- Timestamp:
- 04/12/10 10:27:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expressoMail1_2/corretor_ortografico/spell_checker/spell_checker.php
r2430 r2477 75 75 76 76 //$pspell_link = pspell_new_config($pspell_config); 77 $pspell_link = pspell_new("pt_BR"); 77 78 78 79 79 require_once("cpaint/cpaint2.inc.php"); //AJAX library file … … 98 98 * 99 99 *************************************************************/ 100 function showSuggestions($word, $id )100 function showSuggestions($word, $id, $language) 101 101 { 102 102 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); 104 105 global $cp; //the CPAINT object 105 106 … … 160 161 * 161 162 *************************************************************/ 162 function spellCheck($string, $varName) 163 { 164 global $pspell_link; //the global link to the pspell module 163 function spellCheck($string, $varName, $language) 164 { 165 //global $pspell_link; //the global link to the pspell module 166 $pspell_link = pspell_new($language); 165 167 global $cp; //the CPAINT object 166 168 $retVal = ""; … … 287 289 { 288 290 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"); 290 293 global $cp; //the CPAINT object 291 294 $retVal = "";
Note: See TracChangeset
for help on using the changeset viewer.