557c988714d634d6ce2e15c2ff6de5e667f8774f
4 ** LANG_SETUP.MOD.PHP -- Squirrelspell module
6 ** Copyright (c) 1999-2002 The SquirrelMail development team
7 ** Licensed under the GNU GPL. For full terms see the file COPYING.
9 ** This module displays available dictionaries to the user and lets
10 ** him/her choose which ones s/he wants to check messages with.
15 // Making sure Sqspell doesn't barf when working with E_ALL
19 _("Please check any available international dictionaries which you would like to use when spellchecking:").
21 '<form method="post">'.
22 '<input type="hidden" name="MOD" value="lang_change">'.
24 $langs = sqspell_getSettings(null);
26 _("Make this dictionary my default selection:") .
27 " <select name=\"lang_default\">\n";
28 while (list($avail_lang, $junk) = each($SQSPELL_APP)){
29 $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" value=\"$avail_lang\"";
30 if (in_array($avail_lang, $langs)) {
33 $msg .= '> ' . _($avail_lang) . "<br>\n";
35 if ($avail_lang==$langs[0]) {
38 $add .= " value=\"$avail_lang\" >" . _($avail_lang) . "</option>\n";
40 $msg .= "</p>\n" . $add . "</select>\n";
41 $msg .= "</p></blockquote><p><input type=\"submit\" value=\" " . _("Make these changes") . " \"></p>";
42 sqspell_makePage(_("Add International Dictionaries"), null, $msg);