]> granicus.if.org Git - neomutt/commitdiff
I18N: handler.c: Pass the complete line to the translators
authorReis Radomil <reisradomil@fake-box.com>
Sun, 22 Apr 2018 04:16:01 +0000 (04:16 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 24 Apr 2018 20:29:58 +0000 (21:29 +0100)
handler.c

index f96adf1c82c8afeba89210e89088ffbfeaccae26..5d50f8febb04bb48dd6832cec2bed5760d91ae7f 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -1289,13 +1289,15 @@ static int multipart_handler(struct Body *a, struct State *s)
     if (s->flags & MUTT_DISPLAY)
     {
       state_mark_attach(s);
-      state_printf(s, _("[-- Attachment #%d"), count);
       if (p->description || p->filename || p->form_name)
       {
-        state_puts(": ", s);
-        state_puts(p->description ? p->description : p->filename ? p->filename : p->form_name, s);
+        /* L10N: %s is the attachment description, filename or form_name. */
+        state_printf(s, _("[-- Attachment #%d: %s --]\n"), count,
+                     p->description ? p->description :
+                                      p->filename ? p->filename : p->form_name);
       }
-      state_puts(" --]\n", s);
+      else
+        state_printf(s, _("[-- Attachment #%d --]\n"), count);
       print_part_line(s, p, 0);
       if (!Weed)
       {