1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Use _() macro consistently rather than gettext(). Add translation

macros around strings that were missing them.
This commit is contained in:
Bruce Momjian
2005-02-22 04:43:23 +00:00
parent 64011b4dce
commit 0542b1e2fe
43 changed files with 295 additions and 302 deletions

View File

@@ -1,5 +1,7 @@
/* this must be first: */
#include "postgres.h"
/* Defined by Perl */
#undef _(x)
/* perl stuff */
#include "EXTERN.h"

View File

@@ -33,11 +33,13 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.67 2005/01/14 16:25:42 tgl Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.68 2005/02/22 04:42:44 momjian Exp $
*
**********************************************************************/
#include "postgres.h"
/* Defined by Perl */
#undef _(x)
/* system stuff */
#include <ctype.h>

View File

@@ -5,6 +5,8 @@
*/
#include "postgres.h"
/* Defined by Perl */
#undef _(x)
#include "spi_internal.h"

View File

@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.128 2005/02/01 19:35:14 tgl Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.129 2005/02/22 04:43:07 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -746,7 +746,7 @@ plpgsql_exec_error_callback(void *arg)
*/
errcontext("PL/pgSQL function \"%s\" %s",
estate->err_func->fn_name,
gettext(estate->err_text));
_(estate->err_text));
}
else
errcontext("PL/pgSQL function \"%s\"",