File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/interfaces/ecpg/preproc Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1- /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.6 2009/06/03 20:24:51 tgl Exp $ */
1+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.7 2009/06/10 23:11:52 petere Exp $ */
22
33/* Copyright comment */
44%{
2222 */
2323#define base_yylex filtered_base_yylex
2424
25+ /*
26+ * This is only here so the string gets into the POT. Bison uses it
27+ * internally.
28+ */
29+ #define bison_gettext_dummy gettext_noop("syntax error")
30+
2531/*
2632 * Variables containing simple states.
2733 */
Original file line number Diff line number Diff line change 1- /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.8 2009/06/03 20:24:51 tgl Exp $ */
1+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.9 2009/06/10 23:11:52 petere Exp $ */
22
33statements: /*EMPTY*/
44 | statements statement
@@ -1987,8 +1987,9 @@ ecpg_into: INTO into_list { $$ = EMPTY; }
19871987
19881988void base_yyerror(const char *error)
19891989{
1990+ /* translator: %s is typically the translation of "syntax error" */
19901991 mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
1991- error, token_start ? token_start : yytext);
1992+ _( error) , token_start ? token_start : yytext);
19921993}
19931994
19941995void parser_init(void)
You can’t perform that action at this time.
0 commit comments