summaryrefslogtreecommitdiff
path: root/installer/rcube_install.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-05-01 15:57:33 +0000
committerthomascube <thomas@roundcube.net>2009-05-01 15:57:33 +0000
commit01a8c54f76dcbbf4da4be7471dbe04ba7401bec8 (patch)
treed2cec5645ebb3a64534e58e104316922018b86ed /installer/rcube_install.php
parentb20bca7df2eba09a79a1050d2ff36ef799332a08 (diff)
Applied patch for pspell language configuration (#1485822)
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r--installer/rcube_install.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index b2b8257f7..14fe5ee47 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -244,9 +244,11 @@ class rcube_install
$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)");
}
}