[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minor I18N issue

From: Paul Eggert
Subject: Re: Minor I18N issue
Date: Wed, 20 Sep 2006 13:05:24 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Thanks for mentioning that.  I installed the following somewhat larger

2006-09-20  Paul Eggert  <address@hidden>

        * src/getargs.c (usage): Rework to use conventions similar to
        coreutils, to make translation a bit easier and the code a bit
        smaller.  Problem reported by Tim Van Holder.

Index: src/getargs.c
RCS file: /cvsroot/bison/bison/src/getargs.c,v
retrieving revision 1.79
diff -u -r1.79 getargs.c
--- src/getargs.c       15 Sep 2006 18:59:40 -0000      1.79
+++ src/getargs.c       20 Sep 2006 20:04:25 -0000
@@ -235,29 +235,25 @@
-      /* Some efforts were made to ease the translators' task, please
-        continue.  */
+      printf (_("Usage: %s [OPTION]... FILE\n"), program_name);
       fputs (_("\
-GNU bison generates LALR(1) and GLR parsers.\n"), stdout);
-      putc ('\n', stdout);
-      fprintf (stdout, _("\
-Usage: %s [OPTION]... FILE\n"), program_name);
-      putc ('\n', stdout);
+Generate LALR(1) and GLR parsers.\n\
+"), stdout);

       fputs (_("\
-If a long option shows an argument as mandatory, then it is mandatory\n\
-for the equivalent short option also.  Similarly for optional arguments.\n"),
-            stdout);
-      putc ('\n', stdout);
+Mandatory arguments to long options are mandatory for short options too.\n\
+"), stdout);

       fputs (_("\
 Operation modes:\n\
   -h, --help                 display this help and exit\n\
   -V, --version              output version information and exit\n\
       --print-localedir      output directory containing locale-dependent 
-  -y, --yacc                 emulate POSIX Yacc\n"), stdout);
-      putc ('\n', stdout);
+  -y, --yacc                 emulate POSIX Yacc\n\
+"), stdout);

       fputs (_("\
@@ -268,8 +264,8 @@
   -l, --no-lines             don't generate `#line' directives\n\
   -n, --no-parser            generate the tables only\n\
   -k, --token-table          include a table of token names\n\
 "), stdout);
-      putc ('\n', stdout);

       fputs (_("\
@@ -279,8 +275,8 @@
   -b, --file-prefix=PREFIX   specify a PREFIX for output files\n\
   -o, --output=FILE          leave output to FILE\n\
   -g, --graph                also produce a VCG description of the automaton\n\
 "), stdout);
-      putc ('\n', stdout);

       fputs (_("\
 THINGS is a list of comma separated words that can include:\n\
@@ -291,10 +287,8 @@
   `all'          include all the above information\n\
   `none'         disable the report\n\
 "), stdout);
-      putc ('\n', stdout);

-      fputs (_("\
-Report bugs to <" PACKAGE_BUGREPORT ">.\n"), stdout);
+      printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);

   exit (status);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]