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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: [COMMITTERS] pgsql: Redefine _() to dgettext() instead of gettext() so that it uses
Date: 2009-02-18 11:45:12
Message-ID: 499BF4C8.7000202@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers 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).

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2009-02-18 12:07:08 pgsql: Have pg_dump/pg_dumpall --binary-upgrade restore frozenids for
Previous Message Peter Eisentraut 2009-02-18 11:33:04 pgsql: Message wordsmithing

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-02-18 12:09:08 Re: Restore frozen xids for binary upgrades
Previous Message Thomas Hallgren 2009-02-18 11:23:07 Re: [Pljava-dev] Re: Should creating a new base type require superuser status?