]> git.mjollnir.org Git - moodle.git/commitdiff
Merged support for personal dictionaries in spellchecker
authormoodler <moodler>
Fri, 22 Sep 2006 04:38:32 +0000 (04:38 +0000)
committermoodler <moodler>
Fri, 22 Sep 2006 04:38:32 +0000 (04:38 +0000)
lib/speller/server-scripts/spellchecker.php

index 66946ea43e7030c56fc9c65fbe74b825f064bfa6..b14cad185d6f4f8b134b31664676b4e873754cfe 100644 (file)
@@ -20,6 +20,9 @@ if(!($lang = check_language($aspell_prog))) {
 }
 
 $aspell_opts = '-a -H --lang='. $lang .' --encoding=utf-8';
+if (!empty($CFG->aspellextradicts)) {   // eg /usr/bin/.aspell.en.pws
+    $aspell_opts .= ' --add-extra-dicts='.$CFG->aspellextradicts;
+}
 $tempfiledir = './';
 $input_separator = 'A';