From 7c15c446ca7e8d4f71607a26f19ee00c7c35bb96 Mon Sep 17 00:00:00 2001 From: kink Date: Sat, 27 Sep 2003 14:42:18 +0000 Subject: [PATCH] Display the total of new messages in the newmail popup. This may go into stable after 1.4.2 because it changes strings. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5781 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/newmail/newmail.php | 12 +++++++++--- plugins/newmail/setup.php | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index 1ebb3de6..75f732c2 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -18,6 +18,8 @@ require_once(SM_PATH . 'include/validate.php'); require_once(SM_PATH . 'include/load_prefs.php'); require_once(SM_PATH . 'functions/page_header.php'); +sqGetGlobalVar('numnew', $numnew, SQ_GET); + displayHtmlHeader( _("New Mail"), '', FALSE ); echo "\n". @@ -28,10 +30,14 @@ require_once(SM_PATH . 'functions/page_header.php'); ) . html_tag( 'tr', "\n" . html_tag( 'td', - '
' . - _("You have new mail!") . '

' . "\n" . + '
' . _("You have").' '. + sprintf( ( $numnew == 1 ? + _("%s new message") : + _("%s new messages") ), $numnew ) . + '

' . "\n" . '
' . "\n". - ''."\n". + ''."\n". '
', 'center' ) ) , diff --git a/plugins/newmail/setup.php b/plugins/newmail/setup.php index d925f57f..b8a3e65e 100644 --- a/plugins/newmail/setup.php +++ b/plugins/newmail/setup.php @@ -217,7 +217,8 @@ echo "