There is a problem in the messages if bison 2.3b.

The function reduce_print() in src/reduce.c composes a sentence of
several parts.  In general it is not possible to translate such
compositions to other languages.  In this case the translation of
"useless" to Swedish would have different singular and plural forms.

For Swedish it would be possible to translate correctly if you
replaced

  _(" useless in grammar")

with something like

  ngettext ( " useless in grammar",
             " useless in grammar",
             nuseless_nonterminals+nuseless_productions)

But I doubt that would work in languages further removed from English
than Swedish is.  So I suggest rewriting it with more complete
sentences in the messages.  It won't be as cute, but it will be
translatable.


Reply via email to