diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-10-09 17:24:05 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-10-09 17:24:05 +0000 |
commit | 2532c54d82b4925fd882a2bf119a7cc01b804d48 (patch) | |
tree | ad5f209495866b53baf85d3c388462434fa471e1 /src/pl/plperl/plperl.c | |
parent | b15531033e8bcff1e0a436d6bd18b5a09e477a20 (diff) | |
download | postgresql-2532c54d82b4925fd882a2bf119a7cc01b804d48.tar.gz postgresql-2532c54d82b4925fd882a2bf119a7cc01b804d48.zip |
Improve translatability of error messages for external modules by tweaking
the ereport macro. Included in this commit are enough files for starting
plpgsql, plpython, plperl and pltcl translations.
Diffstat (limited to 'src/pl/plperl/plperl.c')
-rw-r--r-- | src/pl/plperl/plperl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 1bf95d96059..073e41d4006 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -1,7 +1,7 @@ /********************************************************************** * plperl.c - perl as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.139 2008/03/28 00:21:56 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.140 2008/10/09 17:24:05 alvherre Exp $ * **********************************************************************/ @@ -30,6 +30,10 @@ #include "utils/typcache.h" #include "utils/hsearch.h" +/* define our text domain for translations */ +#undef TEXTDOMAIN +#define TEXTDOMAIN "plperl" + /* perl stuff */ #include "plperl.h" @@ -186,8 +190,10 @@ _PG_init(void) if (inited) return; + set_text_domain(TEXTDOMAIN); + DefineCustomBoolVariable("plperl.use_strict", - "If true, will compile trusted and untrusted perl code in strict mode", + gettext_noop("If true, will compile trusted and untrusted perl code in strict mode"), NULL, &plperl_use_strict, PGC_USERSET, |