git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acee2f6)
Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql
2009年2月17日 11:34:34 +0000 (11:34 +0000)
2009年2月17日 11:34:34 +0000 (11:34 +0000)
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 f7c8b5b04dea5e921a250650da195e6a8322b9b9..a2dff611e6dffd9af65833bb456b38be4f407784 100644 (file)
--- 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
* ----------
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /