Info about translation updates
[squirrelmail.git] / functions / display_messages.php
index 129fa5764eee54cfaae9ea5b4ef71e673e2b08bf..13bed86966b7b771aad178a3ce6703b6caef6d4d 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * display_messages.php
  *
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2004 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This contains all messages, including information, error, and just
@@ -44,7 +44,7 @@ function error_message($message, $mailbox, $sort, $startMessage, $color) {
                   '<A HREF="' . sqm_baseuri() 
                   . "src/right_main.php?sort=$sort&amp;startMessage=$startMessage"
                   . "&amp;mailbox=$urlMailbox\">" .
-    sprintf (_("Click here to return to %s"), $mailbox) .
+    sprintf (_("Click here to return to %s"), imap_utf7_decode_local($mailbox)) .
            '</A></td></tr>';
     error_box($string, $color);
 }
@@ -87,6 +87,8 @@ function logout_error( $errString, $errTitle = '' ) {
         $color[8]  = '#000000';  /* black         Normal text            */
     }
 
+    list($junk, $errString, $errTitle) = do_hook('logout_error', $errString, $errTitle);
+
     if ( $errTitle == '' ) {
         $errTitle = $errString;
     }
@@ -124,6 +126,8 @@ function error_box($string, $color) {
 
     $err = _("ERROR");
 
+    $string = concat_hook_function('error_box', $string);
+
     /* check if the page header has been sent; if not, send it! */
     if(!isset($pageheader_sent) && !$pageheader_sent) {
         /* include this just to be sure */
@@ -144,8 +148,8 @@ function error_box($string, $color) {
    echo '              <tr>' . html_tag( 'td', $string."\n", 'left')
                     . '</tr>';
    echo '            </table>';
+   echo '        </td></tr>';
    echo '       </table></td></tr>';
    echo '    </table>';
-   echo '  </td></tr>';
 }
 ?>