diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-02-17 11:34:34 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-02-17 11:34:34 +0000 |
commit | b06abb74559e061c1bdfa194f08d1b98e5fe726f (patch) | |
tree | c68c03e707fcdd6915febe4c2a884e51640a0e68 | |
parent | acee2f6fa4e5a34b696d4d91b663d7b57afbb6e5 (diff) | |
download | postgresql-b06abb74559e061c1bdfa194f08d1b98e5fe726f.tar.gz postgresql-b06abb74559e061c1bdfa194f08d1b98e5fe726f.zip |
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).
-rw-r--r-- | src/pl/plpgsql/src/plpgsql.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/plpgsql.h b/src/pl/plpgsql/src/plpgsql.h index f7c8b5b04de..a2dff611e6d 100644 --- 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 * ---------- |