aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-01 16:35:03 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-01 16:35:03 +0800
commitf879ae52c84f63a50b7f734832f945ab54e96063 (patch)
tree20b71a00b6f64710ccdd5bc04805769221089c42
parent43e109d4c5486b21f070b54cd5c58bdc19e0c92c (diff)
downloadgsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar.gz
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar.bz2
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar.lz
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar.xz
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.tar.zst
gsoc2013-evolution-f879ae52c84f63a50b7f734832f945ab54e96063.zip
** See bug #65329.
2005-02-01 Not Zed <NotZed@Ximian.com> ** See bug #65329. * mail-component.c (view_changed_cb): translate special names on the local store. svn path=/trunk/; revision=28655
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-component.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a1232ab1ea..4e8900969a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2005-02-01 Not Zed <NotZed@Ximian.com>
+ ** See bug #65329.
+
+ * mail-component.c (view_changed_cb): translate special names on
+ the local store.
+
* em-folder-tree-model.c (sort_cb): use the type hint to sort for
inbox, not the name.
(emft_is_special_local_folder): removed.
diff --git a/mail/mail-component.c b/mail/mail-component.c
index e5b96aa7cf..e51a30268c 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -524,7 +524,12 @@ view_changed_cb(EMFolderView *emfv, EInfoLabel *el)
message_list_free_uids(emfv->list, selected);
}
- e_info_label_set_info(el, name, tmp->str);
+ if (emfv->folder->parent_store == mail_component_peek_local_store(NULL)
+ && (!strcmp (name, "Drafts") || !strcmp (name, "Inbox")
+ || !strcmp (name, "Outbox") || !strcmp (name, "Sent")))
+ e_info_label_set_info(el, _(name), tmp->str);
+ else
+ e_info_label_set_info(el, name, tmp->str);
g_string_free(tmp, TRUE);
camel_object_free(emfv->folder, CAMEL_FOLDER_NAME, name);
} else {