Add _() calls for the argument of plpgsql_yyerror() so it actually gets

translated somehow.
This commit is contained in:
Peter Eisentraut 2009-02-17 13:01:13 +00:00
parent 207b4e7461
commit 82aea0efe8
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.65 2009/01/01 17:24:04 momjian Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.66 2009/02/17 13:01:13 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -392,7 +392,7 @@ plpgsql_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", _(message)),
internalerrposition(cursorpos),
internalerrquery(scanstr)));
}
@ -401,7 +401,7 @@ plpgsql_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\"", _(message), loc),
internalerrposition(cursorpos),
internalerrquery(scanstr)));
}