aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}