From 558599a20190c54446be716625cf129bc60db199 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 3 Dec 2010 15:57:34 -0600 Subject: Bug 636265 - Trash is untranslated in the window title --- modules/mail/e-mail-shell-view-private.c | 26 ++++++++++++++++---------- 1 file 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); -- cgit v1.2.3