Skip to content
Snippets Groups Projects
Commit b06abb74 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

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).
parent acee2f6f
No related branches found
Tags
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 @@ ...@@ -33,6 +33,9 @@
#undef TEXTDOMAIN #undef TEXTDOMAIN
#define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql") #define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql")
#undef _
#define _(x) dgettext(TEXTDOMAIN, x)
/* ---------- /* ----------
* Compiler's namestack item types * Compiler's namestack item types
* ---------- * ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment