Changeset 2437 in subversion


Ignore:
Timestamp:
May 1, 2009 11:57:33 AM (4 years ago)
Author:
thomasb
Message:

Applied patch for pspell language configuration (#1485822)

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/config/main.inc.php.dist

    r2419 r2437  
    220220// These languages can be selected for spell checking. 
    221221// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch'); 
    222 // Leave empty for default set of Google spell check languages, should be defined 
    223 // when using local Pspell extension 
     222// Leave empty for default set of available language. 
    224223$rcmail_config['spellcheck_languages'] = NULL; 
    225224 
  • trunk/roundcubemail/installer/rcube_install.php

    r2237 r2437  
    245245          'explain' => 'This requires the <tt>pspell</tt> extension which could not be loaded.'); 
    246246      } 
    247       if (empty($this->config['spellcheck_languages'])) { 
    248         $out['dependencies'][] = array('prop' => 'spellcheck_languages', 
    249           'explain' => 'You should specify the list of languages supported by your local pspell installation.'); 
     247      if (!empty($this->config['spellcheck_languages'])) { 
     248        foreach ($this->config['spellcheck_languages'] as $lang => $descr) 
     249          if (!pspell_new($lang)) 
     250            $out['dependencies'][] = array('prop' => 'spellcheck_languages', 
     251              'explain' => "You are missing pspell support for language $lang ($descr)"); 
    250252      } 
    251253    } 
Note: See TracChangeset for help on using the changeset viewer.