From 8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 12 Nov 2008 19:00:42 +0000 Subject: ** Fix for bug #559810 2008-11-12 Milan Crha ** Fix for bug #559810 * e-util-labels.c: (e_util_labels_parse): Do not localize empty label names, also localize them only first time. svn path=/trunk/; revision=36777 --- e-util/ChangeLog | 7 +++++++ e-util/e-util-labels.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 6caf6c2b8b..461861d7c3 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,10 @@ +2008-11-12 Milan Crha + + ** Fix for bug #559810 + + * e-util-labels.c: (e_util_labels_parse): + Do not localize empty label names, also localize them only first time. + 2008-11-04 Matthew Barnes * e-non-intrusive-error-dialog.c: diff --git a/e-util/e-util-labels.c b/e-util/e-util-labels.c index 359157a25f..da32f233c5 100644 --- a/e-util/e-util-labels.c +++ b/e-util/e-util-labels.c @@ -79,7 +79,7 @@ e_util_labels_parse (GConfClient *client) /* Needed for Backward Compatibility */ if (num < LABEL_DEFAULTS_NUM) { - label->name = g_strdup (_(buf)); + label->name = g_strdup ((buf && *buf) ? buf : _(label_defaults[num].name)); label->tag = g_strdup (label_defaults[num].tag); num++; } else if (!tag) { -- cgit v1.2.3