Göran Uddeborg | 2 Jun 22:26
Picon

Untranslatable composition of sentence

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.

Picon
Favicon

c++ example

I have a problem with compilation of calculator on C++ language. I use 
Linux (Slackware 11) and GCC 3.4.6.
 I taken example from Info-Help, wrote makefile. All program files base 
on Info-Help. The log of compilation is in log file. There is one same 
error. I guess that template class messages from standard library c++ 
use parameter type which not support some operations. But sources of 
program not use this class explicitly. I don't know, what i must do.
All main files enclosed.

Attachment (files.tgz): application/octet-stream, 1896 bytes
Sivadas B. S. | 9 Jun 15:08
Favicon

bison: m4: Invalid argument

I am using windows XP 64 and using bison in Visual studio 2005.

While compiling I am getting the following error (in command line and in
custom build).

../../../ddl/ddl.y: conflicts: 83 shift/reduce, 1 reduce/reduce

bison: m4: Invalid argument

How can I find which argument is invalid ? How could I resolve it ?

Regards,

Sivadas 

Wojciech Polak | 10 Jun 21:28
Picon
Gravatar

Re: Untranslatable composition of sentence

On Tue, 2008-06-03 at 12:01 -0400, Goeran Uddeborg wrote:

> 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.

Same in Polish. It's untranslatable, so can we change it to a complete
sentence?

Regards,
Wojciech

Joel E. Denny | 10 Jun 22:45

Re: Untranslatable composition of sentence

On Tue, 10 Jun 2008, Wojciech Polak wrote:

> On Tue, 2008-06-03 at 12:01 -0400, Goeran Uddeborg wrote:
> 
> > 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.
> 
> Same in Polish. It's untranslatable, so can we change it to a complete
> sentence?

Thanks to both of you for the report.  Sorry for the slow response.  I 
haven't had a chance to look at this yet, but I haven't forgotten.  I'll 
try to get to it soon.


Gmane