bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Problem in --help text, tar 1.14.90.


From: Jan D.
Subject: [Bug-tar] Problem in --help text, tar 1.14.90.
Date: Fri, 17 Sep 2004 09:52:39 +0200 (CEST)

Hello.

While translating the tar strings, the output of a part of the --help
output looked like this:

...
l av arkivformat:

  -H, --format=FMTNAMN       skapa ett arkiv med givet format.

  Project-Id-Version: tar 1.14.90
Report-Msgid-Bugs-To: address@hidden
POT-Creation-Date: 2004-09-02 16:20+0300
PO-Revision-Date: 2004-09-17 09:20+0200
Last-Translator: Jan Djärv <address@hidden>
Language-Team: Swedish <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1);
                                                          FMTNAMN är ett av
                             följande:

  Project-Id-Version: tar 1.14.90
Report-Msgid-Bugs-To: address@hidden
POT-Creation-Date: 2004-09-02 16:20+0300
PO-Revision-Date: 2004-09-17 09:20+0200
Last-Translator: Jan Djärv <address@hidden>
Language-Team: Swedish <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1);
                                                          v7        gammalt V7
                             format


and so on.

The function argp_state_help eventually calls hol_entry_help.  hol_entry_help
calls:
            /* Calling gettext here isn't quite right, since sorting will
               have been done on the original; but documentation options
               should be pretty rare anyway...  */
            __argp_fmtstream_puts (stream,
                                   dgettext (state->root_argp->argp_domain,
                                             opt->name));


and opt->name is "" due to these entries in options[]:
  {"", 0, NULL, OPTION_DOC, N_("FORMAT is one of the following:"), 62},
  {"", 0, NULL, OPTION_DOC, N_("v7        old V7 tar format"), 63},
  {"", 0, NULL, OPTION_DOC, N_("oldgnu    GNU format as per tar <= 1.12"), 63},
  {"", 0, NULL, OPTION_DOC, N_("gnu       GNU tar 1.13.x format"), 63},
  {"", 0, NULL, OPTION_DOC, N_("ustar     POSIX 1003.1-1988 (ustar) format"), 
63 },
  {"", 0, NULL, OPTION_DOC, N_("posix     POSIX 1003.1-2001 (pax) format"), 63 
},


dgettext returns the message for "",  and that is the header that appears
in the output.  Replacing the "" with " " fixes this.

        Jan D.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]