set_error (error, context,
G_MARKUP_ERROR,
G_MARKUP_ERROR_PARSE,
- _("The attribute \"name\" were found twice on the <%s> element"),
- element_name);
+ _("The attribute \"%s\" was found twice on the <%s> element"),
+ "name", element_name);
return FALSE;
}
set_error (error, context,
G_MARKUP_ERROR,
G_MARKUP_ERROR_PARSE,
- _("The attribute \"id\" were found twice on the <%s> element"),
- element_name);
+ _("The attribute \"%s\" was found twice on the <%s> element"),
+ "id", element_name);
return FALSE;
}
{
set_error (error, context,
G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
- _("<%s> element neither a \"name\" nor an \"id\" element"), element_name);
+ _("<%s> element has neither a \"name\" nor an \"id\" attribute"), element_name);
return FALSE;
}
{
set_error (error, context,
G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
- _("\"%s\" is not a valid value of for attribute \"%s\""),
+ _("\"%s\" is not a valid value for attribute \"%s\""),
value, name);
g_value_unset (&gvalue);
return;
if (info->parsed_tags)
{
set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
- _("A <tags> element has already been specified"));
+ _("A <%s> element has already been specified"), "tags");
return;
}
if (info->parsed_text)
{
set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
- _("A <text> element has already been specified"));
+ _("A <%s> element has already been specified"), "text");
return;
}
else if (!info->parsed_tags)
ParseInfo info;
gboolean retval = FALSE;
-
- static GMarkupParser rich_text_parser = {
+ static const GMarkupParser rich_text_parser = {
start_element_handler,
end_element_handler,
text_handler,