Re: Re: [COMMITTERS] pgsql: Redefine _() to dgettext() instead of gettext() so that it uses - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Re: [COMMITTERS] pgsql: Redefine _() to dgettext() instead of gettext() so that it uses
Date
Msg-id 499BF4C8.7000202@gmx.net
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Redefine _() to dgettext() instead of gettext() so that it uses  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> Peter Eisentraut wrote:
>> Log Message:
>> -----------
>> Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql
>> text domain, instead of the postgres one (or whatever the default may be).
> 
> Hmm, so is this needed on all other PLs too?

In principle yes.  Or call dgettext() explicitly, which is also done in 
some cases.  However, in most cases messages are issued through 
ereport(), which handles this automatically (which you implemented, I 
recall).


pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Re: [Pljava-dev] Re: Should creating a new base type require superuser status?
Next
From: Bruce Momjian
Date:
Subject: Re: Restore frozen xids for binary upgrades