projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef5d736
)
Redefine _() to dgettext() instead of gettext() so that it uses the plpgsql
author
Peter Eisentraut
<
[email protected]
>
Tue, 17 Feb 2009 11:34:34 +0000
(11:34 +0000)
committer
Peter 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
patch
|
blob
|
blame
|
history
diff --git
a/src/pl/plpgsql/src/plpgsql.h
b/src/pl/plpgsql/src/plpgsql.h
index 6360393362ca8b1b21abd6d5e2f26cbbc2544834..b2490aa44d70199ce1980a5d0640f90857eae2cd 100644
(file)
--- a/
src/pl/plpgsql/src/plpgsql.h
+++ b/
src/pl/plpgsql/src/plpgsql.h
@@
-33,6
+33,9
@@
#undef TEXTDOMAIN
#define TEXTDOMAIN PG_TEXTDOMAIN("plpgsql")
+#undef _
+#define _(x) dgettext(TEXTDOMAIN, x)
+
/* ----------
* Compiler's namestack item types
* ----------