[evolution/webkit] Bug 636265 - Trash is untranslated in the window title



commit 3798e27f49879c85c0099797d5e0342afb3600a2
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Dec 3 15:57:34 2010 -0600

    Bug 636265 - Trash is untranslated in the window title

 modules/mail/e-mail-shell-view-private.c |   26 ++++++++++++++++----------
 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 871f9d7..34a4483 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]