X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fdisplay_messages.php;h=74c8385f91e5b9ca4afce6636fc05a191234022e;hp=f035a2014e7a0a8b174865bba30974766280285c;hb=42c45abc4342d7baa22bfff6a265f584ca4ebe4e;hpb=472e7acbb50c8496ec9ae730bb82d785add1ed96 diff --git a/functions/display_messages.php b/functions/display_messages.php index f035a201..74c8385f 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -10,6 +10,7 @@ * about any other message you can think of. * * $Id$ + * @package squirrelmail */ /** @@ -18,7 +19,7 @@ * called "src", "functions", or "plugins", but people who do that need * to be beaten with a steel pipe anyway. * - * @return the base uri of squirrelmail installation. + * @return string the base uri of squirrelmail installation. */ function sqm_baseuri(){ global $base_uri, $PHP_SELF; @@ -36,13 +37,14 @@ function sqm_baseuri(){ function error_message($message, $mailbox, $sort, $startMessage, $color) { $urlMailbox = urlencode($mailbox); - + if (strtoupper($mailbox) == 'INBOX') + $mailbox = _("INBOX"); $string = '' . $message . ''."\n". ''. '" . - sprintf (_("Click here to return to %s"), $mailbox) . + sprintf (_("Click here to return to %s"), imap_utf7_decode_local($mailbox)) . ''; error_box($string, $color); } @@ -142,8 +144,8 @@ function error_box($string, $color) { echo ' ' . html_tag( 'td', $string."\n", 'left') . ''; echo ' '; + echo ' '; echo ' '; echo ' '; - echo ' '; } ?>