X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmail_fetch%2Ffetch.php;h=898cecc0275c33c2f3c46c34e569af001278703d;hb=1f4daddea072b6196d619973b7d9ce7f27d70058;hp=6025c41464e1ed7e486fd46865fce396031ade50;hpb=6fd953618853477f6ffe569ce3c9733ca9f9c2d0;p=squirrelmail.git diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index 6025c414..898cecc0 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -3,7 +3,7 @@ /** * mail_fetch/fetch.php * - * Copyright (c) 1999-2004 The SquirrelMail Project Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Fetch code. @@ -24,7 +24,7 @@ require_once(SM_PATH . 'plugins/mail_fetch/class.POP3.php'); require_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); require_once(SM_PATH . 'functions/html.php' ); -/* globals */ +/* globals */ sqgetGlobalVar('username', $username, SQ_SESSION); sqgetGlobalVar('key', $key, SQ_COOKIE); sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); @@ -86,7 +86,7 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); echo "' . "\n"; - } + } echo '' . '' . ''; @@ -163,8 +163,8 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); echo '
' . html_tag( 'table', html_tag( 'tr', - html_tag( 'td', '' . _("Fetching from ") . - htmlspecialchars($mailfetch[$i_loop]['alias']) . + html_tag( 'td', '' . _("Fetching from ") . + htmlspecialchars($mailfetch[$i_loop]['alias']) . '', 'center' ) , '', $color[9] ) , @@ -210,7 +210,8 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); continue; } else { $newmsgcount = $Count - $i + 1; - Mail_Fetch_Status(sprintf(_("Login OK: Inbox contains %s messages"), $newmsgcount)); + Mail_Fetch_Status(sprintf(ngettext("Login OK: Inbox contains %s message", + "Login OK: Inbox contains %s messages",$newmsgcount), $newmsgcount)); } Mail_Fetch_Status(_("Fetching UIDL...")); @@ -270,8 +271,8 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); fputs($imap_stream, $Message); fputs($imap_stream, "\r\n"); sqimap_read_data($imap_stream, "A3$i", false, $response, $message); - $response=(implode('',$response)); - $message=(implode('',$message)); + $response=(implode('',$response)); + $message=(implode('',$message)); if ($response != 'OK') { Mail_Fetch_Status(_("Error Appending Message!")." ".htmlspecialchars($message) ); Mail_Fetch_Status(_("Closing POP")); @@ -324,4 +325,4 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); ?> - + \ No newline at end of file