<?php
$lang->navIcons['ops'] = "<i class='icon icon-ops'></i>";

$lang->mainNav->ops         = "{$lang->navIcons['ops']} 运维|deploy|browse|";
$lang->navGroup->ops        = 'ops';
$lang->navGroup->deploy     = 'ops';
$lang->navGroup->host       = 'ops';
$lang->navGroup->vm         = 'ops';
$lang->navGroup->vmtemplate = 'ops';
$lang->navGroup->serverroom = 'ops';
$lang->navGroup->service    = 'ops';
$lang->navGroup->account    = 'ops';
$lang->navGroup->domain     = 'ops';

$lang->ops = new stdclass();
$lang->ops->menu = new stdclass();
$lang->ops->menu->deploy     = array('link' => '上线|deploy|browse', 'alias' => 'create,edit,view');
$lang->ops->menu->host       = array('link' => '主机|host|browse', 'alias' => 'create,edit,view,treemap', 'subModule' => 'tree');
$lang->ops->menu->vm         = array('link' => '虚拟机|vm|browse', 'subModule' => 'tree');
$lang->ops->menu->serverroom = array('link' => '机房|serverroom|browse', 'alias' => 'create,edit,view');
$lang->ops->menu->service    = array('link' => '服务|service|manage', 'alias' => 'create,edit,view,browse');
$lang->ops->menu->account    = array('link' => '账号|account|browse', 'alias' => 'create,edit,view,browse');
$lang->ops->menu->domain     = array('link' => '域名|domain|browse', 'alias' => 'create,edit,view,browse');
$lang->ops->menu->setting    = array('link' => '设置|ops|setting');

$lang->ops->menuOrder[5]  = 'deploy';
$lang->ops->menuOrder[10] = 'host';
$lang->ops->menuOrder[12] = 'vm';
$lang->ops->menuOrder[15] = 'serverroom';
$lang->ops->menuOrder[20] = 'service';
$lang->ops->menuOrder[25] = 'account';
$lang->ops->menuOrder[30] = 'domain';
$lang->ops->menuOrder[35] = 'setting';

$lang->ops->common = '运维';

$lang->host = new stdclass();
$lang->host->menu      = $lang->ops->menu;
$lang->host->menuOrder = $lang->ops->menuOrder;

$lang->vm = new stdClass();
$lang->vm->menu      = $lang->ops->menu;
$lang->vm->menuOrder = $lang->ops->menuOrder;

$lang->vm->menu->vm['subMenu'] = new stdClass();
$lang->vm->menu->vm['subMenu']->template = array('link' => "模板|vm|template", 'alias' => 'createtemplate,edittemplate');
$lang->vm->menu->vm['subMenu']->browse   = array('link' => "列表|vm|browse", 'alias' => 'create,view,getvnc');

$lang->serverroom = new stdclass();
$lang->serverroom->menu      = $lang->ops->menu;
$lang->serverroom->menuOrder = $lang->ops->menuOrder;

$lang->service = new stdclass();
$lang->service->menu = $lang->ops->menu;
$lang->service->menu->service = array('link' => '服务|service|manage', 'alias' => 'create,edit,view,manage');
$lang->service->menuOrder     = $lang->ops->menuOrder;

$lang->deploy = new stdclass();
$lang->deploy->menu = $lang->ops->menu;
$lang->deploy->menu->deploy = array('link' => '上线|deploy|browse', 'alias' => 'create,view,edit,steps,scope,managescope,activate,finish,cases,linkcases,managestep');
$lang->deploy->menuOrder    = $lang->ops->menuOrder;
