--- mailbox_display.php.orig 2009-08-12 02:29:53.000000000 -0600 +++ mailbox_display.php 2009-09-06 03:20:53.000000000 -0600 @@ -260,37 +260,66 @@ $stuff = false; $td_str = ""; - if (isset($msg['FLAG_ANSWERED']) && $msg['FLAG_ANSWERED'] == true) { - // i18n: "A" is short for "Answered". Make sure that two icon strings aren't translated to the same character (only in 1.5). - $td_str .= _("A"); - $stuff = true; - } - if ($msg['TYPE0'] == 'multipart' && $msg['TYPE1'] == 'mixed') { - $td_str .= '+'; - $stuff = true; + sq_change_text_domain('msg_flags'); + if (isset($msg['FLAG_FLAGGED']) && $msg['FLAG_FLAGGED'] == true) { + $msg_alt = _("This message is flagged"); + $td_str .= ''. $msg_alt .' '; } if ($default_use_priority) { if ( ($msg['PRIORITY'] == 1) || ($msg['PRIORITY'] == 2) ) { - $td_str .= "!"; - $stuff = true; + $msg_alt = _("This message is high priority"); + $td_str .= ''. $msg_alt .' '; } - if ($msg['PRIORITY'] == 5) { - $td_str .= "?"; - $stuff = true; + elseif ($msg['PRIORITY'] == 5) { + $msg_alt = _("This message is low priority"); + $td_str .= ''. $msg_alt .' '; + } + else { + $td_str .= ''; } } + if ($msg['TYPE0'] == 'multipart' && $msg['TYPE1'] == 'mixed') { + $msg_alt = _("This message has an attachment"); + $td_str .= ''. $msg_alt .''; + } + else { + $td_str .= ''; + } + + $msg_icon = ''; + + if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) { + $msg_alt = _("This message has been read"); + $msg_icon .= '../plugins/msg_flags/images/msg_read'; + } else { + $msg_alt = _("This message is new"); + $msg_icon .= '../plugins/msg_flags/images/msg_new'; + } if (isset($msg['FLAG_DELETED']) && $msg['FLAG_DELETED'] == true) { - $td_str .= "D"; - $stuff = true; + if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) { + $msg_alt = _("This message has been read & deleted"); + } else { + $msg_alt = _("This message is new & deleted"); + } + $msg_icon .= '_deleted'; } - if (!$stuff) { - $td_str .= ' '; + if (isset($msg['FLAG_ANSWERED']) && $msg['FLAG_ANSWERED'] == true) { + if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) { + $msg_alt = _("This message has been read & answered"); + } else { + $msg_alt = _("This message is new & answered"); + } + $msg_icon .= '_reply'; } + sq_change_text_domain('squirrelmail'); + + $td_str .= ''. $msg_alt . ' '; + do_hook("msg_envelope"); $td_str .= ''; echo html_tag( 'td', $td_str, - 'center', + 'right', $hlt_color, 'nowrap' ); break; @@ -760,6 +789,10 @@ echo getButton('SUBMIT', 'expungeButton',_("Expunge")) ."\n"; } + sq_change_text_domain('msg_flags'); + echo getButton('SUBMIT', 'markFlagged',_("Flag")); + echo getButton('SUBMIT', 'markUnflagged',_("Unflag")); + sq_change_text_domain('squirrelmail'); echo getButton('SUBMIT', 'markRead',_("Read")) . "\n"; echo getButton('SUBMIT', 'markUnread',_("Unread")) . "\n"; echo getButton('SUBMIT', 'delete',_("Delete")) ." \n";