From dd2e6e5c226269bc6c717124739521a5a19e3697 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 14 Aug 2001 20:25:34 +0000 Subject: in default_user: 2001-08-14 Peter Williams * searches.xml: Rename to <_title> so that these fields can be translated. in filter: 2001-08-14 Peter Williams <peterw@ximian.com> * filter-rule.c (xml_decode): Match either "title" or "_title" to allow for translations of the title (provided in the default files) svn path=/trunk/; revision=12034 --- default_user/ChangeLog | 5 +++++ default_user/searches.xml | 14 +++++++------- filter/ChangeLog | 5 +++++ filter/filter-rule.c | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/default_user/ChangeLog b/default_user/ChangeLog index c0936d45e9..f42b7e3f9c 100644 --- a/default_user/ChangeLog +++ b/default_user/ChangeLog @@ -1,3 +1,8 @@ +2001-08-14 Peter Williams <peterw@ximian.com> + + * searches.xml: Rename <title> to <_title> so that these fields can + be translated. + 2001-08-09 Chris Toshok <toshok@ximian.com> * addressbook-sources.xml: remove the description field. diff --git a/default_user/searches.xml b/default_user/searches.xml index 5ab14c6bac..69221817e8 100644 --- a/default_user/searches.xml +++ b/default_user/searches.xml @@ -2,7 +2,7 @@ <filteroptions> <ruleset> <rule grouping="any" source="demand"> - <title>Sender contains + <_title>Sender contains @@ -13,7 +13,7 @@ - Body or subject contains + <_title>Body or subject contains @@ -28,7 +28,7 @@ - Body contains + <_title>Body contains @@ -39,7 +39,7 @@ - Subject contains + <_title>Subject contains @@ -50,7 +50,7 @@ - Body does not contain + <_title>Body does not contain @@ -61,7 +61,7 @@ - Subject does not contain + <_title>Subject does not contain @@ -72,7 +72,7 @@ - Recipients contain + <_title>Recipients contain diff --git a/filter/ChangeLog b/filter/ChangeLog index 02ef3cb122..7770246fe9 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,8 @@ +2001-08-14 Peter Williams + + * filter-rule.c (xml_decode): Match either "title" or "_title" to allow + for translations of the title (provided in the default files) + 2001-08-13 Peter Williams * filter-datespec.c (make_span_editor): Add a gettext around our static diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 9bcbc1c459..aff01a0f25 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -324,7 +324,7 @@ xml_decode (FilterRule *fr, xmlNodePtr node, RuleContext *f) while (work) { if (!strcmp (work->name, "partset")) { load_set (work, fr, f); - } else if (!strcmp (work->name, "title")) { + } else if (!strcmp (work->name, "title") || !strcmp (work->name, "_title")) { if (!fr->name) { gchar *str, *decstr; str = xmlNodeGetContent (work); -- cgit v1.2.3