aboutsummaryrefslogtreecommitdiff
path: root/src/html.lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.lex.l')
-rw-r--r--src/html.lex.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/html.lex.l b/src/html.lex.l
index 931bfc1..0e0d423 100644
--- a/src/html.lex.l
+++ b/src/html.lex.l
@@ -38,51 +38,51 @@ N [0-9]+
%%
\$\$ {
yylval.character = '$';
return CHAR;
}
\${NAME} {
if (find_value (yytext+1, &yylval.value))
{
- yyerror ("unknown identifier");
+ yyerror (_("unknown identifier"));
init_value (&yylval.value, unspecified_value, NULL);
}
return IDENT;
}
\$\({NAME}\) {
yytext[yyleng-1] = 0;
if (find_value (yytext+2, &yylval.value))
{
- yyerror ("unknown identifier");
+ yyerror (_("unknown identifier"));
init_value (&yylval.value, unspecified_value, NULL);
}
return IDENT;
}
\$\({NAME}:{N}\) {
char *p = strchr (yytext, ':');
*p = 0;
if (find_value (yytext+2, &yylval.value))
{
- yyerror ("unknown identifier");
+ yyerror (_("unknown identifier"));
init_value (&yylval.value, unspecified_value, NULL);
}
else
{
yylval.value.prec = strtoul (p+1, NULL, 10);
}
return IDENT;
}
\$\({NAME}:[^)]+\) {
pp_value_t val;
char *p = strchr (yytext, ':');
*p++ = 0;
if (find_value (yytext+2, &val))
{
- yyerror ("unknown identifier");
+ yyerror (_("unknown identifier"));
init_value (&yylval.value, unspecified_value, NULL);
}
else
{
size_t len = strlen (p) - 1;
init_value (&yylval.value, val.type, &val.v);
yylval.value.prec = val.prec;
yylval.value.format = val.format;
@@ -125,17 +125,17 @@ end_eval ()
}
int
html_open (char *file)
{
yyin = fopen (file, "r");
if (!yyin)
{
- logmsg (L_ERR, "cannot open input file `%s': %s",
+ logmsg (L_ERR, _("cannot open input file `%s': %s"),
file, strerror (errno));
return 1;
}
html_input_file = file;
html_input_line = 1;
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.