Wrap XML element names in error messages in quotes
This commit is contained in:
parent
f8b10d8513
commit
9e5477815a
3 changed files with 8 additions and 8 deletions
|
@ -214,7 +214,7 @@ atom_postparse_entry (FeedParser* fparser)
|
|||
!katze_item_get_added (fparser->item))
|
||||
{
|
||||
feed_parser_set_error (fparser, FEED_PARSE_ERROR_MISSING_ELEMENT,
|
||||
_("Failed to find required Atom entry elements in XML data."));
|
||||
_("Failed to find required Atom \"entry\" elements in XML data."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,7 @@ atom_postparse_feed (FeedParser* fparser)
|
|||
!katze_item_get_added (fparser->item))
|
||||
{
|
||||
feed_parser_set_error (fparser, FEED_PARSE_ERROR_MISSING_ELEMENT,
|
||||
_("Failed to find required Atom feed elements in XML data."));
|
||||
_("Failed to find required Atom \"feed\" elements in XML data."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ rss_is_valid (FeedParser* fparser)
|
|||
}
|
||||
|
||||
feed_parser_set_error (fparser, FEED_PARSE_ERROR_MISSING_ELEMENT,
|
||||
_("Failed to find channel element in RSS XML data."));
|
||||
_("Failed to find \"channel\" element in RSS XML data."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -134,14 +134,14 @@ rss_postparse_item (FeedParser* fparser)
|
|||
if (!*fparser->error)
|
||||
{
|
||||
/*
|
||||
* Verify that the required Atom elements are added
|
||||
* Verify that the required RSS elements are added
|
||||
* (as per the spec)
|
||||
*/
|
||||
if (!katze_item_get_name (fparser->item) &&
|
||||
!katze_item_get_text (fparser->item))
|
||||
{
|
||||
feed_parser_set_error (fparser, FEED_PARSE_ERROR_MISSING_ELEMENT,
|
||||
_("Failed to find required RSS item elements in XML data."));
|
||||
_("Failed to find required RSS \"item\" elements in XML data."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -218,7 +218,7 @@ rss_postparse_channel (FeedParser* fparser)
|
|||
if (!*fparser->error)
|
||||
{
|
||||
/*
|
||||
* Verify that the required Atom elements are added
|
||||
* Verify that the required RSS elements are added
|
||||
* (as per the spec)
|
||||
*/
|
||||
if (!katze_item_get_name (fparser->item) ||
|
||||
|
@ -226,7 +226,7 @@ rss_postparse_channel (FeedParser* fparser)
|
|||
!katze_item_get_uri (fparser->item))
|
||||
{
|
||||
feed_parser_set_error (fparser, FEED_PARSE_ERROR_MISSING_ELEMENT,
|
||||
_("Failed to find required RSS channel elements in XML data."));
|
||||
_("Failed to find required RSS \"channel\" elements in XML data."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <midori/midori.h>
|
||||
|
||||
#define EXTENSION_NAME "FeedPanel"
|
||||
#define EXTENSION_NAME "Feed Panel"
|
||||
#define UPDATE_FREQ 10
|
||||
|
||||
#define feed_get_flags(feed) \
|
||||
|
|
Loading…
Reference in a new issue