Re: translations

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: translations
Date: 2004-09-09 21:43:58
Message-ID: Pine.LNX.4.44.0409092339000.9559-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 9 Sep 2004, Alvaro Herrera wrote:

> > In libpq there was some files that was not scanned for translated strings
> > and in scan.l there was a call to gettext() missing which made error
> > messages into a mix of english and swedish (in my case).
>
> I see this problem too. I was about to complain. Not sure if this is
> the best fix, but it certainly 'needs fixed'.

Since the parser calls yyerror() with strings we can't do the gettext call
beforehand, which only leaves it to be done inside the yyerror() function.

xgettext sees yyerror as a markup functions, so the strings generated by
the parser are all in the po file (but was not used since there was no
call to gettext).

--
/Dennis Björklund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-09-09 21:49:44 Re: Clarification of action on Delete
Previous Message Greg Stark 2004-09-09 21:40:41 Re: Clarification of action on Delete