Skip to content

Commit 82aea0e

Browse files
committed
Add _() calls for the argument of plpgsql_yyerror() so it actually gets
translated somehow.
1 parent 207b4e7 commit 82aea0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pl/plpgsql/src/scan.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.65 2009/01/01 17:24:04 momjian Exp $
12+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.66 2009/02/17 13:01:13 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -392,7 +392,7 @@ plpgsql_yyerror(const char *message)
392392
ereport(ERROR,
393393
(errcode(ERRCODE_SYNTAX_ERROR),
394394
/* translator: %s is typically "syntax error" */
395-
errmsg("%s at end of input", message),
395+
errmsg("%s at end of input", _(message)),
396396
internalerrposition(cursorpos),
397397
internalerrquery(scanstr)));
398398
}
@@ -401,7 +401,7 @@ plpgsql_yyerror(const char *message)
401401
ereport(ERROR,
402402
(errcode(ERRCODE_SYNTAX_ERROR),
403403
/* translator: first %s is typically "syntax error" */
404-
errmsg("%s at or near \"%s\"", message, loc),
404+
errmsg("%s at or near \"%s\"", _(message), loc),
405405
internalerrposition(cursorpos),
406406
internalerrquery(scanstr)));
407407
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy