aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-12-04 05:57:34 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-12-04 05:57:34 +0800
commit558599a20190c54446be716625cf129bc60db199 (patch)
tree628167f94ad0525367f9805aa56e48a77225acce
parentffd6e528086d2c752f61c71332c3526d11473661 (diff)
downloadgsoc2013-evolution-558599a20190c54446be716625cf129bc60db199.tar.gz
gsoc2013-evolution-558599a20190c54446be716625cf129bc60db199.tar.zst
gsoc2013-evolution-558599a20190c54446be716625cf129bc60db199.zip
Bug 636265 - Trash is untranslated in the window title
-rw-r--r--modules/mail/e-mail-shell-view-private.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 871f9d756c..34a448330f 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -1091,17 +1091,23 @@ e_mail_shell_view_update_sidebar (EMailShellView *mail_shell_view)
em_utils_uids_free (uids);
/* Choose a suitable folder name for displaying. */
- if (parent_store == local_store && (
- strcmp (folder_name, "Drafts") == 0 ||
- strcmp (folder_name, "Inbox") == 0 ||
- strcmp (folder_name, "Outbox") == 0 ||
- strcmp (folder_name, "Sent") == 0 ||
- strcmp (folder_name, "Templates") == 0))
- display_name = _(folder_name);
- else if (strcmp (folder_name, "INBOX") == 0)
+ display_name = folder_name;
+ if (parent_store == local_store) {
+ if (strcmp (folder_name, "Drafts") == 0)
+ display_name = _("Drafts");
+ else if (strcmp (folder_name, "Inbox") == 0)
+ display_name = _("Inbox");
+ else if (strcmp (folder_name, "Outbox") == 0)
+ display_name = _("Outbox");
+ else if (strcmp (folder_name, "Sent") == 0)
+ display_name = _("Sent");
+ else if (strcmp (folder_name, "Templates") == 0)
+ display_name = _("Templates");
+ else if (strcmp (folder_name, "Trash") == 0)
+ display_name = _("Trash");
+ }
+ if (strcmp (folder_name, "INBOX") == 0)
display_name = _("Inbox");
- else
- display_name = folder_name;
title = g_strdup_printf ("%s (%s)", display_name, buffer->str);
e_shell_sidebar_set_secondary_text (shell_sidebar, buffer->str);