Clarify to the translator that yyerror() deals with the translation of
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Mar 2009 13:02:32 +0000 (13:02 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Mar 2009 13:02:32 +0000 (13:02 +0000)
"syntax error", not the literal string.  I was previously confused on this
matter, but I have now verified that everything is translated properly.

src/backend/parser/scan.l

index 133668eaf0a70b9eb1246eaf3760bf99c41af7e5..6caccc35d197f47e7754dbfb38dd1d6400f7a2d9 100644 (file)
@@ -880,7 +880,7 @@ yyerror(const char *message)
        {
                ereport(ERROR,
                                (errcode(ERRCODE_SYNTAX_ERROR),
-                                /* translator: %s is typically "syntax error" */
+                                /* translator: %s is typically the translation of "syntax error" */
                                 errmsg("%s at end of input", _(message)),
                                 lexer_errposition()));
        }
@@ -888,7 +888,7 @@ yyerror(const char *message)
        {
                ereport(ERROR,
                                (errcode(ERRCODE_SYNTAX_ERROR),
-                                /* translator: first %s is typically "syntax error" */
+                                /* translator: first %s is typically the translation of "syntax error" */
                                 errmsg("%s at or near \"%s\"", _(message), loc),
                                 lexer_errposition()));
        }