From b06abb74559e061c1bdfa194f08d1b98e5fe726f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 17 Feb 2009 11:34:34 +0000 Subject: [PATCH] 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). --- src/pl/plpgsql/src/plpgsql.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 * ---------- -- 2.11.0