5 This module displays available dictionaries to the user and lets
6 him/her choose which ones s/he wants to check messages with.
8 // Making sure Sqspell doesn't barf when working with E_ALL
11 $msg = "<p>Please check any available international dictionaries which you would like
12 to use when spellchecking:</p>
13 <form method=\"post\">
14 <input type=\"hidden\" name=\"MOD\" value=\"lang_change\">
17 $langs = sqspell_getSettings(null);
18 $add = "<p>Make this dictionary my default selection: <select name=\"lang_default\">\n";
19 while (list($avail_lang, $junk) = each($SQSPELL_APP)){
20 $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" value=\"$avail_lang\"";
21 if (in_array($avail_lang, $langs)) $msg .= " checked";
22 $msg .= ">$avail_lang<br>\n";
24 if ($avail_lang==$langs[0]) $add .= " selected";
25 $add .= ">$avail_lang</option>\n";
27 $msg .= "</p>\n" . $add . "</select>\n";
28 $msg .= "</p></blockquote><p><input type=\"submit\" value=\" Make these changes \"></p>";
29 sqspell_makePage("Add International Dictionaries", null, $msg);