Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql
authorPeter Eisentraut <[email protected]>
Tue, 17 Feb 2009 11:34:34 +0000 (11:34 +0000)
committerPeter Eisentraut <[email protected]>
Tue, 17 Feb 2009 11:34:34 +0000 (11:34 +0000)
text domain, instead of the postgres one (or whatever the default may be).

src/pl/plpgsql/src/plpgsql.h

index 6360393362ca8b1b21abd6d5e2f26cbbc2544834..b2490aa44d70199ce1980a5d0640f90857eae2cd 100644 (file)
@@ -33,6 +33,9 @@
 #undef TEXTDOMAIN
 #define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql")
 
+#undef _
+#define _(x) dgettext(TEXTDOMAIN, x)
+
 /* ----------
  * Compiler's namestack item types
  * ----------