From: Christian Dywan Date: Wed, 29 Apr 2009 15:42:36 +0000 (+0200) Subject: Wrap XML element names in error messages in quotes X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e5477815abf6ee1a6164db496e1e147dbabe46b;p=midori Wrap XML element names in error messages in quotes --- diff --git a/extensions/feed-panel/feed-atom.c b/extensions/feed-panel/feed-atom.c index 9731d688..def46f61 100644 --- a/extensions/feed-panel/feed-atom.c +++ b/extensions/feed-panel/feed-atom.c @@ -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.")); } } } diff --git a/extensions/feed-panel/feed-rss.c b/extensions/feed-panel/feed-rss.c index d830806e..84fd6d3b 100644 --- a/extensions/feed-panel/feed-rss.c +++ b/extensions/feed-panel/feed-rss.c @@ -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.")); } } } diff --git a/extensions/feed-panel/main.c b/extensions/feed-panel/main.c index af360060..38fba899 100644 --- a/extensions/feed-panel/main.c +++ b/extensions/feed-panel/main.c @@ -15,7 +15,7 @@ #include -#define EXTENSION_NAME "FeedPanel" +#define EXTENSION_NAME "Feed Panel" #define UPDATE_FREQ 10 #define feed_get_flags(feed) \