fix ngettext parameters
authorChuck Hagenbuch <chuck@horde.org>
Thu, 15 Jan 2009 02:20:39 +0000 (21:20 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 15 Jan 2009 02:20:39 +0000 (21:20 -0500)
imp/lib/Views/ShowMessage.php

index e9a0a59..4c61383 100644 (file)
@@ -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") . ']</a>'
                 : '';