mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/**********************************************************************
|
||||
* plpython.c - python as a procedural language for PostgreSQL
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.112 2008/07/18 03:32:53 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.113 2008/10/09 17:24:05 alvherre Exp $
|
||||
*
|
||||
*********************************************************************
|
||||
*/
|
||||
@ -63,6 +63,10 @@ typedef int Py_ssize_t;
|
||||
#include "utils/syscache.h"
|
||||
#include "utils/typcache.h"
|
||||
|
||||
/* define our text domain for translations */
|
||||
#undef TEXTDOMAIN
|
||||
#define TEXTDOMAIN "plpython"
|
||||
|
||||
#include <compile.h>
|
||||
#include <eval.h>
|
||||
|
||||
@ -2745,6 +2749,8 @@ _PG_init(void)
|
||||
if (inited)
|
||||
return;
|
||||
|
||||
set_text_domain(TEXTDOMAIN);
|
||||
|
||||
Py_Initialize();
|
||||
PLy_init_interp();
|
||||
PLy_init_plpy();
|
||||
|
Reference in New Issue
Block a user