X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fcompose.php;h=5eba2878816367548e9deec20d699508692530d1;hb=12e4996a72a0dc29e25fc90bf9edf9dce30f2810;hp=ec6eb201ed0b4dfbe9ee0242b18f0d54a1c3c914;hpb=69bb88aa7887eb7259926da61d80b123db2a0524;p=squirrelmail.git diff --git a/src/compose.php b/src/compose.php index ec6eb201..5eba2878 100644 --- a/src/compose.php +++ b/src/compose.php @@ -237,9 +237,7 @@ function getReplyCitation($orig_from, $orig_date) { /* Otherwise, try to select the desired citation style. */ switch ($reply_citation_style) { case 'author_said': - /** - * To translators: %s is for author's name - */ + // i18n: %s is for author's name $full_reply_citation = sprintf(_("%s wrote:"),$sOrig_from); break; case 'quote_who': @@ -248,15 +246,14 @@ function getReplyCitation($orig_from, $orig_date) { $full_reply_citation = $start . $sOrig_from . $end; break; case 'date_time_author': - /** - * To translators: - * first %s is for date string, second %s is for author's name. Date uses - * formating from "D, F j, Y g:i a" and "D, F j, Y H:i" translations. - * Example string: - * "On Sat, December 24, 2004 23:59, Santa wrote:" - * If you have to put author's name in front of date string, check comments about - * argument swapping at http://www.php.net/sprintf - */ + // i18n: + // The first %s is for date string, the second %s is for author's name. + // The date uses formating from "D, F j, Y g:i a" and "D, F j, Y H:i" + // translations. + // Example string: + // "On Sat, December 24, 2004 23:59, Santa wrote:" + // If you have to put author's name in front of date string, check comments about + // argument swapping at http://php.net/sprintf $full_reply_citation = sprintf(_("On %s, %s wrote:"), getLongDateString($orig_date), $sOrig_from); break; case 'user-defined': @@ -1606,7 +1603,7 @@ function deliverMessage(&$composeMessage, $draft=false) { if (sqimap_mailbox_exists ($imap_stream, $draft_folder)) { require_once(SM_PATH . 'class/deliver/Deliver_IMAP.class.php'); $imap_deliver = new Deliver_IMAP(); - $success = $imap_deliver->mail($composeMessage, $imap_stream, $reply_id, $reply_ent_id, $draft_folder); + $success = $imap_deliver->mail($composeMessage, $imap_stream, $reply_id, $reply_ent_id, $imap_stream, $draft_folder); sqimap_logout($imap_stream); unset ($imap_deliver); $composeMessage->purgeAttachments(); @@ -1721,7 +1718,7 @@ function deliverMessage(&$composeMessage, $draft=false) { } require_once(SM_PATH . 'class/deliver/Deliver_IMAP.class.php'); $imap_deliver = new Deliver_IMAP(); - $imap_deliver->mail($composeMessage, $imap_stream, $reply_id, $reply_ent_id, $sent_folder, $imap_stream); + $imap_deliver->mail($composeMessage, $imap_stream, $reply_id, $reply_ent_id, $imap_stream, $sent_folder); unset ($imap_deliver); }