<?php
global $config;
$lang->workflow->common         = '工作流流程';
$lang->workflow->browseFlow     = '浏览流程';
$lang->workflow->browseDB       = '浏览子表';
$lang->workflow->create         = '新增流程';
$lang->workflow->copy           = '复制流程';
$lang->workflow->edit           = '编辑流程';
$lang->workflow->view           = '流程详情';
$lang->workflow->delete         = '删除流程';
$lang->workflow->fullTextSearch = '全文检索';
$lang->workflow->buildIndex     = '重建索引';
$lang->workflow->custom         = '自定义';
$lang->workflow->setApproval    = '审批设置';
$lang->workflow->setJS          = 'JS';
$lang->workflow->setCSS         = 'CSS';
$lang->workflow->backup         = '备份';
$lang->workflow->upgrade        = '升级';
$lang->workflow->upgradeAction  = '升级';
$lang->workflow->preview        = '预览';
$lang->workflow->design         = '设计';
$lang->workflow->release        = '发布';
$lang->workflow->syncRelease    = '同步启用';
$lang->workflow->deactivate     = '停用';
$lang->workflow->activate       = '启用';
$lang->workflow->createApp      = '新建';
$lang->workflow->cover          = '覆盖';
$lang->workflow->approval       = '审批';
$lang->workflow->delimiter      = '、';
$lang->workflow->belong         = '从属于';

$lang->workflow->setFulltextSearch = '全文检索';

$lang->workflow->id            = '编号';
$lang->workflow->parent        = '父流程';
$lang->workflow->type          = '类型';
$lang->workflow->app           = '所属应用';
$lang->workflow->position      = '位置';
$lang->workflow->module        = '流程代号';
$lang->workflow->table         = '流程表';
$lang->workflow->name          = '流程名';
$lang->workflow->icon          = '图标';
$lang->workflow->titleField    = '标题字段';
$lang->workflow->contentField  = '内容字段';
$lang->workflow->ui            = '界面设计';
$lang->workflow->js            = 'JS';
$lang->workflow->css           = 'CSS';
$lang->workflow->order         = '顺序';
$lang->workflow->buildin       = '内置';
$lang->workflow->administrator = '白名单';
$lang->workflow->desc          = '描述';
$lang->workflow->version       = '版本';
$lang->workflow->status        = '状态';
$lang->workflow->createdBy     = '由谁创建';
$lang->workflow->createdDate   = '创建时间';
$lang->workflow->editedBy      = '由谁编辑';
$lang->workflow->editedDate    = '编辑时间';
$lang->workflow->currentTime   = '当前时间';

$lang->workflow->actionFlowWidth = 165;

$lang->workflow->copyFlow         = '复制';
$lang->workflow->source           = '源流程';
$lang->workflow->field            = '字段';
$lang->workflow->action           = '动作';
$lang->workflow->label            = '标签';
$lang->workflow->mainTable        = '主表';
$lang->workflow->subTable         = '子表';
$lang->workflow->relation         = '跨流程设置';
$lang->workflow->report           = '报表';
$lang->workflow->export           = '导出';
$lang->workflow->subTableSettings = '子表及字段属性设置';
$lang->workflow->flowchart        = '流程图';
$lang->workflow->quoteDB          = '使用其他模板子表';

$lang->workflow->statusList['wait']   = '待发布';
$lang->workflow->statusList['normal'] = '使用中';
$lang->workflow->statusList['pause']  = '停用';

$lang->workflow->syncReleaseList['self']    = '仅启用流程对象';
$lang->workflow->syncReleaseList['default'] = '在默认模板启用该流程';
$lang->workflow->syncReleaseList['all']     = '在所有模板中启用该流程';

$lang->workflow->activateList['all']    = '全部启用';
$lang->workflow->activateList['single'] = '单独启用';

$lang->workflow->releaseList['all']    = '全部发布';
$lang->workflow->releaseList['single'] = '单独发布';

$lang->workflow->positionList['before'] = '之前';
$lang->workflow->positionList['after']  = '之后';

$lang->workflow->belongList['program']   = '项目集';
$lang->workflow->belongList['product']   = $lang->productCommon;
$lang->workflow->belongList['project']   = $lang->projectCommon;
$lang->workflow->belongList['execution'] = $lang->executionCommon;
if($config->vision == 'lite') unset($lang->workflow->belongList['project']);
if($config->systemMode == 'light') unset($lang->workflow->belongList['program']);
if($config->vision == 'or')
{
    $lang->workflow->belongList = array();
    $lang->workflow->belongList['product'] = $lang->productCommon;
}

$lang->workflow->buildinList['0'] = '否';
$lang->workflow->buildinList['1'] = '是';

$lang->workflow->fullTextSearch = new stdclass();
$lang->workflow->fullTextSearch->common       = '全文检索';
$lang->workflow->fullTextSearch->titleField   = '标题字段';
$lang->workflow->fullTextSearch->contentField = '内容字段';

$lang->workflow->upgrade = new stdclass();
$lang->workflow->upgrade->common         = '升级';
$lang->workflow->upgrade->backup         = '备份';
$lang->workflow->upgrade->backupSuccess  = '备份成功';
$lang->workflow->upgrade->newVersion     = '发现新版本！';
$lang->workflow->upgrade->clickme        = '点击升级';
$lang->workflow->upgrade->start          = '开始升级';
$lang->workflow->upgrade->currentVersion = '当前版本';
$lang->workflow->upgrade->selectVersion  = '选择版本';
$lang->workflow->upgrade->confirm        = '确认要执行的SQL语句';
$lang->workflow->upgrade->upgrade        = '升级现有模块';
$lang->workflow->upgrade->upgradeFail    = '升级失败';
$lang->workflow->upgrade->upgradeSuccess = '升级成功';
$lang->workflow->upgrade->install        = '安装一个新模块';
$lang->workflow->upgrade->installFail    = '安装失败';
$lang->workflow->upgrade->installSuccess = '安装成功';

/* Tips */
$lang->workflow->tips = new stdclass();
$lang->workflow->tips->noCSSTag              = '不需要&lt;style&gt;&lt;/style&gt;标签';
$lang->workflow->tips->noJSTag               = '不需要&lt;script&gt;&lt;/script&gt;标签';
$lang->workflow->tips->flowCSS               = '，加载到所有页面';
$lang->workflow->tips->flowJS                = '，加载到所有页面';
$lang->workflow->tips->actionCSS             = '，仅加载到当前动作的页面';
$lang->workflow->tips->actionJS              = '，仅加载到当前动作的页面';
$lang->workflow->tips->firstRelease          = '该流程从属于%s，流程发布后会自动添加到对应流程模板中，是否同步发布模板中的流程？';
$lang->workflow->tips->release               = '该流程发布后，流程模板中的通用流程会同步修改。';
$lang->workflow->tips->activate              = '流程启用后，流程模板中的通用流程和自定义流程是否也要一起启用？';
$lang->workflow->tips->deactivate            = '您确定要停用此流程吗？';
$lang->workflow->tips->syncDeactivate        = '该流程停用后，流程模板不能使用该流程对象。';
$lang->workflow->tips->belongDisabled        = '该流程已在模板中设置了自定义流程，不能修改从属对象。';
$lang->workflow->tips->create                = '太棒了！您已经成功创建了一个新流程，现在要去设计您的流程吗？';
$lang->workflow->tips->subTable              = '填写的表单中，还需要填写具体的明细信息时，可以通过子表来实现。场景举例：提交报销申请时，还需填写报销明细。此时，可通过在报销中新增子表"报销明细"来实现。';
$lang->workflow->tips->buildinFlow           = '内置流程暂不支持使用快捷编辑器。';
$lang->workflow->tips->fullTextSearch        = '使用全文检索功能需要设置哪些字段的内容可以被检索到。标题字段在全文检索中的权重较大，内容字段权重较小。<br/>权重越大，在搜索结果中越靠前。<br/>设置字段后需要重建索引才能生效。重建索引的速度和内容数量成正比，请耐心等待索引重建完成。';
$lang->workflow->tips->buildIndex            = '重建索引可能需要一段时间，确定执行操作吗？';
$lang->workflow->tips->deleteConfirm         = "<p class='text-lg font-bold'>您确定要删除该流程吗？</p><p>删除流程后，关联的数据都会被删除，如历史记录、审批记录等。</p><p>包括该工作流配置的自定义流程及自定义流程产生的数据。</p><p class='text-danger'><b>该操作是不可逆的，删除的内容无法恢复！</b></p>";
$lang->workflow->tips->belong                = '该工作流将按照从属对象进行数据隔离，选择从属于产品、项目、执行后会加入对应的流程模板中。';
$lang->workflow->tips->belongError           = '该流程已在%s模板下设置了自定义流程，无法切换所属视图。';
$lang->workflow->tips->noQuoteTables         = '其他模板没有可以引用的子表。';
$lang->workflow->tips->subTableSync          = '该子表已在%s中引用，修改后将同步修改。';
$lang->workflow->tips->notEditTable          = '引用的子表不能编辑。';
$lang->workflow->tips->confirmDeleteHasQuote = '删除后，其他模板中引用该子表的数据均被同步删除，操作不可逆，您确定要删除吗？';
$lang->workflow->tips->confirmDeleteInQuote  = '移除后，该工作流内使用子表内字段的配置均同步删除，操作不可逆，您确定要移除吗？';

$lang->workflow->notNow   = '暂不';
$lang->workflow->toDesign = '去设计';

/* Title */
$lang->workflow->title = new stdclass();
$lang->workflow->title->subTable   = '明细表用来存储%s记录的明细';
$lang->workflow->title->noCopy     = '内置流程不能复制。';
$lang->workflow->title->noLabel    = '内置流程不能添加标签。';
$lang->workflow->title->noSubTable = '内置流程不能添加明细表。';
$lang->workflow->title->noRelation = '内置流程不能设置跨流程。';
$lang->workflow->title->noJS       = '内置流程不能设置js。';
$lang->workflow->title->noCSS      = '内置流程不能设置css。';
$lang->workflow->title->remove     = '移除';

/* Placeholder */
$lang->workflow->placeholder = new stdclass();
$lang->workflow->placeholder->module       = '只能包含英文字母，保存后不可更改';
$lang->workflow->placeholder->titleField   = '标题字段只能有一个，在全文检索中的权重较小';
$lang->workflow->placeholder->contentField = '内容字段可以有多个，在全文检索中的权重较大';

/* Error */
$lang->workflow->error = new stdclass();
$lang->workflow->error->createTableFail = '自定义流程数据表创建失败。';
$lang->workflow->error->buildInModule   = '不能使用系统内置模块作为流程代号。';
$lang->workflow->error->wrongCode       = '『%s』只能包含英文字母。';
$lang->workflow->error->conflict        = '『%s』与系统语言冲突。';
$lang->workflow->error->notFound        = '流程『%s』未找到。';
$lang->workflow->error->flowLimit       = '您只能创建 %s 个流程。';
$lang->workflow->error->buildIndexFail  = '重建索引失败。';
$lang->workflow->error->unique          = '『%s』已被其他模板使用。如需使用此字段，请从【使用其他模板子表】中选择。';

$lang->workflow->notice = new stdclass();
$lang->workflow->notice->autoAddBelong = '系统将自动为您在新建页面增加“%s”字段。';

$lang->workflowtable = new stdclass();
$lang->workflowtable->common = '明细表';
$lang->workflowtable->browse = '浏览表';
$lang->workflowtable->create = '新增表';
$lang->workflowtable->edit   = '编辑表';
$lang->workflowtable->view   = '表详情';
$lang->workflowtable->delete = '删除表';
$lang->workflowtable->module = '表代号';
$lang->workflowtable->name   = '表名';
$lang->workflowtable->use    = '使用子表';

$lang->workfloweditor = new stdclass();
$lang->workfloweditor->nextStep              = '下一步';
$lang->workfloweditor->prevStep              = '上一步';
$lang->workfloweditor->quickEditor           = '快捷编辑器';
$lang->workfloweditor->advanceEditor         = '高级编辑器';
$lang->workfloweditor->switchTo              = '切换至%s';
$lang->workfloweditor->switchConfirmMessage  = '将切换到高级工作流编辑器，<br>您可以在高级编辑器进行扩展设置、标签设计和子表设计等操作。<br>确定切换吗？';
$lang->workfloweditor->cancelSwitch          = '暂不切换';
$lang->workfloweditor->confirmSwitch         = '确认切换';
$lang->workfloweditor->elementCode           = '代号';
$lang->workfloweditor->elementType           = '类型';
$lang->workfloweditor->elementName           = '名称';
$lang->workfloweditor->nameAndCodeRequired   = '名称和代号不能为空';
$lang->workfloweditor->uiDesign              = '界面设计';
$lang->workfloweditor->selectField           = '字段控制选取';
$lang->workfloweditor->uiPreview             = '界面预览';
$lang->workfloweditor->fieldProperties       = '字段属性操作';
$lang->workfloweditor->uiControls            = '控件';
$lang->workfloweditor->showedFields          = '已有字段';
$lang->workfloweditor->selectFieldToEditTip  = '点击选择表单字段后在此处编辑';
$lang->workfloweditor->addFieldOption        = '添加选项';
$lang->workfloweditor->confirmReleaseMessage = '您还可以通过工作流高级编辑器进行例如扩展动作、筛选标签等设置，您确定现在要发布吗？';
$lang->workfloweditor->switchMessage         = '您也可以通过此处进行编辑器的切换哦';
$lang->workfloweditor->continueRelease       = '继续发布';
$lang->workfloweditor->enterToAdvance        = '进入高级编辑器';
$lang->workfloweditor->labelAll              = '所有';
$lang->workfloweditor->confirmToDelete       = '确定删除此%s？';
$lang->workfloweditor->leavePageTip          = '当前页面有没有保存的内容，确定要离开页面吗？';
$lang->workfloweditor->addFile               = '添加附件';
$lang->workfloweditor->fieldWidth            = '列宽度';
$lang->workfloweditor->fieldPosition         = '对齐方式';
$lang->workfloweditor->dragDropTip           = '拖放到这里';
$lang->workfloweditor->moreSettingsLabel     = '更多设置';

$lang->workfloweditor->quickSteps = array();
$lang->workfloweditor->quickSteps['ui'] = '界面设计|workflow|ui';

$lang->workfloweditor->advanceSteps = array();
$lang->workfloweditor->advanceSteps['mainTable'] = '主表设计|workflowfield|browse';
$lang->workfloweditor->advanceSteps['subTable']  = '子表设计|workflow|browsedb';
$lang->workfloweditor->advanceSteps['action']    = '动作设计|workflowaction|browse';
$lang->workfloweditor->advanceSteps['label']     = '标签设计|workflowlabel|browse';
$lang->workfloweditor->advanceSteps['setting']   = array('link' => '更多设置|workflow|more', 'subMenu' => array('workflowrelation' => 'admin', 'workflowfield' => 'setValue,setExport,setSearch', 'workflow' => 'setJS,setCSS,setFulltextSearch,setApproval', 'workflowreport' => 'browse'));

$lang->workfloweditor->moreSettings = array();
$lang->workfloweditor->moreSettings['approval']  = "审批设置|workflow|setapproval|module=%s";
$lang->workfloweditor->moreSettings['relation']  = "跨流程设置|workflowrelation|admin|prev=%s";
$lang->workfloweditor->moreSettings['setReport'] = "报表设置|workflowreport|browse|module=%s";
$lang->workfloweditor->moreSettings['setValue']  = "显示值设置|workflowfield|setValue|module=%s";
$lang->workfloweditor->moreSettings['setExport'] = "导出设置|workflowfield|setExport|module=%s";
$lang->workfloweditor->moreSettings['setSearch'] = "搜索设置|workflowfield|setSearch|module=%s";
$lang->workfloweditor->moreSettings['fulltext']  = "全文检索|workflow|setFulltextSearch|id=%s";
$lang->workfloweditor->moreSettings['setJS']     = "JS|workflow|setJS|id=%s";
$lang->workfloweditor->moreSettings['setCSS']    = "CSS|workflow|setCSS|id=%s";

if(empty($config->openedApproval)) unset($lang->workfloweditor->moreSettings['approval']);

$lang->workfloweditor->validateMessages = array();
$lang->workfloweditor->validateMessages['nameRequired']        = '必须填写字段名称';
$lang->workfloweditor->validateMessages['nameDuplicated']      = '存在重复的字段名称，请使用不同名称';
$lang->workfloweditor->validateMessages['fieldRequired']       = '必须填写字段代号';
$lang->workfloweditor->validateMessages['fieldInvalid']        = '字段代号只能包含英文字母';
$lang->workfloweditor->validateMessages['fieldDuplicated']     = '字段代号与已有字段“%s”重复，请使用不同的代号';
$lang->workfloweditor->validateMessages['lengthRequired']      = '必须指定类型长度';
$lang->workfloweditor->validateMessages['failSummary']         = '%s个字段存在错误，请修改后再进行保存。';
$lang->workfloweditor->validateMessages['defaultNotInOptions'] = '默认值“%s”不在可选项中。';
$lang->workfloweditor->validateMessages['defaultNotOptionKey'] = '应该使用选项“%s”的“键”作为默认值。';
$lang->workfloweditor->validateMessages['widthInvalid']        = '宽度值必须为数值或者 “auto”';

$lang->workfloweditor->error = new stdclass();
$lang->workfloweditor->error->unknown = '未知的错误，请重新提交。如果重复多次仍无法保存，请刷新页面后再尝试。';

$lang->workflowapproval = new stdclass();
$lang->workflowapproval->enabled         = '启用审批功能';
$lang->workflowapproval->approval        = '审批';
$lang->workflowapproval->approvalFlow    = '审批流';
$lang->workflowapproval->noApproval      = '没有可以使用的审批流，';
$lang->workflowapproval->createTips      = array('您可以', '您可以联系管理员创建审批流。');
$lang->workflowapproval->createApproval  = '创建审批流';
$lang->workflowapproval->waiting         = '审批中';
$lang->workflowapproval->conflictField   = '字段：';
$lang->workflowapproval->conflictAction  = '动作：';
$lang->workflowapproval->openLater       = '您也可以稍后在高级编辑器中开启或关闭审批功能。';
$lang->workflowapproval->disableApproval = '该流程无法开启审批功能。';
$lang->workflowapproval->conflict        = array('启用审批', '启用审批功能需要添加新的字段和动作，系统检测到以下字段和动作存在冲突：', '您可以点击【取消】自己解决冲突，如“修改字段代号、删除字段、删除动作”，之后重新启用审批功能。', '您也可以点击【覆盖】由系统解决冲突。系统会删除冲突的字段和动作，并添加新的字段和动作。', '注意：覆盖操作是不可逆的，删除的字段和动作无法恢复！');

$lang->workflowapproval->approvalList = array('enabled' => '开启', 'disabled' => '关闭');

$lang->workflowapproval->tips = new stdclass();
$lang->workflowapproval->tips->processesInProgress = '有审批流程正在进行中，请审批完成或撤回。';

$lang->workflowapproval->buildInFields = array('name' => array(), 'options' => array());
$lang->workflowapproval->buildInFields['name']['reviewers']     = '审批人';
$lang->workflowapproval->buildInFields['name']['reviewStatus']  = '审批状态';
$lang->workflowapproval->buildInFields['name']['reviewResult']  = '审批结果';
$lang->workflowapproval->buildInFields['name']['reviewOpinion'] = '审批意见';

$lang->workflowapproval->buildInFields['options']['reviewStatus'] = array('wait' => '待审批', 'doing' => '审批中', 'pass' => '通过', 'reject' => '不通过', 'reverting' => '回退');
$lang->workflowapproval->buildInFields['options']['reviewResult'] = array('pass' => '通过', 'reject' => '不通过');

$lang->workflowapproval->buildInActions = array('name' => array('submit' => '提交', 'cancel' => '撤回', 'review' => '评审'));
