From: pdontthink Date: Mon, 6 Apr 2009 10:48:28 +0000 (+0000) Subject: Translate special folders doesn't mean translate any folder X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0038893adda01835e1f18184292e3a5bfad58d5f;p=squirrelmail.git 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 --- 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 {