From: Peter Eisentraut Date: Tue, 17 Feb 2009 13:01:13 +0000 (+0000) Subject: Add _() calls for the argument of plpgsql_yyerror() so it actually gets X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=cd8618370e846debefd63a7c245ab28927911682;p=users%2Fsimon%2Fpostgres.git Add _() calls for the argument of plpgsql_yyerror() so it actually gets translated somehow. --- diff --git a/src/pl/plpgsql/src/scan.l b/src/pl/plpgsql/src/scan.l index b0f12a679a..b5b0adb16d 100644 --- a/src/pl/plpgsql/src/scan.l +++ b/src/pl/plpgsql/src/scan.l @@ -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))); }