aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorTakao Fujiwara <takao.fujiwara@sun.com>2008-07-30 22:17:12 +0800
committerTakao Fujiwara <fujiwarat@src.gnome.org>2008-07-30 22:17:12 +0800
commitd420d5c626405e18f0fc56c8d36ce8597cbf8ca8 (patch)
treecd67919ea88b5c9592e800ad09192f3daf61406e /filter
parentae36c634ac3f9d790f44fa5a9a99287dcf1603e0 (diff)
downloadgsoc2013-evolution-d420d5c626405e18f0fc56c8d36ce8597cbf8ca8.tar.gz
gsoc2013-evolution-d420d5c626405e18f0fc56c8d36ce8597cbf8ca8.tar.zst
gsoc2013-evolution-d420d5c626405e18f0fc56c8d36ce8597cbf8ca8.zip
Reviewed by Srinivasa Ragavan <sragavan@novell.com>
2008-07-30 Takao Fujiwara <takao.fujiwara@sun.com> Reviewed by Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #545303 * filter-rule.c: (xml_decode): Add gettext in the xml string. svn path=/trunk/; revision=35868
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog8
-rw-r--r--filter/filter-rule.c7
2 files changed, 12 insertions, 3 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 5eacc51aee..145ae2c029 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,11 @@
+2008-07-30 Takao Fujiwara <takao.fujiwara@sun.com>
+
+ Reviewed by Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #545303
+
+ * filter-rule.c: (xml_decode): Add gettext in the xml string.
+
2008-07-28 Milan Crha <mcrha@redhat.com>
** Fix for bug #530388
diff --git a/filter/filter-rule.c b/filter/filter-rule.c
index e6e59baeac..c7e79269e6 100644
--- a/filter/filter-rule.c
+++ b/filter/filter-rule.c
@@ -444,12 +444,13 @@ xml_decode (FilterRule *fr, xmlNodePtr node, RuleContext *f)
load_set (work, fr, f);
} else if (!strcmp ((char *)work->name, "title") || !strcmp ((char *)work->name, "_title")) {
if (!fr->name) {
- char *str, *decstr;
+ char *str, *decstr = NULL;
str = (char *)xmlNodeGetContent (work);
- decstr = g_strdup (str);
- if (str)
+ if (str) {
+ decstr = g_strdup (_(str));
xmlFree (str);
+ }
fr->name = decstr;
}
}