diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-01-29 21:56:18 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-01-29 21:56:18 +0200 |
commit | 24890618970bcc010d090c2dced95f0cce746ca4 (patch) | |
tree | 9e98dbe9d47776661ef05774ec0bf86e35ccae85 /build-aux | |
parent | dd5a87bea67af7810bdff850f3b333c3738175b0 (diff) | |
download | grecs-24890618970bcc010d090c2dced95f0cce746ca4.tar.gz grecs-24890618970bcc010d090c2dced95f0cce746ca4.tar.bz2 |
Don't pass empty string to gettext.
* build-aux/getopt.m4 (args_doc,doc): If empty, don't use N_.
(print_help): If args_doc is empty, don't use gettext.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/getopt.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4 index 880d81c..878504d 100644 --- a/build-aux/getopt.m4 +++ b/build-aux/getopt.m4 @@ -299,8 +299,8 @@ void print_help(void); void print_usage(void); divert(5) const char *program_version = [<$1>]; -static char doc[] = N_("[<$3>]"); -static char args_doc[] = N_("[<$4>]"); +static char doc[] = ifelse([<$3>],,"",N_("$3")); +static char args_doc[] = ifelse([<$4>],,"",N_("$4")); const char *program_bug_address = "<" PACKAGE_BUGREPORT ">"; struct grecs_node *cmdline_tree; @@ -410,7 +410,7 @@ print_help (void) int argsused = 0; printf ("%s %s [%s]... %s\n", _("Usage:"), [<$2>], _("[<OPTION>]"), - gettext (args_doc)); + args_doc[0] ? gettext (args_doc) : args_doc); if (doc[0]) print_option_descr(gettext (doc), 0, RMARGIN); putchar ('\n'); |