From eee37354b5de68360b69c361619ffaf8819d8f40 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 10 Nov 2018 15:14:48 +0100 Subject: [PATCH] scanner: simplify use of gettext * src/scan-gram.l (unexpected_end): Leave the actual call to gettext to the caller. --- src/scan-gram.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scan-gram.l b/src/scan-gram.l index 8998c60a..f508edca 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -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); }