bistromathic: use gettext for all the messages

* examples/c/bistromathic/parse.y: Add missing calls to _.
This commit is contained in:
Akim Demaille
2021-01-26 06:48:04 +01:00
parent 7a525fa06f
commit b27bba5ced

View File

@@ -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;
}
}