Re: translations - Mailing list pgsql-hackers

From Dennis Bjorklund
Subject Re: translations
Date
Msg-id Pine.LNX.4.44.0409092339000.9559-100000@zigo.dhs.org
Whole thread Raw
In response to Re: translations  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List 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



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Clarification of action on Delete
Next
From: Tom Lane
Date:
Subject: Re: Clarification of action on Delete