]> granicus.if.org Git - postgresql/commitdiff
Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 17 Feb 2009 11:34:34 +0000 (11:34 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
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 f7c8b5b04dea5e921a250650da195e6a8322b9b9..a2dff611e6dffd9af65833bb456b38be4f407784 100644 (file)
@@ -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
  * ----------