[Svn] r2437 - in trunk/roundcubemail: config installer

trac at roundcube.net trac at roundcube.net
Fri May 1 17:57:33 CEST 2009


Author: thomasb
Date: 2009-05-01 10:57:33 -0500 (Fri, 01 May 2009)
New Revision: 2437

Modified:
   trunk/roundcubemail/config/main.inc.php.dist
   trunk/roundcubemail/installer/rcube_install.php
Log:
Applied patch for pspell language configuration (#1485822)

Modified: trunk/roundcubemail/config/main.inc.php.dist
===================================================================
--- trunk/roundcubemail/config/main.inc.php.dist	2009-04-28 19:30:03 UTC (rev 2436)
+++ trunk/roundcubemail/config/main.inc.php.dist	2009-05-01 15:57:33 UTC (rev 2437)
@@ -219,8 +219,7 @@
 
 // These languages can be selected for spell checking.
 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
-// Leave empty for default set of Google spell check languages, should be defined
-// when using local Pspell extension
+// Leave empty for default set of available language.
 $rcmail_config['spellcheck_languages'] = NULL;
 
 // path to a text file which will be added to each sent message

Modified: trunk/roundcubemail/installer/rcube_install.php
===================================================================
--- trunk/roundcubemail/installer/rcube_install.php	2009-04-28 19:30:03 UTC (rev 2436)
+++ trunk/roundcubemail/installer/rcube_install.php	2009-05-01 15:57:33 UTC (rev 2437)
@@ -244,9 +244,11 @@
         $out['dependencies'][] = array('prop' => 'spellcheck_engine',
           'explain' => 'This requires the <tt>pspell</tt> extension which could not be loaded.');
       }
-      if (empty($this->config['spellcheck_languages'])) {
-        $out['dependencies'][] = array('prop' => 'spellcheck_languages',
-          'explain' => 'You should specify the list of languages supported by your local pspell installation.');
+      if (!empty($this->config['spellcheck_languages'])) {
+        foreach ($this->config['spellcheck_languages'] as $lang => $descr)
+	  if (!pspell_new($lang))
+            $out['dependencies'][] = array('prop' => 'spellcheck_languages',
+              'explain' => "You are missing pspell support for language $lang ($descr)");
       }
     }
     

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list