X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fsquirrelspell%2Fmodules%2Fedit_dic.mod;h=7507d4dd4d79ecfba742bb0c646be3744d457bb5;hb=9eb3fcb302b8e0363760bee586f1c43e7050b365;hp=3ef3988005823b6a69b42338015907e3400d736e;hpb=2a917bbc8c16c3989e6e9c7af86918bfbc7c79a8;p=squirrelmail.git diff --git a/plugins/squirrelspell/modules/edit_dic.mod b/plugins/squirrelspell/modules/edit_dic.mod index 3ef39880..7507d4dd 100644 --- a/plugins/squirrelspell/modules/edit_dic.mod +++ b/plugins/squirrelspell/modules/edit_dic.mod @@ -4,15 +4,15 @@ * ------------- * Squirrelspell module * - * Copyright (c) 1999-2002 The SquirrelMail development team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * This module lets the user edit his/her personal dictionary. * - * $Id$ - * - * @author Konstantin Riabitsev ($Author$) - * @version $Date + * @author Konstantin Riabitsev + * @version $Id$ + * @package plugins + * @subpackage squirrelspell */ global $color; @@ -25,15 +25,15 @@ if (!$words){ * Agt. Smith: "You're empty." * Neo: "So are you." */ - sqspell_makePage(_("Personal Dictionary"), null, - '

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

'); + sqspell_makePage(_("Personal Dictionary"), null, + '

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

'); } else { /** * We're loaded with booty. */ - $pre_msg = '

' - . _("Please check any words you wish to delete from your dictionary.") + $pre_msg = '

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

\n"; $pre_msg .= "\n"; /** @@ -51,19 +51,19 @@ if (!$words){ * language we're processing, prepend the output with the * "header" message. */ - if (!$msg) { - $msg = $pre_msg; + if (!isset($msg) || !$msg) { + $msg = $pre_msg; } $msg .= "' - . '
" - . sprintf( _("%s dictionary"), $langs[$i] ) . '
' - . '
' - . '' - . '' - . '' - . '' - . "' + . '' - . "\n"; + . "\n"; } } /** * Check if all dictionaries were empty. */ - if (!$msg) { + if (! isset($msg)) { $msg = '

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

'; } else { $msg .= '
\n"; + . sprintf( _("%s dictionary"), $langs[$i] ) . '
' + . '' + . '' + . '' + . '' + . '' + . "
\n"; $words_ary=explode("\n", $lang_words); /** * There are two lines we need to remove: @@ -73,29 +73,30 @@ if (!$words){ array_pop($words_ary); array_shift($words_ary); /** - * Do some fancy stuff to separate the words into three + * Do some fancy stuff to separate the words into three * columns. */ for ($j=0; $j\n"; - } - $msg .= " $words_ary[$j]
"; + if ($j==intval(sizeof($words_ary)/3) + || $j==intval(sizeof($words_ary)/3*2)){ + $msg .= "
\n"; + } + $msg .= " ' + . htmlspecialchars($words_ary[$j]) . "
\n"; } $msg .= '
" - . '' - . '

' - . "
" + . '' + . '

' + . "
'; @@ -108,6 +109,7 @@ if (!$words){ * Local variables: * mode: php * End: + * vim: syntax=php */ -?> +?> \ No newline at end of file