From c5a2a4401fa250643244fc000d316a01a30f7e0f Mon Sep 17 00:00:00 2001 From: tokul Date: Mon, 4 Oct 2004 15:23:48 +0000 Subject: [PATCH] converting strings to ngettext git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8144 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/newmail/newmail.php | 37 +++++++++++++++++-------------------- plugins/newmail/setup.php | 12 +++--------- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index da92e6d2..04d92108 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -33,24 +33,21 @@ sqGetGlobalVar('numnew', $numnew, SQ_GET); ) . html_tag( 'tr', "\n" . html_tag( 'td', - '
'. - sprintf( ( $numnew == 1 ? - _("You have %s new message") : - _("You have %s new messages") ), $numnew ) . - '

' . "\n" . - '
' . "\n". - ''."\n". - '
', - 'center' ) - ) , - '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . - '' . - "\n". - "\n"; - + '
'. + sprintf(ngettext("You have %s new message","You have %s new messages",$numnew), $numnew ) . + '

' . "\n" . + '
' . "\n". + ''."\n". + '
', + 'center' ) + ) , + '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . + '' . + "\n". + "\n"; ?> \ No newline at end of file diff --git a/plugins/newmail/setup.php b/plugins/newmail/setup.php index c0c05c73..f430cc12 100644 --- a/plugins/newmail/setup.php +++ b/plugins/newmail/setup.php @@ -197,15 +197,9 @@ if ($newmail_changetitle) { echo "