From 0542b1e2fee5fe7c7fa1a83fa9fe81618b2bc69e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 22 Feb 2005 04:43:23 +0000 Subject: Use _() macro consistently rather than gettext(). Add translation macros around strings that were missing them. --- src/backend/parser/scan.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/parser') diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 7e944467bd0..5bd817c2252 100644 --- a/src/backend/parser/scan.l +++ b/src/backend/parser/scan.l @@ -10,7 +10,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.119 2004/12/31 22:00:27 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.120 2005/02/22 04:36:22 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -618,7 +618,7 @@ yyerror(const char *message) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), /* translator: %s is typically "syntax error" */ - errmsg("%s at end of input", gettext(message)), + errmsg("%s at end of input", _(message)), errposition(cursorpos))); } else @@ -626,7 +626,7 @@ yyerror(const char *message) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), /* translator: first %s is typically "syntax error" */ - errmsg("%s at or near \"%s\"", gettext(message), loc), + errmsg("%s at or near \"%s\"", _(message), loc), errposition(cursorpos))); } } -- cgit v1.2.3