In version 2.3a of bison there is this code:

          fputs (_("\
    Report bugs to <" PACKAGE_BUGREPORT ">.\n"), stdout);

Unless I'm mistaken, this won't work.  The compiler will concatenate
the string su bstituted for PACKAGE_BUGREPORT and the two literate
strings to one.  The result will be sent to gettext (a.k.a. "_").  But
that composed string will not be among the translated messages.
Actually, only the string "Report bugs to <" appear in the PO file.

The simplest solution is probably to use printf instead:

    printf(_("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT);

That should work fine for translation, and will give the same output.


Reply via email to