Skip to content

Commit

Permalink
BZ#14812: Add missing translation marker on some argp option argument…
Browse files Browse the repository at this point in the history
… names in utilities.
  • Loading branch information
frobtech committed Mar 18, 2013
1 parent 69854bb commit 0e2b9cd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2013-03-18 Roland McGrath <roland@hack.frob.com>

[BZ #14812]
* argp/argp-parse.c (argp_default_options): Put N_ translation marker
on argument names, not just descriptions.
* iconv/iconv_prog.c (options): Likewise.
* iconv/iconvconfig.c (options): Likewise.
* malloc/memusagestat.c (options): Likewise.
* nss/getent.c (options): Likewise.
Reported by Benno Schulenberg <bensberg@justemail.net>.

2013-03-18 Ondrej Bilka <neleai@seznam.cz>

* sysdeps/x86_64/strlen.S: Replace with new SSE2 based
Expand Down
7 changes: 4 additions & 3 deletions argp/argp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ static const struct argp_option argp_default_options[] =
{
{"help", '?', 0, 0, N_("Give this help list"), -1},
{"usage", OPT_USAGE, 0, 0, N_("Give a short usage message")},
{"program-name",OPT_PROGNAME,"NAME", OPTION_HIDDEN, N_("Set the program name")},
{"HANG", OPT_HANG, "SECS", OPTION_ARG_OPTIONAL | OPTION_HIDDEN,
N_("Hang for SECS seconds (default 3600)")},
{"program-name",OPT_PROGNAME, N_("NAME"), OPTION_HIDDEN,
N_("Set the program name")},
{"HANG", OPT_HANG, N_("SECS"), OPTION_ARG_OPTIONAL | OPTION_HIDDEN,
N_("Hang for SECS seconds (default 3600)")},
{0, 0}
};

Expand Down
6 changes: 3 additions & 3 deletions iconv/iconv_prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version;
static const struct argp_option options[] =
{
{ NULL, 0, NULL, 0, N_("Input/Output format specification:") },
{ "from-code", 'f', "NAME", 0, N_("encoding of original text") },
{ "to-code", 't', "NAME", 0, N_("encoding for output") },
{ "from-code", 'f', N_("NAME"), 0, N_("encoding of original text") },
{ "to-code", 't', N_("NAME"), 0, N_("encoding for output") },
{ NULL, 0, NULL, 0, N_("Information:") },
{ "list", 'l', NULL, 0, N_("list all known coded character sets") },
{ NULL, 0, NULL, 0, N_("Output control:") },
{ NULL, 'c', NULL, 0, N_("omit invalid characters from output") },
{ "output", 'o', "FILE", 0, N_("output file") },
{ "output", 'o', N_("FILE"), 0, N_("output file") },
{ "silent", 's', NULL, 0, N_("suppress warnings") },
{ "verbose", OPT_VERBOSE, NULL, 0, N_("print progress information") },
{ NULL, 0, NULL, 0, NULL }
Expand Down
5 changes: 3 additions & 2 deletions iconv/iconvconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ static char *more_help (int key, const char *text, void *input);
#define OPT_NOSTDLIB 301
static const struct argp_option options[] =
{
{ "prefix", OPT_PREFIX, "PATH", 0, N_("Prefix used for all file accesses") },
{ "output", 'o', "FILE", 0, N_("\
{ "prefix", OPT_PREFIX, N_("PATH"), 0,
N_("Prefix used for all file accesses") },
{ "output", 'o', N_("FILE"), 0, N_("\
Put output in FILE instead of installed location\
(--prefix does not apply to FILE)") },
{ "nostdlib", OPT_NOSTDLIB, NULL, 0,
Expand Down
11 changes: 7 additions & 4 deletions malloc/memusagestat.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@
/* Definitions of arguments for argp functions. */
static const struct argp_option options[] =
{
{ "output", 'o', "FILE", 0, N_("Name output file") },
{ "string", 's', "STRING", 0, N_("Title string used in output graphic") },
{ "time", 't', NULL, 0, N_("Generate output linear to time (default is linear to number of function calls)") },
{ "output", 'o', N_("FILE"), 0, N_("Name output file") },
{ "string", 's', N_("STRING"), 0, N_("Title string used in output graphic") },
{ "time", 't', NULL, 0, N_("\
Generate output linear to time (default is linear to number of function calls)\
") },
{ "total", 'T', NULL, 0,
N_("Also draw graph for total memory consumption") },
{ "x-size", 'x', "VALUE", 0, N_("Make output graphic VALUE pixels wide") },
{ "x-size", 'x', N_("VALUE"), 0,
N_("Make output graphic VALUE pixels wide") },
{ "y-size", 'y', "VALUE", 0, N_("Make output graphic VALUE pixels high") },
{ NULL, 0, NULL, 0, NULL }
};
Expand Down
2 changes: 1 addition & 1 deletion nss/getent.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static const char args_doc[] = N_("database [key ...]");
/* Supported options. */
static const struct argp_option args_options[] =
{
{ "service", 's', "CONFIG", 0, N_("Service configuration to be used") },
{ "service", 's', N_("CONFIG"), 0, N_("Service configuration to be used") },
{ "no-idn", 'i', NULL, 0, N_("disable IDN encoding") },
{ NULL, 0, NULL, 0, NULL },
};
Expand Down

0 comments on commit 0e2b9cd

Please sign in to comment.