aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-01-29 21:56:18 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2012-01-29 21:56:18 +0200
commit24890618970bcc010d090c2dced95f0cce746ca4 (patch)
tree9e98dbe9d47776661ef05774ec0bf86e35ccae85 /build-aux
parentdd5a87bea67af7810bdff850f3b333c3738175b0 (diff)
downloadgrecs-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.m46
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');

Return to:

Send suggestions and report system problems to the System administrator.