From 01a8c54f76dcbbf4da4be7471dbe04ba7401bec8 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 1 May 2009 15:57:33 +0000 Subject: Applied patch for pspell language configuration (#1485822) --- installer/rcube_install.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'installer') 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 pspell 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)"); } } -- cgit v1.2.3