From 0038893adda01835e1f18184292e3a5bfad58d5f Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 6 Apr 2009 10:48:28 +0000 Subject: [PATCH] Translate special folders doesn't mean translate any folder git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13529 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions/page_header.php b/functions/page_header.php index ecb1aabc..c9d44f40 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -258,7 +258,13 @@ function displayPageHeader($color, $mailbox='', $sHeaderJs='', $sOnload = '') { $shortBoxName = htmlspecialchars(imap_utf7_decode_local( readShortMailboxName($mailbox, $delimiter))); if (getPref($data_dir, $username, 'translate_special_folders')) { - $shortBoxName = _($shortBoxName); + global $sent_folder, $trash_folder, $draft_folder; + if ($mailbox == $sent_folder) + $shortBoxName = _("Sent"); + else if ($mailbox == $trash_folder) + $shortBoxName = _("Trash"); + else if ($mailbox == $sent_folder) + $shortBoxName = _("Drafts"); } $urlMailbox = urlencode($mailbox); } else { -- 2.25.1