*** pgsql/src/pl/plpython/plpython.c 2008/11/04 15:16:48 1.116 --- pgsql/src/pl/plpython/plpython.c 2008/12/11 07:34:09 1.117 *************** *** 1,7 **** /********************************************************************** * plpython.c - python as a procedural language for PostgreSQL * ! * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.115 2008/11/02 01:45:28 tgl Exp $ * ********************************************************************* */ --- 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 $ * ********************************************************************* */ *************** typedef int Py_ssize_t; *** 66,72 **** /* define our text domain for translations */ #undef TEXTDOMAIN ! #define TEXTDOMAIN "plpython" #include #include --- 66,72 ---- /* define our text domain for translations */ #undef TEXTDOMAIN ! #define TEXTDOMAIN PG_TEXTDOMAIN("plpython") #include #include *************** _PG_init(void) *** 2750,2756 **** if (inited) return; ! set_text_domain(TEXTDOMAIN); Py_Initialize(); PLy_init_interp(); --- 2750,2756 ---- if (inited) return; ! pg_bindtextdomain(TEXTDOMAIN); Py_Initialize(); PLy_init_interp();