Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 820984b

Browse files
committed
Clarify to the translator that yyerror() deals with the translation of
"syntax error", not the literal string. I was previously confused on this matter, but I have now verified that everything is translated properly.
1 parent b966b51 commit 820984b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/scan.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
2626
* IDENTIFICATION
27-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.148 2009/01/01 17:23:46 momjian Exp $
27+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.149 2009/03/04 13:02:32 petere Exp $
2828
*
2929
*-------------------------------------------------------------------------
3030
*/
@@ -880,15 +880,15 @@ yyerror(const char *message)
880880
{
881881
ereport(ERROR,
882882
(errcode(ERRCODE_SYNTAX_ERROR),
883-
/* translator: %s is typically "syntax error" */
883+
/* translator: %s is typically the translation of "syntax error" */
884884
errmsg("%s at end of input", _(message)),
885885
lexer_errposition()));
886886
}
887887
else
888888
{
889889
ereport(ERROR,
890890
(errcode(ERRCODE_SYNTAX_ERROR),
891-
/* translator: first %s is typically "syntax error" */
891+
/* translator: first %s is typically the translation of "syntax error" */
892892
errmsg("%s at or near \"%s\"", _(message), loc),
893893
lexer_errposition()));
894894
}

0 commit comments

Comments
 (0)