Commit b588a443 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Factorize a translated message

parent 420ab47b
......@@ -707,12 +707,15 @@ int
{
if (argv[optind][1] == '-')
/* --option */
fprintf(stderr, _("%s: unrecognized option `--%s'\n"),
argv[0], nextchar);
fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
"--", argv[0], nextchar);
else
{
char t[2] = { argv[optind][0], '\0' };
/* +option or -option */
fprintf(stderr, _("%s: unrecognized option `%c%s'\n"),
argv[0], argv[optind][0], nextchar);
fprintf(stderr, _("%s: unrecognized option `%s%s'\n"),
argv[0], t, nextchar);
}
}
nextchar = (char *) "";
optind++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment