Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82aea0e

Browse files
committed
Add _() calls for the argument of plpgsql_yyerror() so it actually gets
translated somehow.
1 parent207b4e7 commit82aea0e

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)

[8]ページ先頭

©2009-2025 Movatter.jp