]> git.sesse.net Git - vlc/commitdiff
Factorize a translated message
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 6 Jul 2008 11:24:01 +0000 (14:24 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 6 Jul 2008 11:24:01 +0000 (14:24 +0300)
src/extras/getopt.c

index a016a6df1f6a08b14a7fcce5e1333463dcdee3af..baf200960cf6655b1a09f5389ce0f8c328db3333 100644 (file)
@@ -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++;