From 9d3c5b2a5b7970ec643743363f2cbd2f885d26ff Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Fri, 27 Jun 2008 17:23:45 +0000 Subject: Patch from Maciej Piechotka which fixes bug 526262 - "untranslated strings in advanced search" svn path=/trunk/; revision=35689 --- filter/ChangeLog | 8 ++++++++ filter/filter-option.c | 2 +- filter/filter-part.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'filter') diff --git a/filter/ChangeLog b/filter/ChangeLog index 5eb7224d86..1c4e3cd3b3 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,11 @@ +2008-06-16 Maciej Piechotka + + ** Fix for bug #526262 + + * filter-part.c: (xml_create): + * filter-part.c: (filter_part_xml_create): + Handle _title element in analogical way as title + 2008-06-19 Milan Crha ** Fix for bug #382783 diff --git a/filter/filter-option.c b/filter/filter-option.c index 0814c0a536..5c4283b889 100644 --- a/filter/filter-option.c +++ b/filter/filter-option.c @@ -233,7 +233,7 @@ xml_create (FilterElement *fe, xmlNodePtr node) value = (char *)xmlGetProp (n, (const unsigned char *)"value"); work = n->children; while (work) { - if (!strcmp ((char *)work->name, "title")) { + if (!strcmp ((char *)work->name, "title") || !strcmp ((char *)work->name, "_title")) { if (!title) { if (!(tmp = (char *)xmlNodeGetContent (work))) tmp = (char *)xmlStrdup ((const unsigned char *)""); diff --git a/filter/filter-part.c b/filter/filter-part.c index 01756fb711..7ed7c306e6 100644 --- a/filter/filter-part.c +++ b/filter/filter-part.c @@ -189,7 +189,7 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node, RuleContext *rc) } else { g_warning ("Invalid xml format, missing/unknown input type"); } - } else if (!strcmp ((char *)n->name, "title")) { + } else if (!strcmp ((char *)n->name, "title") || !strcmp ((char *)n->name, "_title")) { if (!ff->title) { str = (char *)xmlNodeGetContent (n); ff->title = g_strdup (str); -- cgit