Changing squirrelmail/Squirrelmail to SquirrelMail in some strings as well as other...
[squirrelmail.git] / plugins / squirrelspell / modules / lang_setup.mod
CommitLineData
849bdf42 1<?php
d112ed5a 2/**
3 * lang_setup.mod
4 * ---------------
5 * Squirrelspell module
6 *
6c84ba1e 7 * Copyright (c) 1999-2005 The SquirrelMail development team
d112ed5a 8 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 *
91e0dccc 10 * This module displays available dictionaries to the user and lets
11 * him/her choose which ones s/he wants to check messages with.
d112ed5a 12 *
44d661aa 13 * @author Konstantin Riabitsev <icon@duke.edu>
14 * @version $Id$
15 * @package plugins
16 * @subpackage squirrelspell
d112ed5a 17 */
91e0dccc 18
d112ed5a 19global $SQSPELL_APP;
91e0dccc 20
d112ed5a 21$msg = '<p>'
22 . _("Please check any available international dictionaries which you would like to use when spellchecking:")
23 . '</p>'
24 . '<form method="post">'
04fa3c41 25 . '<input type="hidden" name="MOD" value="lang_change" />'
d112ed5a 26 . '<blockquote><p>';
27/**
28 * Present a nice listing.
29 */
30$langs = sqspell_getSettings(null);
31$add = '<p>'
32 . _("Make this dictionary my default selection:")
33 . " <select name=\"lang_default\">\n";
34while (list($avail_lang, $junk) = each($SQSPELL_APP)){
35 $msg .= "<input type=\"checkbox\" name=\"use_langs[]\" "
36 . "value=\"$avail_lang\"";
37 if (in_array($avail_lang, $langs)) {
5f75494f 38 $msg .= ' checked="checked"';
d112ed5a 39 }
04fa3c41 40 $msg .= ' /> ' . _($avail_lang) . "<br />\n";
d112ed5a 41 $add .= "<option";
42 if ($avail_lang==$langs[0]) {
5f75494f 43 $add .= ' selected="selected"';
d112ed5a 44 }
45 $add .= " value=\"$avail_lang\" >" . _($avail_lang) . "</option>\n";
46}
47$msg .= "</p>\n" . $add . "</select>\n";
91e0dccc 48$msg .= "</p></blockquote><p><input type=\"submit\" value=\" "
04fa3c41 49 . _("Make these changes") . " \" /></p>";
91e0dccc 50sqspell_makePage(_("Add International Dictionaries"), null, $msg);
d112ed5a 51
52/**
53 * For Emacs weenies:
54 * Local variables:
55 * mode: php
56 * End:
2b6b400e 57 * vim: syntax=php
d112ed5a 58 */
91e0dccc 59
04fa3c41 60?>