aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-12-04 05:57:34 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:08 +0800
commit53bed7cc63f9ba3796363223cde58af5772947c8 (patch)
treebdd99b6444b991ab511888d4ac05e9fb08cf3468 /modules/mail
parent1182cdfec8e5986e36ac6bc4f4fa9ba32599d7d5 (diff)
downloadgsoc2013-evolution-53bed7cc63f9ba3796363223cde58af5772947c8.tar.gz
gsoc2013-evolution-53bed7cc63f9ba3796363223cde58af5772947c8.tar.zst
gsoc2013-evolution-53bed7cc63f9ba3796363223cde58af5772947c8.zip
Bug 636265 - Trash is untranslated in the window title
Diffstat (limited to 'modules/mail')
-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);