X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fsqspell_config.php;h=ff139b5deb22c63b86d2e1619ff642bbf1211454;hb=47ccfad452e8d345542d09e59112cac317cffed8;hp=b51c9597e67dc43928d3b2f8a82fd5cccf2c5116;hpb=d112ed5aeee62953707e7042a1edc8e8c2b6a968;p=squirrelmail.git diff --git a/plugins/squirrelspell/sqspell_config.php b/plugins/squirrelspell/sqspell_config.php index b51c9597..ff139b5d 100644 --- a/plugins/squirrelspell/sqspell_config.php +++ b/plugins/squirrelspell/sqspell_config.php @@ -1,33 +1,98 @@ + * $SQSPELL_APP = array('English' => 'ispell -a'); + * or + * $SQSPELL_APP = array('English' => '/usr/local/bin/aspell -a'); + * + * Sometimes you have to specify full path for PHP to find it. + * + * You can use Aspell or Ispell spellcheckers, the command line is the + * same. Aspell might provide better spellchecking for Western languages. + * + * If you want to have more than one dictionary available to users, + * configure the array to look something like this: + *
+ *   $SQSPELL_APP = array('English' => 'aspell -a',
+ *                        'Russian' => 'ispell -d russian -a',
+ *                        ...
+ *                        'Swahili' => 'ispell -d swahili -a'
+ *                        );
+ *
+ * WARNINGS: + * + *
  * Example:
+ * $SQSPELL_APP = array('English' => 'ispell -a',
+ *                      'Spanish' => 'ispell -d spanish -a' );
+ * 
* - * $SQSPELL_APP = array( 'English' => 'ispell -a', - * 'Spanish' => 'ispell -d spanish -a' ); + * @global array $SQSPELL_APP + */ +$SQSPELL_APP = array('English' => 'ispell -a', + 'Spanish' => 'ispell -d spanish -a'); + +/** + * Default dictionary + * @global string $SQSPELL_APP_DEFAULT */ -$SQSPELL_APP = array('English' => 'ispell -a'); $SQSPELL_APP_DEFAULT = 'English'; -$SQSPELL_WORDS_FILE = + +/** + * File that stores user's dictionary + * + * $SQSPELL_WORDS_FILE is a location and mask of a user dictionary file. + * The default setting should be OK for most everyone. + * + * This setting is used only when SquirrelSpell is upgraded from + * older setup. Since SquirrelMail 1.5.1 SquirrelSpell stores all settings in + * same place that stores other SquirrelMail user preferences. + * @global string $SQSPELL_WORDS_FILE + * @deprecated setting is still needed in order to handle upgrades + */ +$SQSPELL_WORDS_FILE = getHashedFile($username, $data_dir, "$username.words"); +/** + * Function used for checking words in user's dictionary + * @global string $SQSPELL_EREG + * @deprecated It is not used since 1.5.1 (sqspell 0.5) + */ $SQSPELL_EREG = 'ereg'; -$SQSPELL_SOUP_NAZI = 'Mozilla/3, Mozilla/2, Opera 4, Opera/4, ' - . 'Macintosh, OmniWeb'; ?>