Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Applied patch for pspell language configuration (#1485822)

  • Loading branch information...
commit 01a8c54f76dcbbf4da4be7471dbe04ba7401bec8 1 parent b20bca7
Thomas B. authored May 01, 2009
3  config/main.inc.php.dist
@@ -219,8 +219,7 @@ $rcmail_config['spellcheck_uri'] = '';
219 219
 
220 220
 // These languages can be selected for spell checking.
221 221
 // 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.
224 223
 $rcmail_config['spellcheck_languages'] = NULL;
225 224
 
226 225
 // path to a text file which will be added to each sent message
8  installer/rcube_install.php
@@ -244,9 +244,11 @@ function check_config()
244 244
         $out['dependencies'][] = array('prop' => 'spellcheck_engine',
245 245
           'explain' => 'This requires the <tt>pspell</tt> extension which could not be loaded.');
246 246
       }
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)");
250 252
       }
251 253
     }
252 254
     

0 notes on commit 01a8c54

Please sign in to comment.
Something went wrong with that request. Please try again.