scanner: simplify use of gettext

* src/scan-gram.l (unexpected_end): Leave the actual call to gettext
to the caller.
This commit is contained in:
Akim Demaille
2018-11-10 15:14:48 +01:00
parent be737c3dd6
commit eee37354b5

View File

@@ -969,7 +969,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
/* Instead of '\'', display "'". */
if (STREQ (token_end, "'\\''"))
token_end = "\"'\"";
complain (&loc, complaint, _(msgid), token_end);
complain (&loc, complaint, msgid, token_end);
}
@@ -982,7 +982,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
static void
unexpected_eof (boundary start, char const *token_end)
{
unexpected_end (start, N_("missing %s at end of file"), token_end);
unexpected_end (start, _("missing %s at end of file"), token_end);
}
@@ -993,7 +993,7 @@ unexpected_eof (boundary start, char const *token_end)
static void
unexpected_newline (boundary start, char const *token_end)
{
unexpected_end (start, N_("missing %s at end of line"), token_end);
unexpected_end (start, _("missing %s at end of line"), token_end);
}