From: RĂ©mi Denis-Courmont Date: Sun, 6 Jul 2008 11:24:01 +0000 (+0300) Subject: Factorize a translated message X-Git-Tag: 0.9.0-test2~185 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b588a4430681501a8f5ce2ce2fc9cdc684afe634;p=vlc Factorize a translated message --- diff --git a/src/extras/getopt.c b/src/extras/getopt.c index a016a6df1f..baf200960c 100644 --- a/src/extras/getopt.c +++ b/src/extras/getopt.c @@ -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++;