<?php
$lang->maxName     = 'Max';
$lang->userCenter  = 'User Control';
$lang->importIcon  = "<i class='icon-import'> </i>";
$lang->dragAndSort = "Drag sort";
$lang->importToLib = "Import to lib";
$lang->scurmModel  = 'Scrum Model';

$lang->navIcons['assetlib'] = "<i class='icon icon-assets'></i>";

$lang->navIconNames['assetlib'] = 'assets';

$lang->risk               = new stdclass();
$lang->issue              = new stdclass();
$lang->weekly             = new stdclass();
$lang->measrecord         = new stdclass();
$lang->opportunity        = new stdclass();
$lang->assetlib           = new stdclass();
$lang->meeting            = new stdclass();
$lang->approvalflow       = new stdclass();
$lang->process            = new stdclass();
$lang->cmcl               = new stdclass();
$lang->reviewcl           = new stdclass();
$lang->auditcl            = new stdclass();
$lang->reviewissue        = new stdclass();
$lang->researchplan       = new stdclass();
$lang->gapanalysis        = new stdclass();
$lang->trainplan          = new stdclass();
$lang->researchreport     = new stdclass();
$lang->reviewissue        = new stdclass();
$lang->storylib           = new stdclass();
$lang->issuelib           = new stdclass();
$lang->risklib            = new stdclass();
$lang->opportunitylib     = new stdclass();
$lang->practicelib        = new stdclass();
$lang->componentlib       = new stdclass();
$lang->projectreport      = new stdclass();
$lang->projectresearch    = new stdclass();
$lang->projectauditplan   = new stdclass();
$lang->projectgapanalysis = new stdclass();

$lang->report->common             = 'Measuremenu Report';
$lang->issue->common              = 'Issue';
$lang->risk->common               = 'Risk';
$lang->opportunity->common        = 'Opportunity';
$lang->assetlib->common           = 'Asset Lib';
$lang->meeting->common            = 'Meeting';
$lang->process->common            = 'Process';
$lang->cmcl->common               = 'Audit';
$lang->reviewcl->common           = 'Review';
$lang->auditcl->common            = 'QA';
$lang->storylib->common           = 'Story Lib';
$lang->issuelib->common           = 'Issue Lib';
$lang->risklib->common            = 'Risk Lib';
$lang->opportunitylib->common     = 'Opportunity Lib';
$lang->practicelib->common        = 'Best practices Lib';
$lang->componentlib->common       = 'Component Lib';
$lang->projectreport->common      = 'Report';
$lang->projectresearch->common    = 'Research';
$lang->projectauditplan->common   = 'QA';
$lang->projectgapanalysis->common = 'Training';
$lang->reviewcl->clcategory       = 'CheckList category';

$lang->mainNav->assetlib      = "{$lang->navIcons['assetlib']} {$lang->assetlib->common}|assetlib|storylib|";
$lang->mainNav->menuOrder[57] = 'assetlib';

$lang->navGroup->assetlib       = 'assetlib';
$lang->navGroup->storylib       = 'assetlib';
$lang->navGroup->caselib        = 'assetlib';
$lang->navGroup->issuelib       = 'assetlib';
$lang->navGroup->risklib        = 'assetlib';
$lang->navGroup->opportunitylib = 'assetlib';
$lang->navGroup->practicelib    = 'assetlib';
$lang->navGroup->componentlib   = 'assetlib';

$lang->navGroup->issue              = 'project';
$lang->navGroup->risk               = 'project';
$lang->navGroup->weekly             = 'project';
$lang->navGroup->budget             = 'project';
$lang->navGroup->workestimation     = 'project';
$lang->navGroup->durationestimation = 'project';
$lang->navGroup->opportunity        = 'project';
$lang->navGroup->trainplan          = 'project';
$lang->navGroup->gapanalysis        = 'project';
$lang->navGroup->researchplan       = 'project';
$lang->navGroup->researchreport     = 'project';
$lang->navGroup->meeting            = 'project';
$lang->navGroup->reviewissue        = 'project';
$lang->navGroup->projectreport      = 'project';
$lang->navGroup->projectresearch    = 'project';
$lang->navGroup->projectauditplan   = 'project';
$lang->navGroup->projectgapanalysis = 'project';

$lang->navGroup->holiday       = 'admin';
$lang->navGroup->stage         = 'admin';
$lang->navGroup->measurement   = 'admin';
$lang->navGroup->sqlbuilder    = 'admin';
$lang->navGroup->auditcl       = 'admin';
$lang->navGroup->cmcl          = 'admin';
$lang->navGroup->process       = 'admin';
$lang->navGroup->activity      = 'admin';
$lang->navGroup->zoutput       = 'admin';
$lang->navGroup->classify      = 'admin';
$lang->navGroup->subject       = 'admin';
$lang->navGroup->baseline      = 'admin';
$lang->navGroup->auditcl       = 'admin';
$lang->navGroup->reviewcl      = 'admin';
$lang->navGroup->reviewsetting = 'admin';
$lang->navGroup->meetingroom   = 'admin';
$lang->navGroup->approvalflow  = 'admin';

$lang->my->icon['my']      = 'icon-menu-my';
$lang->my->icon['program'] = 'icon-menu-project';
$lang->my->icon['system']  = 'icon-cube';
$lang->my->icon['attend']  = 'icon-file';
$lang->my->icon['report']  = 'icon-menu-report';
$lang->my->icon['admin']   = 'icon-menu-backend';

$lang->my->menu->meeting = array('link' => "Meeting|my|meeting|", 'subModule' => 'meeting');
$lang->my->menuOrder[41] = 'meeting';

$lang->my->menu->work['subMenu']->issue     = 'Issue|my|work|mode=issue';
$lang->my->menu->work['subMenu']->risk      = 'Risk|my|work|mode=risk';
$lang->my->menu->work['subMenu']->nc        = array('link' => 'QA|my|work|mode=auditplan&type=mychecking', 'alias' => 'auditplan');
$lang->my->menu->work['subMenu']->myMeeting = 'Meeting|my|work|mode=myMeeting&type=futureMeeting';

$lang->my->menu->work['menuOrder'][40] = 'issue';
$lang->my->menu->work['menuOrder'][45] = 'risk';
$lang->my->menu->work['menuOrder'][50] = 'nc';
$lang->my->menu->work['menuOrder'][55] = 'myMeeting';

$lang->my->menu->contribute['subMenu']->issue = array('Issue|my|contribute|mode=issue', 'alias' => 'issue');
$lang->my->menu->contribute['subMenu']->risk  = array('Risk|my|contribute|mode=risk', 'alias' => 'risk');
$lang->my->menu->contribute['subMenu']->nc    = array('QA|my|contribute|mode=nc&type=createdByMe', 'alias' => 'nc');

$lang->my->menu->contribute['menuOrder'][35] = 'audit';
$lang->my->menu->contribute['menuOrder'][40] = 'doc';
$lang->my->menu->contribute['menuOrder'][45] = 'issue';
$lang->my->menu->contribute['menuOrder'][50] = 'risk';
$lang->my->menu->contribute['menuOrder'][55] = 'nc';
$lang->my->menu->contribute['menuOrder'][60] = 'feedback';
$lang->my->menu->contribute['menuOrder'][65] = 'ticket';

$lang->report->projectMenu = new stdclass();
$lang->report->projectMenu->reports     = array('link' => 'Report|report|projectsummary|project=%s', 'alias' => 'projectworkload,reportmodule,customeredreport,custom,show,viewreport');
$lang->report->projectMenu->measurement = array('link' => 'Measurement|measrecord|browse|project=%s');

$lang->project->homeMenu->browse['alias'] .= ',copyproject,copyconfirm';

$lang->scrum->menu->other   = array('link' => "$lang->other|issue|browse|project=%s", 'class' => 'dropdown dropdown-hover');
$lang->scrum->menuOrder[50] = 'other';

$lang->scrum->menu->other['dropMenu'] = new stdclass();
$lang->scrum->menu->other['dropMenu']->issue   = array('link' => 'Issue|issue|browse|projectID=%s', 'subModule' => 'issue');
$lang->scrum->menu->other['dropMenu']->risk    = array('link' => 'Risk|risk|browse|projectID=%s', 'subModule' => 'risk');
$lang->scrum->menu->other['dropMenu']->meeting = array('link' => 'Meeting|meeting|browse|projectID=%s', 'subModule' => 'meeting');
$lang->scrum->menu->other['dropMenu']->report  = array('link' => 'Report|report|projectsummary|projectID=%s', 'subModule' => 'measrecord,report');

$lang->scrum->menu->report['subMenu'] = new stdclass();
$lang->scrum->menu->report['subMenu']->summary    = array('link' => 'Project Summary|report|projectsummary|projectID=%s', 'alias' => 'projectworkload,show,customeredreport,viewreport');
$lang->scrum->menu->report['subMenu']->measrecord = array('link' => 'Measure Record|measrecord|browse|projectID=%s');

/* Execution menu. */
$lang->execution->menu->other   = array('link' => "$lang->other|issue|browse|project=%s&from=execution", 'class' => 'dropdown dropdown-hover');
$lang->execution->menuOrder[67] = 'other';

$lang->execution->menu->other['dropMenu'] = new stdclass();
$lang->execution->menu->other['dropMenu']->issue       = array('link' => 'Issue|issue|browse|executionID=%s&from=execution', 'subModule' => 'issue');
$lang->execution->menu->other['dropMenu']->risk        = array('link' => 'Risk|risk|browse|executionID=%s&from=execution', 'subModule' => 'risk');
$lang->execution->menu->other['dropMenu']->opportunity = array('link' => "Opportunity|opportunity|browse|executionID=%s&from=execution", 'subModule' => 'opportunity');
$lang->execution->menu->other['dropMenu']->pssp        = array('link' => 'Pssp|pssp|browse|executionID=%s&from=execution', 'subModule' => 'pssp');
$lang->execution->menu->other['dropMenu']->auditplan   = array('link' => "{$lang->qa->shortCommon}|auditplan|browse|executionID=%s&from=execution", 'subModule' => 'auditplan,nc');
$lang->execution->menu->other['dropMenu']->meeting     = array('link' => 'Meeting|meeting|browse|executionID=%s&from=execution', 'subModule' => 'meeting');

$lang->execution->menu->auditplan['subMenu'] = new stdclass();
$lang->execution->menu->auditplan['subMenu']->auditplan = array('link' => 'Auditplan|auditplan|browse|project=%s&from=execution', 'alias' => 'create,batchcreate,edit,batchcheck,batchedit');
$lang->execution->menu->auditplan['subMenu']->nc        = array('link' => 'Nc|nc|browse|project=%s&from=execution', 'alias' => 'create,edit,view');

/* Waterfall menu. */
$lang->waterfall->menu->track    = array('link' => "$lang->track|projectstory|track|project=%s", 'alias' => 'track');
$lang->waterfall->menu->review   = array('link' => 'Review|review|browse|project=%s', 'subModule' => 'review,reviewissue');
$lang->waterfall->menu->cm       = array('link' => 'CM|cm|browse|project=%s', 'subModule' => 'cm');
$lang->waterfall->menu->weekly   = array('link' => "{$lang->project->report}|weekly|index|project=%s", 'subModule' => ',milestone,');
$lang->waterfall->menu->other    = array('link' => "$lang->other|project|other|", 'class' => 'dropdown dropdown-hover');

$lang->waterfall->dividerMenu    = ',programplan,review,build,dynamic,';

/* Waterfall menu order. */
$lang->waterfall->menuOrder[40] = 'track';
$lang->waterfall->menuOrder[45] = 'review';
$lang->waterfall->menuOrder[50] = 'cm';
$lang->waterfall->menuOrder[75] = 'weekly';
$lang->waterfall->menuOrder[85] = 'other';

$lang->waterfall->menu->other['dropMenu'] = new stdclass();
$lang->waterfall->menu->other['dropMenu']->research    = array('link' => 'Research|researchplan|browse|projectID=%s', 'subModule' => 'researchplan,researchreport');
$lang->waterfall->menu->other['dropMenu']->estimation  = array('link' => "$lang->estimation|workestimation|index|projectID=%s", 'subModule' => 'workestimation,durationestimation,budget');
$lang->waterfall->menu->other['dropMenu']->issue       = array('link' => "Issue|issue|browse|projectID=%s", 'subModule' => 'issue');
$lang->waterfall->menu->other['dropMenu']->risk        = array('link' => "Risk|risk|browse|projectID=%s", 'subModule' => 'risk');
$lang->waterfall->menu->other['dropMenu']->opportunity = array('link' => "Opportunity|opportunity|browse|projectID=%s", 'subModule' => 'opportunity');
$lang->waterfall->menu->other['dropMenu']->pssp        = array('link' => 'Process|pssp|browse|projectID=%s', 'subModule' => 'pssp');
$lang->waterfall->menu->other['dropMenu']->report      = array('link' => 'Report|report|projectsummary|projectID=%s', 'subModule' => 'measrecord,report');
$lang->waterfall->menu->other['dropMenu']->auditplan   = array('link' => "{$lang->qa->shortCommon}|auditplan|browse|projectID=%s", 'subModule' => 'auditplan,nc');
$lang->waterfall->menu->other['dropMenu']->train       = array('link' => 'Train|gapanalysis|browse|projectID=%s', 'subModule' => 'trainplan,gapanalysis');
$lang->waterfall->menu->other['dropMenu']->meeting     = array('link' => "Meeting|meeting|browse|projectID=%s", 'subModule' => 'meeting');

$lang->waterfall->menu->research['subMenu'] = new stdclass();
$lang->waterfall->menu->research['subMenu']->researchplan   = array('link' => 'Research Plan|researchplan|browse|projectID=%s', 'alias' => 'create,edit,view');
$lang->waterfall->menu->research['subMenu']->researchreport = array('link' => 'Research Report|researchreport|browse|projectID=%s', 'alias' => 'create,edit,view');

$lang->waterfall->menu->estimation = array();
$lang->waterfall->menu->estimation['subMenu'] = new stdclass();
$lang->waterfall->menu->estimation['subMenu']->workestimation = 'Work Estimation|workestimation|index|project=%s';
$lang->waterfall->menu->estimation['subMenu']->duration       = array('link' => 'Duration Estimation|durationestimation|index|project=%s', 'subModule' => 'durationestimation');
$lang->waterfall->menu->estimation['subMenu']->budget         = array('link' => 'Budget Estimation|budget|summary|project=%s', 'subModule' => 'budget');

$lang->waterfall->menu->auditplan['subMenu'] = new stdclass();
$lang->waterfall->menu->auditplan['subMenu']->auditplan = array('link' => 'Auditplan|auditplan|browse|project=%s', 'alias' => 'create,batchcreate,edit,batchcheck,batchedit');
$lang->waterfall->menu->auditplan['subMenu']->nc        = array('link' => 'NC|nc|browse|project=%s', 'alias' => 'edit,view');

//$lang->stakeholder->menu->plan        = array('link' => '介入计划|stakeholder|plan|');
//$lang->stakeholder->menu->expectation = array('link' => '期望管理|stakeholder|expectation|', 'alias' => 'createexpect');

$lang->waterfall->menu->weekly['subMenu'] = new stdclass();
$lang->waterfall->menu->weekly['subMenu']->index     = "{$lang->project->report}|weekly|index|project=%s";
$lang->waterfall->menu->weekly['subMenu']->milestone = 'Mile Stone|milestone|index|project=%s';

$lang->waterfall->menu->weekly['menuOrder'][5]  = 'index';
$lang->waterfall->menu->weekly['menuOrder'][10] = 'milestone';

$lang->waterfall->menu->review['subMenu'] = new stdclass();
$lang->waterfall->menu->review['subMenu']->browse = array('link' => 'Reivew List|review|browse|project=%s', 'alias' => 'report,assess,audit,create,edit,view');
$lang->waterfall->menu->review['subMenu']->issue  = array('link' => 'Review Issue|reviewissue|issue|project=%s', 'alias' => 'create,edit,view');

$lang->waterfall->menu->review['menuOrder'][5]  = 'browse';
$lang->waterfall->menu->review['menuOrder'][10] = 'issue';

$lang->waterfall->menu->cm['subMenu'] = new stdclass();
$lang->waterfall->menu->cm['subMenu']->browse = array('link' => 'CM|cm|browse|project=%s', 'alias' => 'create,edit,view');
$lang->waterfall->menu->cm['subMenu']->report = 'Report|cm|report|project=%s';

$lang->waterfall->menu->report['subMenu'] = new stdclass();
$lang->waterfall->menu->report['subMenu']->summary    = array('link' => 'SummaryReport|report|projectsummary|projectID=%s', 'alias' => 'projectworkload,show,customeredreport,viewreport');
$lang->waterfall->menu->report['subMenu']->measrecord = array('link' => 'Measrecord|measrecord|browse|projectID=%s');

$lang->waterfall->menu->train['subMenu'] = new stdclass();
$lang->waterfall->menu->train['subMenu']->gapanalysis = array('link' => 'Gap Analysis|gapanalysis|browse|projectID=%s', 'alias' => 'create,edit,view,batchcreate,batchedit');
$lang->waterfall->menu->train['subMenu']->trainplan   = array('link' => 'Train Plan|trainplan|browse|projectID=%s', 'alias' => 'create,edit,view,batchcreate,batchedit');

$lang->waterfall->menu->settings['subMenu'] = clone $lang->scrum->menu->settings['subMenu'];
$lang->waterfall->menu->settings['subMenu']->approval = array('link' => "Approval|project|approval|project=%s", 'alias' => 'approval');
$lang->waterfall->menu->settings['alias'] .= ',approval';

$lang->assetlib->menu = new stdclass();
$lang->assetlib->menu->storylib       = array('link' => 'Story Lib|assetlib|storylib', 'alias' => 'createstorylib,storylibview,story,importstory,editstorylib,storyview,editstory,assigntostory');
$lang->assetlib->menu->caselib        = array('link' => 'Case Lib|assetlib|caselib');
$lang->assetlib->menu->issuelib       = array('link' => 'Issue Lib|assetlib|issuelib', 'alias' => 'createissuelib,issuelibview,issue,importissue,editissuelib,issueview,editissue,assigntoissue');
$lang->assetlib->menu->risklib        = array('link' => 'Risk Lib|assetlib|risklib', 'alias' => 'createrisklib,risklibview,risk,importrisk,editrisklib,riskview,editrisk,assigntorisk');
$lang->assetlib->menu->opportunitylib = array('link' => 'Opportunity Lib|assetlib|opportunitylib', 'alias' => 'createopportunitylib,opportunitylibview,opportunity,importopportunity,editopportunitylib,opportunityview,editopportunity,assigntoopportunity');
$lang->assetlib->menu->practicelib    = array('link' => 'Practice Lib|assetlib|practicelib', 'alias' => 'createpracticelib,practicelibview,practice,importpractice,editpracticelib,practiceview,editpractice,assigntopractice');
$lang->assetlib->menu->componentlib   = array('link' => 'Component Lib|assetlib|componentlib', 'alias' => 'createcomponentlib,componentlibview,component,importcomponent,editcomponentlib,componentview,editcomponent,assigntocomponent');

$lang->assetlib->menuOrder[5]  = 'storylib';
$lang->assetlib->menuOrder[10] = 'caselib';
$lang->assetlib->menuOrder[15] = 'issuelib';
$lang->assetlib->menuOrder[20] = 'risklib';
$lang->assetlib->menuOrder[25] = 'opportunitylib';
$lang->assetlib->menuOrder[30] = 'practicelib';
$lang->assetlib->menuOrder[35] = 'componentlib';

if(helper::hasFeature('issue'))       $lang->searchObjects['issue']       = 'Issue';
if(helper::hasFeature('risk'))        $lang->searchObjects['risk']        = 'Risk';
if(helper::hasFeature('opportunity')) $lang->searchObjects['opportunity'] = 'Opportunity';
if(helper::hasFeature('gapanalysis')) $lang->searchObjects['trainplan']   = 'Train Plan';

$lang->stage->attribute['dev'] = new stdclass();
$lang->stage->attribute['dev']->menu = new stdclass();
$lang->stage->attribute['dev']->menu = clone $lang->execution->menu;

unset($lang->stage->attribute['dev']->menu->other);

$lang->stage->attribute['dev']->dividerMenu = ',story,build,';

$lang->stage->attribute['request'] = new stdclass();
$lang->stage->attribute['request']->menu = new stdclass();
$lang->stage->attribute['request']->menu->task     = $lang->execution->menu->task;
$lang->stage->attribute['request']->menu->kanban   = $lang->execution->menu->kanban;
$lang->stage->attribute['request']->menu->burn     = $lang->execution->menu->burn;
$lang->stage->attribute['request']->menu->view     = $lang->execution->menu->view;
$lang->stage->attribute['request']->menu->story    = $lang->execution->menu->story;
$lang->stage->attribute['request']->menu->effort   = $lang->execution->menu->effort;
$lang->stage->attribute['request']->menu->doc      = $lang->execution->menu->doc;
$lang->stage->attribute['request']->menu->action   = $lang->execution->menu->action;
$lang->stage->attribute['request']->menu->settings = $lang->execution->menu->settings;
if(isset($lang->execution->menu->more)) $lang->stage->attribute['request']->menu->more = $lang->execution->menu->more;

/* Execution menu order. */
$lang->stage->attribute['request']->menuOrder[5]  = 'task';
$lang->stage->attribute['request']->menuOrder[10] = 'kanban';
$lang->stage->attribute['request']->menuOrder[15] = 'burn';
$lang->stage->attribute['request']->menuOrder[20] = 'view';
$lang->stage->attribute['request']->menuOrder[22] = 'story';
$lang->stage->attribute['request']->menuOrder[25] = 'effort';
$lang->stage->attribute['request']->menuOrder[30] = 'doc';
$lang->stage->attribute['request']->menuOrder[35] = 'action';
$lang->stage->attribute['request']->menuOrder[40] = 'settings';
$lang->stage->attribute['request']->menuOrder[45] = 'more';

$lang->stage->attribute['request']->menu->settings['subMenu'] = new stdclass();
$lang->stage->attribute['request']->menu->settings['subMenu']->view      = $lang->execution->menu->settings['subMenu']->view;
$lang->stage->attribute['request']->menu->settings['subMenu']->team      = $lang->execution->menu->settings['subMenu']->team;
$lang->stage->attribute['request']->menu->settings['subMenu']->whitelist = $lang->execution->menu->settings['subMenu']->whitelist;

$lang->stage->attribute['request']->menu->settings['menuOrder'][5]  = 'view';
$lang->stage->attribute['request']->menu->settings['menuOrder'][10] = 'team';
$lang->stage->attribute['request']->menu->settings['menuOrder'][15] = 'whitelist';

$lang->stage->attribute['request']->dividerMenu = ',effort,';

$lang->stage->attribute['design'] = new stdclass();
$lang->stage->attribute['design']->menu = new stdclass();
$lang->stage->attribute['design']->menu->task     = $lang->execution->menu->task;
$lang->stage->attribute['design']->menu->kanban   = $lang->execution->menu->kanban;
$lang->stage->attribute['design']->menu->burn     = $lang->execution->menu->burn;
$lang->stage->attribute['design']->menu->view     = $lang->execution->menu->view;
$lang->stage->attribute['design']->menu->story    = $lang->execution->menu->story;
$lang->stage->attribute['design']->menu->effort   = $lang->execution->menu->effort;
$lang->stage->attribute['design']->menu->doc      = $lang->execution->menu->doc;
$lang->stage->attribute['design']->menu->action   = $lang->execution->menu->action;
$lang->stage->attribute['design']->menu->settings = $lang->execution->menu->settings;
if(isset($lang->execution->menu->more)) $lang->stage->attribute['design']->menu->more = $lang->execution->menu->more;

/* Execution menu order. */
$lang->stage->attribute['design']->menuOrder[5]  = 'task';
$lang->stage->attribute['design']->menuOrder[10] = 'kanban';
$lang->stage->attribute['design']->menuOrder[15] = 'burn';
$lang->stage->attribute['design']->menuOrder[20] = 'view';
$lang->stage->attribute['design']->menuOrder[25] = 'story';
$lang->stage->attribute['design']->menuOrder[30] = 'effort';
$lang->stage->attribute['design']->menuOrder[35] = 'doc';
$lang->stage->attribute['design']->menuOrder[40] = 'action';
$lang->stage->attribute['design']->menuOrder[45] = 'settings';
$lang->stage->attribute['design']->menuOrder[50] = 'more';

$lang->stage->attribute['design']->menu->settings['subMenu'] = new stdclass();
$lang->stage->attribute['design']->menu->settings['subMenu']->view      = $lang->execution->menu->settings['subMenu']->view;
$lang->stage->attribute['design']->menu->settings['subMenu']->team      = $lang->execution->menu->settings['subMenu']->team;
$lang->stage->attribute['design']->menu->settings['subMenu']->whitelist = $lang->execution->menu->settings['subMenu']->whitelist;

$lang->stage->attribute['design']->menu->settings['menuOrder'][5]  = 'view';
$lang->stage->attribute['design']->menu->settings['menuOrder'][10] = 'team';
$lang->stage->attribute['design']->menu->settings['menuOrder'][15] = 'whitelist';

$lang->stage->attribute['design']->dividerMenu = ',story,';

$lang->stage->attribute['qa'] = new stdclass();
$lang->stage->attribute['qa']->menu = new stdclass();
$lang->stage->attribute['qa']->menu->task     = $lang->execution->menu->task;
$lang->stage->attribute['qa']->menu->kanban   = $lang->execution->menu->kanban;
$lang->stage->attribute['qa']->menu->burn     = $lang->execution->menu->burn;
$lang->stage->attribute['qa']->menu->view     = $lang->execution->menu->view;
$lang->stage->attribute['qa']->menu->story    = $lang->execution->menu->story;
$lang->stage->attribute['qa']->menu->qa       = $lang->execution->menu->qa;
$lang->stage->attribute['qa']->menu->effort   = $lang->execution->menu->effort;
$lang->stage->attribute['qa']->menu->doc      = $lang->execution->menu->doc;
$lang->stage->attribute['qa']->menu->build    = $lang->execution->menu->build;
$lang->stage->attribute['qa']->menu->action   = $lang->execution->menu->action;
$lang->stage->attribute['qa']->menu->settings = $lang->execution->menu->settings;
if(isset($lang->execution->menu->more)) $lang->stage->attribute['qa']->menu->more = $lang->execution->menu->more;

/* Execution menu order. */
$lang->stage->attribute['qa']->menuOrder[5]  = 'task';
$lang->stage->attribute['qa']->menuOrder[10] = 'kanban';
$lang->stage->attribute['qa']->menuOrder[15] = 'burn';
$lang->stage->attribute['qa']->menuOrder[20] = 'view';
$lang->stage->attribute['qa']->menuOrder[25] = 'story';
$lang->stage->attribute['qa']->menuOrder[30] = 'qa';
$lang->stage->attribute['qa']->menuOrder[35] = 'effort';
$lang->stage->attribute['qa']->menuOrder[40] = 'doc';
$lang->stage->attribute['qa']->menuOrder[45] = 'build';
$lang->stage->attribute['qa']->menuOrder[50] = 'action';
$lang->stage->attribute['qa']->menuOrder[55] = 'settings';
$lang->stage->attribute['qa']->menuOrder[60] = 'more';

$lang->stage->attribute['qa']->dividerMenu = ',story,build,';

$lang->stage->attribute['release'] = new stdclass();
$lang->stage->attribute['release']->menu = new stdclass();
$lang->stage->attribute['release']->menu->task     = $lang->execution->menu->task;
$lang->stage->attribute['release']->menu->kanban   = $lang->execution->menu->kanban;
$lang->stage->attribute['release']->menu->burn     = $lang->execution->menu->burn;
$lang->stage->attribute['release']->menu->view     = $lang->execution->menu->view;
$lang->stage->attribute['release']->menu->story    = $lang->execution->menu->story;
$lang->stage->attribute['release']->menu->qa       = $lang->execution->menu->qa;
$lang->stage->attribute['release']->menu->effort   = $lang->execution->menu->effort;
$lang->stage->attribute['release']->menu->doc      = $lang->execution->menu->doc;
$lang->stage->attribute['release']->menu->build    = $lang->execution->menu->build;
$lang->stage->attribute['release']->menu->action   = $lang->execution->menu->action;
$lang->stage->attribute['release']->menu->settings = $lang->execution->menu->settings;
if(isset($lang->execution->menu->devops)) $lang->stage->attribute['release']->menu->devops = $lang->execution->menu->devops;
if(isset($lang->execution->menu->more))   $lang->stage->attribute['release']->menu->more   = $lang->execution->menu->more;

/* Execution menu order. */
$lang->stage->attribute['release']->menuOrder[5]  = 'task';
$lang->stage->attribute['release']->menuOrder[10] = 'kanban';
$lang->stage->attribute['release']->menuOrder[15] = 'burn';
$lang->stage->attribute['release']->menuOrder[20] = 'view';
$lang->stage->attribute['release']->menuOrder[25] = 'story';
$lang->stage->attribute['release']->menuOrder[30] = 'qa';
$lang->stage->attribute['release']->menuOrder[35] = 'devops';
$lang->stage->attribute['release']->menuOrder[40] = 'effort';
$lang->stage->attribute['release']->menuOrder[45] = 'doc';
$lang->stage->attribute['release']->menuOrder[50] = 'build';
$lang->stage->attribute['release']->menuOrder[55] = 'action';
$lang->stage->attribute['release']->menuOrder[60] = 'settings';
$lang->stage->attribute['release']->menuOrder[65] = 'more';

$lang->stage->attribute['release']->dividerMenu = ',story,build,';

$lang->stage->attribute['review'] = new stdclass();
$lang->stage->attribute['review']->menu = new stdclass();
$lang->stage->attribute['review']->menu->task     = $lang->execution->menu->task;
$lang->stage->attribute['review']->menu->kanban   = $lang->execution->menu->kanban;
$lang->stage->attribute['review']->menu->burn     = $lang->execution->menu->burn;
$lang->stage->attribute['review']->menu->view     = $lang->execution->menu->view;
$lang->stage->attribute['review']->menu->effort   = $lang->execution->menu->effort;
$lang->stage->attribute['review']->menu->doc      = $lang->execution->menu->doc;
$lang->stage->attribute['review']->menu->action   = $lang->execution->menu->action;
$lang->stage->attribute['review']->menu->settings = $lang->execution->menu->settings;
if(isset($lang->execution->menu->more)) $lang->stage->attribute['review']->menu->more = $lang->execution->menu->more;

/* Execution menu order. */
$lang->stage->attribute['review']->menuOrder[5]  = 'task';
$lang->stage->attribute['review']->menuOrder[10] = 'kanban';
$lang->stage->attribute['review']->menuOrder[15] = 'burn';
$lang->stage->attribute['review']->menuOrder[20] = 'view';
$lang->stage->attribute['review']->menuOrder[25] = 'effort';
$lang->stage->attribute['review']->menuOrder[30] = 'doc';
$lang->stage->attribute['review']->menuOrder[35] = 'action';
$lang->stage->attribute['review']->menuOrder[40] = 'settings';
$lang->stage->attribute['review']->menuOrder[45] = 'more';

$lang->stage->attribute['review']->menu->settings['subMenu'] = new stdclass();
$lang->stage->attribute['review']->menu->settings['subMenu']->view      = $lang->execution->menu->settings['subMenu']->view;
$lang->stage->attribute['review']->menu->settings['subMenu']->team      = $lang->execution->menu->settings['subMenu']->team;
$lang->stage->attribute['review']->menu->settings['subMenu']->whitelist = $lang->execution->menu->settings['subMenu']->whitelist;

$lang->stage->attribute['review']->menu->settings['menuOrder'][5]  = 'view';
$lang->stage->attribute['review']->menu->settings['menuOrder'][10] = 'team';
$lang->stage->attribute['review']->menu->settings['menuOrder'][15] = 'whitelist';

$lang->stage->attribute['review']->dividerMenu = ',effort,';

if(!helper::hasFeature('issue'))
{
    unset($lang->my->menu->work['subMenu']->issue,       $lang->my->menu->work['menuOrder'][40]);
    unset($lang->my->menu->contribute['subMenu']->issue, $lang->my->menu->contribute['menuOrder'][45]);
}
if(!helper::hasFeature('risk'))
{
    unset($lang->my->menu->work['subMenu']->risk,       $lang->my->menu->work['menuOrder'][45]);
    unset($lang->my->menu->contribute['subMenu']->risk, $lang->my->menu->contribute['menuOrder'][50]);
}
if(!helper::hasFeature('auditplan'))
{
    unset($lang->my->menu->work['subMenu']->nc,       $lang->my->menu->work['menuOrder'][50]);
    unset($lang->my->menu->contribute['subMenu']->nc, $lang->my->menu->contribute['menuOrder'][55]);
}
if(!helper::hasFeature('meeting'))
{
    unset($lang->my->menu->meeting,                    $lang->my->menuOrder[41]);
    unset($lang->my->menu->work['subMenu']->myMeeting, $lang->my->menu->work['menuOrder'][55]);
}

if(!helper::hasFeature('storylib'))       unset($lang->assetlib->menu->storylib);
if(!helper::hasFeature('caselib'))        unset($lang->assetlib->menu->caselib);
if(!helper::hasFeature('issuelib'))       unset($lang->assetlib->menu->issuelib);
if(!helper::hasFeature('risklib'))        unset($lang->assetlib->menu->risklib);
if(!helper::hasFeature('opportunitylib')) unset($lang->assetlib->menu->opportunitylib);
if(!helper::hasFeature('practicelib'))    unset($lang->assetlib->menu->practicelib);
if(!helper::hasFeature('componentlib'))   unset($lang->assetlib->menu->componentlib);

if(!helper::hasFeature('kanban')) $lang->dividerMenu = str_replace(',kanban,', ',assetlib,', $lang->dividerMenu);

if(!helper::hasFeature('assetlib'))
{
    unset($lang->mainNav->assetlib, $lang->mainNav->menuOrder[57]);
}
else
{
    $assetlibMenus = array_keys((array)$lang->assetlib->menu);
    $methodName    = reset($assetlibMenus);
    $lang->mainNav->assetlib = "{$lang->navIcons['assetlib']} {$lang->assetlib->common}|assetlib|$methodName|";
}
