From: Peter Eisentraut Date: Tue, 17 Feb 2009 11:34:34 +0000 (+0000) Subject: Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql X-Git-Tag: REL8_4_BETA1~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b06abb74559e061c1bdfa194f08d1b98e5fe726f;p=postgresql 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). --- diff --git a/src/pl/plpgsql/src/plpgsql.h b/src/pl/plpgsql/src/plpgsql.h index f7c8b5b04d..a2dff611e6 100644 --- a/src/pl/plpgsql/src/plpgsql.h +++ b/src/pl/plpgsql/src/plpgsql.h @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpgsql/src/plpgsql.h,v 1.108 2009/01/07 13:44:37 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plpgsql/src/plpgsql.h,v 1.109 2009/02/17 11:34:34 petere Exp $ * *------------------------------------------------------------------------- */ @@ -33,6 +33,9 @@ #undef TEXTDOMAIN #define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql") +#undef _ +#define _(x) dgettext(TEXTDOMAIN, x) + /* ---------- * Compiler's namestack item types * ----------