Make our Date header RFC-compliant. Redundant timezone info does not comply with...
[squirrelmail.git] / functions / template / message_list_util.php
index 8ffa17a4b8fd977fd00bb9f7331278ed47e12198..b2ea09e82451cea279bb6a48ccc12b8dddfe05a8 100644 (file)
@@ -26,13 +26,13 @@ function calcMessageListColumnWidth($aOrder) {
     $aWidthTpl = array(
         SQM_COL_CHECK => 1,
         SQM_COL_FROM =>  25,
-        SQM_COL_DATE => 10,
+        SQM_COL_DATE => 15,
         SQM_COL_SUBJ  => 100,
         SQM_COL_FLAGS => 2,
         SQM_COL_SIZE  => 5,
         SQM_COL_PRIO => 1,
         SQM_COL_ATTACHMENT => 1,
-        SQM_COL_INT_DATE => 10,
+        SQM_COL_INT_DATE => 15,
         SQM_COL_TO => 25,
         SQM_COL_CC => 25,
         SQM_COL_BCC => 25
@@ -174,13 +174,13 @@ function getPriorityIcon ($priority, $icon_theme_path) {
     switch ($priority) {
         case 1:
         case 2:
-            $icon = getIcon($icon_theme_path, 'prio_high.png', create_span('!', 'high_priority'));
+            $icon = getIcon($icon_theme_path, 'prio_high.png', create_span('!', 'high_priority'), _("High priority"));
             break;
         case 5:
-            $icon = getIcon($icon_theme_path, 'prio_low.png', create_span('↓', 'low_priority'));
+            $icon = getIcon($icon_theme_path, 'prio_low.png', create_span('↓', 'low_priority'), _("Low priority"));
             break;
         default:
-            $icon = getIcon($icon_theme_path, 'transparent.png', '', '', 5);
+            $icon = getIcon($icon_theme_path, 'transparent.png', '', _("Normal priority"), 5);
             break;
     }
 
@@ -200,9 +200,9 @@ function getAttachmentIcon ($attach, $icon_theme_path) {
     $icon = '';
     
     $icon_file = $attach ? 'attach.png' : 'transparent.png';
+    $alt_text = $attach ? _("Attachment") : _("No attachment");
     $text = $attach ? '+' : '';
-    $icon = getIcon($icon_theme_path, $icon_file, $text);
+    $icon = getIcon($icon_theme_path, $icon_file, $text, $alt_text);
 
     return $icon;
 }
-