From 94f3a73b09b8c10dae7d97130918100e27fc3612 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 2 Nov 2001 23:57:55 +0000 Subject: [PATCH] UI change and strings update git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1684 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- po/squirrelmail.po | 8 ++++-- src/left_main.php | 65 +++++++++++++++++++++++----------------------- 2 files changed, 39 insertions(+), 34 deletions(-) diff --git a/po/squirrelmail.po b/po/squirrelmail.po index 51e5114e..daf5d393 100644 --- a/po/squirrelmail.po +++ b/po/squirrelmail.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-11-03 00:41+0100\n" +"POT-Creation-Date: 2001-11-03 00:55+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -316,7 +316,7 @@ msgstr "" msgid "Renamed successfully!" msgstr "" -#: squirrelmail/src/folders.php:52 squirrelmail/src/left_main.php:190 +#: squirrelmail/src/folders.php:52 squirrelmail/src/left_main.php:191 msgid "refresh folder list" msgstr "" @@ -430,6 +430,10 @@ msgstr "" msgid "purge" msgstr "" +#: squirrelmail/src/left_main.php:188 +msgid "Last Refresh" +msgstr "" + #: squirrelmail/src/login.php:88 squirrelmail/src/login.php:137 msgid "Login" msgstr "" diff --git a/src/left_main.php b/src/left_main.php index 6921de9b..c73b998d 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -21,42 +21,42 @@ // open a connection on the imap port (143) $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output - + displayHtmlHeader(); /* If requested and not yet complete, attempt to autocreate folders. */ if ($auto_create_special && ! isset($auto_create_done)) { - /* Autocreate the sent folder, if needed. */ - if (isset ($sent_folder) && $sent_folder != 'none') { - if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) { - sqimap_mailbox_create ($imapConnection, $sent_folder, ''); - } else if (! sqimap_mailbox_is_subscribed($imapConnection, $sent_folder)) { - sqimap_subscribe($imapConnection, $sent_folder); - } - } - - /* Autocreate the trash folder, if needed. */ - if (isset ($trash_folder) && $trash_folder != 'none') { - if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)) { - sqimap_mailbox_create ($imapConnection, $trash_folder, ''); - } else if (! sqimap_mailbox_is_subscribed($imapConnection, $trash_folder)) { - sqimap_subscribe($imapConnection, $trash_folder); - } - } + /* Autocreate the sent folder, if needed. */ + if (isset ($sent_folder) && $sent_folder != 'none') { + if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) { + sqimap_mailbox_create ($imapConnection, $sent_folder, ''); + } else if (! sqimap_mailbox_is_subscribed($imapConnection, $sent_folder)) { + sqimap_subscribe($imapConnection, $sent_folder); + } + } - /* Autocreate the drafts folder, if needed. */ - if (isset ($draft_folder) && $draft_folder != 'none') { - if (!sqimap_mailbox_exists ($imapConnection, $draft_folder)) { - sqimap_mailbox_create ($imapConnection, $draft_folder, ''); - } else if (! sqimap_mailbox_is_subscribed($imapConnection, $draft_folder)) { - sqimap_subscribe($imapConnection, $draft_folder); - } - } + /* Autocreate the trash folder, if needed. */ + if (isset ($trash_folder) && $trash_folder != 'none') { + if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)) { + sqimap_mailbox_create ($imapConnection, $trash_folder, ''); + } else if (! sqimap_mailbox_is_subscribed($imapConnection, $trash_folder)) { + sqimap_subscribe($imapConnection, $trash_folder); + } + } + + /* Autocreate the drafts folder, if needed. */ + if (isset ($draft_folder) && $draft_folder != 'none') { + if (!sqimap_mailbox_exists ($imapConnection, $draft_folder)) { + sqimap_mailbox_create ($imapConnection, $draft_folder, ''); + } else if (! sqimap_mailbox_is_subscribed($imapConnection, $draft_folder)) { + sqimap_subscribe($imapConnection, $draft_folder); + } + } /* Let the world know that autocreation is complete! Hurrah! */ - $auto_create_done = true; - session_register('auto_create_done'); - } + $auto_create_done = true; + session_register('auto_create_done'); + } function formatMailboxName($imapConnection, $box_array, $delimeter) { global $folder_prefix, $trash_folder, $sent_folder; @@ -73,7 +73,7 @@ if (ereg("^( *)([^ ]*)$", $mailbox, $regs)) { $mailbox = $regs[2]; } - + $unseen = 0; if (($unseen_notify == 2 && $real_box == 'INBOX') || @@ -182,10 +182,11 @@ $clk = date($hr, time()); break; default: - $clk = date("D, ".$hr, time()); + $clk = date("D, ".$hr, time()); } - echo "
$clk
"; + echo '
' . _("Last Refresh") . ":
$clk"; + echo '
'; echo '('; echo _("refresh folder list"); echo ')
'; -- 2.25.1