Mvngti thanks for the reply. I think I did it correctly but it seems that the Home Tab and a few other tabs are reading the labels from a different language file other than the one contained in modules/MODULE/language/.
In any case here is the code:
modules/home/Menu.php
Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
global $mod_strings;
if(ACLController::checkAccess('Contacts', 'edit', true))$module_menu[] = Array("index.php?module=Contacts&action=EditView&return_module=Contacts&return_action=DetailView", $mod_strings['LNK_NEW_CONTACT'],"CreateContacts", 'Contacts');
if(ACLController::checkAccess('Accounts', 'edit', true))$module_menu[] = Array("index.php?module=Accounts&action=EditView&return_module=Accounts&return_action=DetailView", $mod_strings['LNK_NEW_ACCOUNT'],"CreateAccounts", 'Accounts');
if(ACLController::checkAccess('Meetings', 'edit', true))$module_menu[] = Array("index.php?module=Meetings&action=EditView&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_NEW_MEETING'],"CreateMeetings", 'Meetings');
if(ACLController::checkAccess('Tasks', 'edit', true))$module_menu[] = Array("index.php?module=Tasks&action=EditView&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_NEW_TASK'],"CreateTasks", 'Tasks');
if(ACLController::checkAccess('Emails', 'edit', true))$module_menu[] =Array("index.php?module=Emails&action=Compose", $mod_strings['LNK_COMPOSE_EMAIL'],"CreateEmails", 'Emails');
if(ACLController::checkAccess('Notes', 'edit', true))$module_menu[]=Array("index.php?module=Notes&action=EditView&return_module=Notes&return_action=DetailView", $mod_strings['LNK_NEW_NOTE'],"CreateNotes");
if(ACLController::checkAccess('Meetings', 'list', true))$module_menu[]=Array("index.php?module=Meetings&action=index&return_module=Meetings&return_action=DetailView", $mod_strings['LNK_MEETING_LIST'],"Meetings");
if(ACLController::checkAccess('Tasks', 'list', true))$module_menu[]=Array("index.php?module=Tasks&action=index&return_module=Tasks&return_action=DetailView", $mod_strings['LNK_TASK_LIST'],"Tasks");
if(ACLController::checkAccess('Notes', 'list', true))$module_menu[]=Array("index.php?module=Notes&action=index&return_module=Notes&return_action=DetailView", $mod_strings['LNK_NOTE_LIST'],"Notes");
?>
modules/home/language/en_us.lang.php
Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
$mod_strings = array (
'LBL_MODULE_NAME' => 'Home',
'LBL_MODULES_TO_SEARCH' => 'Modules to Search',
'LBL_NEW_FORM_TITLE' => 'New Contact',
'LBL_FIRST_NAME' => 'First Name:',
'LBL_LAST_NAME' => 'Last Name:',
'LBL_LIST_LAST_NAME' => 'Last Name',
'LBL_PHONE' => 'Phone:',
'LBL_EMAIL_ADDRESS' => 'Email:',
'LBL_MY_PIPELINE_FORM_TITLE' => 'My Pipeline',
'LBL_PIPELINE_FORM_TITLE' => 'Pipeline By Sales Stage',
'LBL_CAMPAIGN_ROI_FORM_TITLE' => 'Campaign ROI',
'LBL_MY_CLOSED_OPPORTUNITIES_GAUGE' => 'My Closed Opportunities Gauge',
'LNK_NEW_CONTACT' => 'Create Contact',
'LNK_NEW_ACCOUNT' => 'Create Account',
'LNK_NEW_OPPORTUNITY' => 'Create Opportunity',
'LNK_NEW_LEAD' => 'Create Lead',
'LNK_NEW_CASE' => 'Create Case',
'LNK_NEW_NOTE' => 'Create Note',
'LNK_NEW_CALL' => 'Schedule Call',
'LNK_NEW_EMAIL' => 'Archive Email',
'LNK_COMPOSE_EMAIL' => 'Compose Email',
'LNK_NEW_MEETING' => 'Schedule Meeting',
'LNK_NEW_TASK' => 'Create Task',
'LNK_NEW_BUG' => 'Report Bug',
/* NEW LABELS */
'LNK_MEETING_LIST' => 'Meetings',
'LNK_TASK_LIST' => 'Tasks',
'LNK_NOTE_LIST' => 'Notes',
'LNK_EMAIL_LIST' => 'Emails',
etc...
Bookmarks