<?php
$lang->versionName = 'Biz';
$lang->searchAB    = 'Search';
$lang->scan        = 'Scan';

$apps     = (array)$lang->apps;
$lastApps = array_slice($apps, -2);
array_pop($apps);
array_pop($apps);
$apps['hr']    = 'HR';
$apps['psi']   = 'PSI';
$apps['flow']  = 'FLOW';
$apps['ameba'] = 'AMEBA';
$apps         += $lastApps;
$lang->apps    = (object)$apps;

$lang->menu->sys->company = 'Company|company|index|';
$lang->menu->sys->system  = 'System|setting|ameba|';

$lang->user->menu->unofficial = 'Unofficial|user|admin|deptID=&status=unofficial';

$lang->effort= new stdclass();
$lang->effort->menu = new stdclass();
$lang->effort->menu->calendar  = array('link' => 'Effort|effort|calendar|', 'alias' => 'batchEdit');
$lang->effort->menu->today     = 'Today|my|effort|date=today';
$lang->effort->menu->yesterday = 'Yesterday|my|effort|date=yesterday';
$lang->effort->menu->thisweek  = 'This Week|my|effort|date=thisweek';
$lang->effort->menu->lastweek  = 'Last Week|my|effort|date=lastweek';
$lang->effort->menu->thismonth = 'This Month|my|effort|date=thismonth';
$lang->effort->menu->lastmonth = 'Last Month|my|effort|date=lastmonth';
$lang->effort->menu->all       = 'All|my|effort|date=all';
$lang->effort->menu->weekly    = 'Weekly|effort|browseWeekly|';

$lang->effort->menuOrder[5]  = 'calendar';
$lang->effort->menuOrder[10] = 'today';
$lang->effort->menuOrder[15] = 'yesterday';
$lang->effort->menuOrder[20] = 'thisweek';
$lang->effort->menuOrder[25] = 'lastweek';
$lang->effort->menuOrder[30] = 'thismonth';
$lang->effort->menuOrder[35] = 'lastmonth';
$lang->effort->menuOrder[40] = 'all';
$lang->effort->menuOrder[45] = 'weekly';

$lang->product->menu->browse   = array('link' => $lang->product->menu->browse, 'alias' => 'batchcreate');
$lang->product->menu->settings = 'Settings|product|browseProperties|module=product&section=models';

$lang->product->menuOrder[5]  = 'browse';
$lang->product->menuOrder[35] = 'settings';

$lang->receivable = new stdclass();
$lang->receivable->menu = new stdclass();
$lang->receivable->menu->receivable = 'Receivable|receivable|receivable|';
$lang->receivable->menu->received   = 'Received|receivable|received|';

$lang->receivable->menuOrder[5]  = 'receivable';
$lang->receivable->menuOrder[10] = 'received';

$lang->payable = new stdclass();
$lang->payable->menu = new stdclass();
$lang->payable->menu->payable = 'Payable|payable|payable|';
$lang->payable->menu->paid    = 'Paid|payable|paid|';

$lang->payable->menuOrder[5]  = 'payable';
$lang->payable->menuOrder[10] = 'paid';

$lang->menu->dashboard->effort = 'Effort|effort|calendar|';
$lang->menu->dashboard->salary = 'Salary|my|salary|type=personal';

$lang->sys->dashboard->menuOrder[11] = 'effort';
$lang->sys->dashboard->menuOrder[45] = 'salary';

$lang->my->salary= new stdclass();
$lang->my->salary->menu = new stdclass();
$lang->my->salary->menu->personal = 'My Salary|my|salary|type=personal';

$lang->my->salary->menuOrder[5] = 'personal';

$lang->my->company = new stdclass();
$lang->my->company->menu = new stdclass();
$lang->my->company->menu->todo   = 'Todo|my|company|type=todo';
$lang->my->company->menu->effort = 'Effort|my|company|type=effort';
$lang->my->company->menu->weekly = 'Weekly|my|company|type=weekly';

$lang->my->company->menuOrder[5]  = 'todo';
$lang->my->company->menuOrder[10] = 'effort';
$lang->my->company->menuOrder[15] = 'weekly';

$lang->system->menu->ameba      = 'Ameba|setting|ameba|';
$lang->system->menu->flow       = 'Flow|setting|flow|';
$lang->system->menu->psi        = 'PSI|setting|psi|';
$lang->system->menu->wechat     = array('link' => 'Wechat|wechat|setting|', 'alias' => 'replaceUsersToSystem, replaceDeptToSystem');
$lang->system->menu->ldap       = 'LDAP|ldap|set|';
$lang->system->menu->buildIndex = 'Index Rebuild|search|buildindex|';

$lang->system->menuOrder[1] = 'ameba';
$lang->system->menuOrder[2] = 'flow';
$lang->system->menuOrder[3] = 'psi';
$lang->system->menuOrder[4] = 'wechat';
$lang->system->menuOrder[5] = 'ldap';
$lang->system->menuOrder[6] = 'buildIndex';

$lang->wechat = new stdclass();
$lang->wechat->menu = $lang->system->menu;
$lang->menuGroups->wechat = 'system';

$lang->ldap = new stdclass();
$lang->ldap->menu = $lang->system->menu;
$lang->menuGroups->ldap = 'system';

$lang->admin->menu = $lang->system->menu;
$lang->menuGroups->admin = 'system';

$lang->wechat->menuOrder = $lang->system->menuOrder;
$lang->mail->menuOrder   = $lang->system->menuOrder;
$lang->action->menuOrder = $lang->system->menuOrder;
$lang->cron->menuOrder   = $lang->system->menuOrder;
$lang->backup->menuOrder = $lang->system->menuOrder;
$lang->admin->menuOrder  = $lang->system->menuOrder;
$lang->ldap->menuOrder   = $lang->system->menuOrder;

if(!isset($lang->invoice)) $lang->invoice = new stdclass();
$lang->invoice->menu = new stdclass();
