Sun Java System Messenger Express 6 2005Q4 Customization Guide

Example—Mailbox Tool Bar Modifications

The example shown in Example—Mailbox Tool Bar Modifications makes “Search” as the first tool and changes the text of the “Get Mail” tool to “Get Messages.”

Figure 3–4 Example Mailbox Tool Bar Modifications

In this figure the "Search" tool  is displayed as the first tool
and  the  "Get Mail" tool       has been  renamed to "Get Messages."

Example—Mailbox Tool Bar Modifications shows the necessary changes to be made in files mbox_fs.html (layout).


Example 3–3 Altering Tool Bar Layout (mbox_fs.html)


function getToolbar() {
....
main.WMtoolbar(
....
(main.srch != ’’ ? i18n[’new search’] : i18n[’search’]),
’parent.srch()’, ’imx/search.gif’, 27, 25, true,
               
i18n[’get mail’], ’main.refreshMbox()’, ’imx/pull.gif’, 27, 25,
true, i18n[’compose’], ’main.compose(”new”)’, ’imx/compose.gif’,
27, 25, true)
....
}


            

Example—Mailbox Tool Bar Modifications


 shows the necessary changes to be made in file en/i18n.js (text)
            


Example 3–4 Altering Tool Bar Text (en/i18n.js)


// Tool Bars
....
i18n[’get mail’] = ’
               Get Messages