This section describes how to modify the Sun Java System Messenger Express main function tabs shown in Modifying the Main Function Tabs.
You can modify the following on the Sun Java System Messenger Express main function tabs:
Interchange the location of tabs
Change the text of the tab labels
To modify the main function tabs, edit the appropriate files as follows:
For tab layout, edit the toolFrame() function in the main.js file.
For text used in the default tab labels, in the lang/i18n.js file, edit the i18n[] values for folders, message, and options in the // Tabs section, and help and logout in the // Tool Bars section.
For text of the default folder name labels (including the initially displayed Inbox tab label), edit the fldr[] values in the // Localized folder names section in the lang/i18n.js file.
Functionally, the tabs are constructed by the toolFrame() function. The toolFrame() function calls the tab()function in the main.js file and specifies the text of the tab label to be displayed.
The following functions, located in main.js, handle the default tabs:
The example shown in Example—Main Function Tabs Modifications moves the Options tab to the right, and changes the text of its tab label to “Preferences.”
Example—Main Function Tabs Modifications shows the necessary changes to be made in file main.js (layout).
function toolFrame() { ..... ’ <td width=30%\>’ + nbsp + ’</td\>\\n ’ + tab(i18n[’options’], state == ’Options’, ’selectOptions()’) + .... } |
Example—Main Function Tabs Modifications shows the necessary changes to be made in file en/i18n.js (tab labels).
// Tabs i18n[’folders’] = ’Folders’ i18n[’message’] = ’Message’ i18n[’pab’] = ’Addresses’ i18n[’options’] = ’ Preferences ’ |