diff options
author | Dennis Bjorklund <db@zigo.dhs.org> | 2004-09-09 06:56:48 +0000 |
---|---|---|
committer | Dennis Bjorklund <db@zigo.dhs.org> | 2004-09-09 06:56:48 +0000 |
commit | dbff17a8c8431e86a542a28b93fe936ecef511c1 (patch) | |
tree | 82fe21b950d4a032a523ee863c064c4d6a9b336c | |
parent | 877aa19211881a39b680d586d93e43d4639714d0 (diff) | |
download | postgresql-dbff17a8c8431e86a542a28b93fe936ecef511c1.tar.gz postgresql-dbff17a8c8431e86a542a28b93fe936ecef511c1.zip |
Added a call to gettext() to fix broken translated error messages.
-rw-r--r-- | src/backend/parser/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l index 90abf989d86..f071262de76 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.117 2004/08/29 04:12:42 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.118 2004/09/09 06:56:48 dennis 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", message), + errmsg("%s at end of input", gettext(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\"", message, loc), + errmsg("%s at or near \"%s\"", gettext(message), loc), errposition(cursorpos))); } } |