<?php
/**
 * The en file of crm common module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Xiying Guan <guanxiying@xirangit.com>
 * @package     common 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
$lang->app = new stdclass();
$lang->app->name = 'CRM';

$lang->crm = new stdclass();
$lang->menu->dividerMenu->crm = ',provider,product,';

$lang->menu->crm = new stdclass();
$lang->menu->crm->dashboard = 'Home|dashboard|index|';
$lang->menu->crm->order     = 'Order|order|index|';
$lang->menu->crm->contract  = 'Contract|contract|browse|mode=unfinished';
$lang->menu->crm->customer  = 'Customer|customer|index|';
$lang->menu->crm->provider  = 'Supplier|provider|browse|';
$lang->menu->crm->contact   = 'Contact|contact|index|';
$lang->menu->crm->leads     = 'Lead|leads|browse|';
$lang->menu->crm->product   = 'Product|product|index|';
$lang->menu->crm->setting   = 'Settings|sales|admin|';

/* Menu of order module. */
if(!isset($lang->order)) $lang->order = new stdclass();
$lang->order->menu = new stdclass();
$lang->order->menu->browse      = 'All|order|browse|mode=all';
$lang->order->menu->assignedTo  = 'AssignedToMe|order|browse|mode=assignedtome';
$lang->order->menu->contactedBy = 'ContactedByMe|order|browse|mode=contactedby';
$lang->order->menu->past        = 'Urgent|order|browse|mode=past';
$lang->order->menu->today       = 'Today|order|browse|mode=today';
$lang->order->menu->tomorrow    = 'Tomorrow|order|browse|mode=tomorrow';
$lang->order->menu->thisweek    = 'This Week|order|browse|mode=thisweek';
$lang->order->menu->thismonth   = 'This Month|order|browse|mode=thismonth';
$lang->order->menu->public      = 'Public Lead|order|browse|mode=public';
$lang->order->menu->report      = 'Report|report|browse|module=order';

/* Menu of contact module. */
if(!isset($lang->contact)) $lang->contact = new stdclass();
$lang->contact->menu = new stdclass();
$lang->contact->menu->browse      = 'All|contact|browse|mode=all';
$lang->contact->menu->contactedBy = 'ContactedByMe|contact|browse|mode=contactedby';
$lang->contact->menu->past        = 'Urgent|contact|browse|mode=past';
$lang->contact->menu->today       = 'Today|contact|browse|mode=today';
$lang->contact->menu->tomorrow    = 'Tomorrow|contact|browse|mode=tomorrow';
$lang->contact->menu->thisweek    = 'This Week|contact|browse|mode=thisweek';
$lang->contact->menu->thismonth   = 'This Month|contact|browse|mode=thismonth';

if(!isset($lang->leads)) $lang->leads = new stdclass();
$lang->leads->menu = new stdclass();
$lang->leads->menu->assignedToNull = 'Not Assigned|leads|assignedToNull|';
$lang->leads->menu->assignedTo     = 'AssignedToMe|leads|browse|mode=assignedTo';
$lang->leads->menu->next           = 'Next contact|leads|browse|mode=next';
$lang->leads->menu->ignoredBy      = 'IgnoredbyMe|leads|browse|mode=ignoredBy&status=ignore';
$lang->leads->menu->public         = 'Public|leads|browse|mode=all&status=ignore';
$lang->leads->menu->setting        = 'Settings|leads|setting|';

/* Menu of contract module. */
if(!isset($lang->contract)) $lang->contract = new stdclass();
$lang->contract->menu = new stdclass();
$lang->contract->menu->browse       = 'All|contract|browse|mode=all';
$lang->contract->menu->contactedBy  = 'ContactedByMe|contract|browse|mode=contactedby';
$lang->contract->menu->unfinished   = 'Unfinished|contract|browse|mode=unfinished';
$lang->contract->menu->unreceived   = 'Receiving|contract|browse|mode=unreceived';
$lang->contract->menu->undeliveried = 'Delivering|contract|browse|mode=undeliveried';
$lang->contract->menu->waitFinished = 'WaitForFinish|contract|browse|mode=waitFinished';
$lang->contract->menu->finished     = 'Finished|contract|browse|mode=finished';
$lang->contract->menu->canceled     = 'Cancelled|contract|browse|mode=canceled';
$lang->contract->menu->expired      = 'Expired|contract|browse|mode=expired';
$lang->contract->menu->expire       = 'Expire Soon|contract|browse|mode=expire';
$lang->contract->menu->team         = 'Need Manage Team|contract|browse|mode=manageteam';
$lang->contract->menu->unconfirmed  = 'Unconfirmed|contract|browse|mode=unconfirmed';
$lang->contract->menu->report       = 'Report|report|browse|module=contract';

/* Menu of purchasecontract module. */
if(!isset($lang->purchasecontract)) $lang->purchasecontract = new stdclass();
$lang->purchasecontract->menu = new stdclass();
$lang->purchasecontract->menu->browse       = 'All|purchasecontract|browse|mode=all';
$lang->purchasecontract->menu->contactedBy  = 'ContactedByMe|purchasecontract|browse|mode=contactedby';
$lang->purchasecontract->menu->unfinished   = 'Unfinished|purchasecontract|browse|mode=unfinished';
$lang->purchasecontract->menu->unreceived   = 'Paying|purchasecontract|browse|mode=unreceived';
$lang->purchasecontract->menu->finished     = 'Finished|purchasecontract|browse|mode=finished';
$lang->purchasecontract->menu->canceled     = 'Cancelled|purchasecontract|browse|mode=canceled';
$lang->purchasecontract->menu->expired      = 'Expired|purchasecontract|browse|mode=expired';
$lang->purchasecontract->menu->expire       = 'Expire Soon|purchasecontract|browse|mode=expire';
$lang->purchasecontract->menu->report       = 'Report|report|browse|module=purchasecontract';

/* Menu of setting module. */
$lang->setting = new stdclass();
$lang->setting->menu = new stdclass();
$lang->setting->menu->salesGroup      = array('link' => 'Sales Team|sales|browse|', 'alias' => 'create,edit');
$lang->setting->menu->customerPool    = 'Customer Pool|setting|customerpool||';
$lang->setting->menu->customerSource  = 'Customer Source|setting|lang|module=customer&field=sourceList&appName=sys';
$lang->setting->menu->customerType    = 'Customer Status|setting|lang|module=customer&field=typeList&appName=sys';
$lang->setting->menu->customerSize    = 'Customer Size|setting|lang|module=customer&field=sizeNameList&appName=sys';
$lang->setting->menu->customerLevel   = 'Customer Level|setting|lang|module=customer&field=levelNameList&appName=sys';
$lang->setting->menu->customerStatus  = 'Customer Status|setting|lang|module=customer&field=statusList&appName=sys';
$lang->setting->menu->area            = 'Area|tree|browse|type=area|';
$lang->setting->menu->industry        = 'Industry|tree|browse|type=industry|';
$lang->setting->menu->product         = 'Product Status|setting|lang|module=product&field=statusList&appName=sys';
$lang->setting->menu->productCategory = 'Product Category|tree|browse|type=product&startModule=&root=&from=setting';
$lang->setting->menu->currency        = 'Currency|setting|lang|module=common&field=currencyList';

/* Menu of setting module. */
$lang->statistic = new stdclass();
$lang->statistic->menu = new stdclass();
$lang->statistic->menu->dealCycle      = 'Deal Cycle|statistic|dealCycle|';
$lang->statistic->menu->tryPeriod      = 'Statistics Of Trial Duration|statistic|tryPeriod|';
$lang->statistic->menu->subscribeRate  = 'Statistics Of Subscription System|statistic|subscribeRate|';
$lang->statistic->menu->zentaoBusiness = 'ZenTao Business Statistics|statistic|zentaoBusiness|';
$lang->statistic->menu->funnel         = 'Sales Funnel Chart|statistic|funnel|';

/* Menu of sales module. */
if(!isset($lang->sales)) $lang->sales = new stdclass();
$lang->sales->menu = $lang->setting->menu;

/* Menu of communicate module, use for mobile. */ 
if(!isset($lang->communicate)) $lang->communicate = new stdclass();
$lang->communicate->menu = new stdclass();
$lang->communicate->menu->customer         = 'customer|customer|browse|mode=contactedby';
$lang->communicate->menu->order            = 'order|order|browse|mode=contactedby';
$lang->communicate->menu->contract         = 'contract|contract|browse|mode=contactedby';
$lang->communicate->menu->purchasecontract = 'purchasecontract|purchasecontract|browse|mode=contactedby';
$lang->communicate->menu->contact          = 'contact|contact|browse|mode=contactedby';

/* Black menu of crm app, use for mobile. */ 
if(!isset($lang->blackMenu)) $lang->blackMenu = new stdclass();
$lang->blackMenu->order            = 'tomorrow,thismonth,public,report';
$lang->blackMenu->customer         = 'tomorrow,thismonth,report';
$lang->blackMenu->contract         = 'unreceived,undeliveried,expire,report,setting';
$lang->blackMenu->purchasecontract = 'finished,canceled,report,setting';
$lang->blackMenu->product          = 'category,settings';

$lang->dashboard = new stdclass();
if(!isset($lang->resume))  $lang->resume  = new stdclass();
if(!isset($lang->address)) $lang->address = new stdclass();
include (dirname(__FILE__) . '/menuOrder.php');

$lang->contract->typeList = array();
$lang->contract->typeList['sale']     = 'Sale Contract';
$lang->contract->typeList['purchase'] = 'Procurement Contract';
