From b27bba5cedbe552b2a406e051de293c677c2b9a7 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 26 Jan 2021 06:48:04 +0100 Subject: [PATCH] bistromathic: use gettext for all the messages * examples/c/bistromathic/parse.y: Add missing calls to _. --- examples/c/bistromathic/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y index 5d5efabf..783155f9 100644 --- a/examples/c/bistromathic/parse.y +++ b/examples/c/bistromathic/parse.y @@ -187,7 +187,7 @@ exp: { if ($r == 0) { - yyerror (&@$, uctx, "error: division by zero"); + yyerror (&@$, uctx, _("error: division by zero")); YYERROR; } else @@ -345,7 +345,7 @@ yylex (const char **line, YYSTYPE *yylval, YYLTYPE *yylloc, // Stray characters. default: - yyerror (yylloc, uctx, "syntax error: invalid character: %c", c); + yyerror (yylloc, uctx, _("syntax error: invalid character: %c"), c); return TOK_YYerror; } }