Began rework of options page. Also added 3 plugins (filters, translate, and squirrels...
[squirrelmail.git] / plugins / squirrelspell / modules / lang_setup.mod.php
1 <?php
2 /**
3 LANG_SETUP.MOD.PHP
4 ------------------
5 This module displays available dictionaries to the user and lets
6 him/her choose which ones s/he wants to check messages with.
7 **/
8 // Making sure Sqspell doesn't barf when working with E_ALL
9 global $SQSPELL_APP;
10
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\">
15 <blockquote><p>
16 ";
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";
23 $add .= "<option";
24 if ($avail_lang==$langs[0]) $add .= " selected";
25 $add .= ">$avail_lang</option>\n";
26 }
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);
30 ?>