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-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=512acb3cd10e933467a4a92eb9599e725eb4094d;p=users%2Fsimon%2Fpostgres.git 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 6360393362..b2490aa44d 100644 --- a/src/pl/plpgsql/src/plpgsql.h +++ b/src/pl/plpgsql/src/plpgsql.h @@ -33,6 +33,9 @@ #undef TEXTDOMAIN #define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql") +#undef _ +#define _(x) dgettext(TEXTDOMAIN, x) + /* ---------- * Compiler's namestack item types * ----------