From 218b4e8dd86016f82c3a71dec9d339240e866505 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 11 Dec 2008 07:34:09 +0000 Subject: Append major version number and for libraries soname major version number to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does. --- src/pl/plpython/plpython.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pl/plpython/plpython.c') diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 1e136b22c64..b8658837f4c 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -1,7 +1,7 @@ /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.116 2008/11/04 15:16:48 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.117 2008/12/11 07:34:09 petere Exp $ * ********************************************************************* */ @@ -66,7 +66,7 @@ typedef int Py_ssize_t; /* define our text domain for translations */ #undef TEXTDOMAIN -#define TEXTDOMAIN "plpython" +#define TEXTDOMAIN PG_TEXTDOMAIN("plpython") #include #include @@ -2750,7 +2750,7 @@ _PG_init(void) if (inited) return; - set_text_domain(TEXTDOMAIN); + pg_bindtextdomain(TEXTDOMAIN); Py_Initialize(); PLy_init_interp(); -- cgit v1.2.3