- $SQSPELL_APP = array(
- "English" => "aspell -a",
- "Russian" => "ispell -d russian -a",
- ...
- "Swahili" => "ispell -d swahili -a"
- );
-
- Watch the commas, making sure there isn't one after your last
- dictionary declaration. Also, make sure all these dictionaries
- are available on your system before you specify them here.
-
- Whatever your setting is, don't omit the "-a" flag.
+/**
+ * List of configured dictionaries
+ *
+ * This feature was added/changed in 0.3. Use this array to set up
+ * which dictionaries are available to users. If you only have
+ * English spellchecker on your system, then let this line be:
+ *<pre>
+ * $SQSPELL_APP = array('English' => 'ispell -a');
+ * or
+ * $SQSPELL_APP = array('English' => '/usr/local/bin/aspell -a');
+ *</pre>
+ * 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:
+ *<pre>
+ * $SQSPELL_APP = array('English' => 'aspell -a',
+ * 'Russian' => 'ispell -d russian -a',
+ * ...
+ * 'Swahili' => 'ispell -d swahili -a'
+ * );
+ *</pre>
+ * WARNINGS:
+ * <ul>
+ * <li>Watch the commas, making sure there isn't one after your last
+ * dictionary declaration. Also, make sure all these dictionaries
+ * are available on your system before you specify them here.</li>
+ * <li>Whatever your setting is, don't omit the "-a" flag.</li>
+ * <li>Remember to keep same array keys during upgrades. Don't rename them.
+ * Users' dictionary settings use it.</li>
+ * <li>Interface might translate array key, if used key is present in
+ * SquirrelMail translations.</li>
+ * </ul>
+ * <pre>
+ * Example:
+ * $SQSPELL_APP = array('English' => 'ispell -a',
+ * 'Spanish' => 'ispell -d spanish -a' );
+ * </pre>
+ *
+ * @global array $SQSPELL_APP
+ */
+$SQSPELL_APP = array('English' => 'ispell -a',
+ 'Spanish' => 'ispell -d spanish -a');