4 * sqspell_config.php -- SquirrelSpell Configuration file.
6 * @copyright © 1999-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @subpackage squirrelspell
13 /** vars needed for getHashedFile() */
15 sqgetGlobalVar('username', $username, SQ_SESSION
);
18 * List of configured dictionaries
20 * This feature was added/changed in 0.3. Use this array to set up
21 * which dictionaries are available to users. If you only have
22 * English spellchecker on your system, then let this line be:
24 * $SQSPELL_APP = array('English' => 'ispell -a');
26 * $SQSPELL_APP = array('English' => '/usr/local/bin/aspell -a');
28 * Sometimes you have to specify full path for PHP to find it.
30 * You can use Aspell or Ispell spellcheckers, the command line is the
31 * same. Aspell might provide better spellchecking for Western languages.
33 * If you want to have more than one dictionary available to users,
34 * configure the array to look something like this:
36 * $SQSPELL_APP = array('English' => 'aspell -a',
37 * 'Russian' => 'ispell -d russian -a',
39 * 'Swahili' => 'ispell -d swahili -a'
44 * <li>Watch the commas, making sure there isn't one after your last
45 * dictionary declaration. Also, make sure all these dictionaries
46 * are available on your system before you specify them here.</li>
47 * <li>Whatever your setting is, don't omit the "-a" flag.</li>
48 * <li>Remember to keep same array keys during upgrades. Don't rename them.
49 * Users' dictionary settings use it.</li>
50 * <li>Interface might translate array key, if used key is present in
51 * SquirrelMail translations.</li>
55 * $SQSPELL_APP = array('English' => 'ispell -a',
56 * 'Spanish' => 'ispell -d spanish -a' );
59 * @global array $SQSPELL_APP
61 $SQSPELL_APP = array('English' => 'ispell -a',
62 'Spanish' => 'ispell -d spanish -a');
66 * @global string $SQSPELL_APP_DEFAULT
68 $SQSPELL_APP_DEFAULT = 'English';
71 * File that stores user's dictionary
73 * $SQSPELL_WORDS_FILE is a location and mask of a user dictionary file.
74 * The default setting should be OK for most everyone.
76 * This setting is used only when SquirrelSpell is upgraded from
77 * older setup. Since SquirrelMail 1.5.1 SquirrelSpell stores all settings in
78 * same place that stores other SquirrelMail user preferences.
79 * @global string $SQSPELL_WORDS_FILE
80 * @deprecated setting is still needed in order to handle upgrades
83 getHashedFile($username, $data_dir, "$username.words");
86 * Function used for checking words in user's dictionary
87 * @global string $SQSPELL_EREG
88 * @deprecated It is not used since 1.5.1 (sqspell 0.5)
90 $SQSPELL_EREG = 'ereg';