Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dbff17a

Browse files
committed
Added a call to gettext() to fix broken translated error messages.
1 parent 877aa19 commit dbff17a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/scan.l

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.117 2004/08/29 04:12:42 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.118 2004/09/09 06:56:48 dennis Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -618,15 +618,15 @@ yyerror(const char *message)
618618
ereport(ERROR,
619619
(errcode(ERRCODE_SYNTAX_ERROR),
620620
/* translator: %s is typically "syntax error" */
621-
errmsg("%s at end of input", message),
621+
errmsg("%s at end of input", gettext(message)),
622622
errposition(cursorpos)));
623623
}
624624
else
625625
{
626626
ereport(ERROR,
627627
(errcode(ERRCODE_SYNTAX_ERROR),
628628
/* translator: first %s is typically "syntax error" */
629-
errmsg("%s at or near \"%s\"", message, loc),
629+
errmsg("%s at or near \"%s\"", gettext(message), loc),
630630
errposition(cursorpos)));
631631
}
632632
}

0 commit comments

Comments
 (0)