aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-11-13 03:00:42 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-11-13 03:00:42 +0800
commit8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70 (patch)
tree24ee5401f0f14240c66dc4d5d40acc1fe5cf138c
parent7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870 (diff)
downloadgsoc2013-evolution-8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70.tar.gz
gsoc2013-evolution-8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70.tar.zst
gsoc2013-evolution-8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70.zip
** Fix for bug #559810
2008-11-12 Milan Crha <mcrha@redhat.com> ** 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
-rw-r--r--e-util/ChangeLog7
-rw-r--r--e-util/e-util-labels.c2
2 files changed, 8 insertions, 1 deletions
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 <mcrha@redhat.com>
+
+ ** 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 <mbarnes@redhat.com>
* 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) {