From c446abf8c64a0ed6408cdb98bde1bea117c553d0 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 14 Jan 2009 21:20:39 -0500 Subject: [PATCH] fix ngettext parameters --- imp/lib/Views/ShowMessage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Views/ShowMessage.php b/imp/lib/Views/ShowMessage.php index e9a0a595d..4c6138322 100644 --- a/imp/lib/Views/ShowMessage.php +++ b/imp/lib/Views/ShowMessage.php @@ -301,7 +301,7 @@ class IMP_Views_ShowMessage if (count($atc_parts) || (count($display_ids) > 2)) { $result['atc_label'] = ($show_parts == 'all') ? _("Parts") - : sprintf(ngettext("%d Attachment", "%d Attachments", $atc_parts), $atc_parts); + : sprintf(ngettext("%d Attachment", "%d Attachments", count($atc_parts)), count($atc_parts)); $result['atc_download'] = (count($display_ids) > 2) ? Horde::link($imp_contents->urlView($imp_contents->getMIMEMessage(), 'download_all')) . '[' . _("Save All") . ']' : ''; -- 2.11.0