mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Add _() calls for the argument of plpgsql_yyerror() so it actually gets
translated somehow.
This commit is contained in:
parent
207b4e7461
commit
82aea0efe8
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||||
/* translator: %s is typically "syntax error" */
|
/* translator: %s is typically "syntax error" */
|
||||||
errmsg("%s at end of input", message),
|
errmsg("%s at end of input", _(message)),
|
||||||
internalerrposition(cursorpos),
|
internalerrposition(cursorpos),
|
||||||
internalerrquery(scanstr)));
|
internalerrquery(scanstr)));
|
||||||
}
|
}
|
||||||
@ -401,7 +401,7 @@ plpgsql_yyerror(const char *message)
|
|||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||||
/* translator: first %s is typically "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),
|
internalerrposition(cursorpos),
|
||||||
internalerrquery(scanstr)));
|
internalerrquery(scanstr)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user