@@ -1309,10 +1309,13 @@ print_filtered_help (unsigned int includ
help = undocumented_msg;
}
+ /* Get the translation. */
+ help = _(help);
+
if (option->alias_target < N_OPTS
&& cl_options [option->alias_target].help)
{
- if (help == undocumented_msg)
+ if (option->help == NULL)
{
/* For undocumented options that are aliases for other options
that are documented, point the reader to the other option in
@@ -1347,9 +1350,6 @@ print_filtered_help (unsigned int includ
help = new_help;
}
- /* Get the translation. */
- help = _(help);
-
/* Find the gap between the name of the
option and its descriptive text. */
tab = strchr (help, '\t');
@@ -227,6 +227,7 @@ END {
}
}
print emsg > posr
+ print "--keyword=__opt_help_text\n--flag=__opt_help_text:1:no-c-format" >> kopt
}'
) || exit
@@ -240,7 +241,7 @@ echo "scanning option files..." >&2
while (getline < file) {
if (/^[ \t]*(;|$)/ || !/^[^ \t]/) {
if (field > 2)
- printf("_(\"%s\")\n", line)
+ printf("__opt_help_text(\"%s\")\n", line)
field = 0
} else {
if ((field == 1) && /MissingArgError/) {
@@ -287,7 +288,7 @@ echo "scanning option files..." >&2
lineno++;
}
if (field > 2)
- printf("_(\"%s\")\n", line)
+ printf("__opt_help_text(\"%s\")\n", line)
}') >> $emsg
# Run the xgettext commands, with temporary added as a file to scan.