* @copyright 1999-2014 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage squirrelspell */ global $color; $pre_msg = '

' . _("Please check any words you wish to delete from your dictionary.") . "

\n"; $pre_msg .= "\n"; /** * Get how many dictionaries this user has defined. */ $langs=sqspell_getSettings(); foreach ($langs as $lang) { /** * Get all words from this language dictionary. */ $lang_words = sqspell_getLang($lang); if (! empty($lang_words)){ /** * There are words in this dictionary. If this is the first * language we're processing, prepend the output with the * "header" message. */ if (!isset($msg) || !$msg) { $msg = $pre_msg; } $msg .= "' . '' . "\n"; } } /** * Check if all dictionaries were empty. */ if (! isset($msg)) { $msg = '

' . _("No words in your personal dictionary.") . '

'; } else { $msg .= '
" . sprintf( _("%s dictionary"), $lang ) . '
' . '
' . '' . '' . '' . '' . "
\n"; /** * Do some fancy stuff to separate the words into three * columns. */ for ($j=0; $j\n"; } $msg .= "
\n"; } $msg .= '
" . '' . '

' . "
'; } sqspell_makePage(_("Edit your Personal Dictionary"), null, $msg); /** * For Emacs weenies: * Local variables: * mode: php * End: * vim: syntax=php */