<?php
global $app, $lang;

$lang->perfproject->common        = 'X分析';
$lang->perfproject->create        = '开始分析';
$lang->perfproject->edit          = '编辑';
$lang->perfproject->delete        = '删除';
$lang->perfproject->rename        = '重命名';
$lang->perfproject->empty         = '暂时没有项目';
$lang->perfproject->id            = 'ID';
$lang->perfproject->name          = '项目名称';
$lang->perfproject->source        = '数据源';
$lang->perfproject->table         = '选择表格';
$lang->perfproject->desc          = '描述';
$lang->perfproject->createdBy     = '创建者';
$lang->perfproject->createdDate   = '创建时间';
$lang->perfproject->createProject = '新建项目';
$lang->perfproject->needProject   = '请填写项目名称';
$lang->perfproject->needName      = '请填写项目名称';
$lang->perfproject->needSource    = '请选择数据源';
$lang->perfproject->readError     = '表格数据为空或数据错误';
$lang->perfproject->rowLimitError = '表格数据行数需小于30000条';
$lang->perfproject->bylist        = '列表';
$lang->perfproject->bycard        = '卡片';
$lang->perfproject->all           = '所有的';
$lang->perfproject->createdByMe   = '我创建';
$lang->perfproject->browse        = '分析项目列表';
$lang->perfproject->copySuccess   = '复制成功';
$lang->perfproject->createTitle   = '请选择需要分析的数据';
$lang->perfproject->selectData    = '选择数据';
$lang->perfproject->selectTable   = '选择列表';
$lang->perfproject->list          = '列表';
$lang->perfproject->dataAnalysis  = '数据分析';
$lang->perfproject->emptyAnalysis = '空表分析';
$lang->perfproject->history       = '历史记录';
$lang->perfproject->selectFile    = '选择文件';
$lang->perfproject->emptyError    = '不能为空';
$lang->perfproject->lengthError   = "『%s』长度应当不超过『%d』";

$lang->perfproject->teamDesc = '共%s人';
$lang->perfproject->allDesc  = '所有';

$lang->perfproject->data        = '数据';
$lang->perfproject->managepriv  = '修改项目权限';

$lang->perfproject->acl                = '权限控制';
$lang->perfproject->aclList['private'] = '私有';
$lang->perfproject->aclList['open']    = '公开';

$lang->perfproject->datatype['excel'] = 'Excel';
$lang->perfproject->datatype['view']  = 'MySQL';

/* 权限 */
$lang->perfproject->view         = '查看X分析';
$lang->perfproject->createAction = '创建分析项目';
$lang->perfproject->editAction   = '编辑分析项目';
$lang->perfproject->deleteAction = '删除分析项目';

$lang->perfproject->analysis    = new stdClass();
$lang->perfproject->analysis->title        = '分析';
$lang->perfproject->analysis->rename       = '重命名';
$lang->perfproject->analysis->delete       = '删除';
$lang->perfproject->analysis->expand       = '展开';
$lang->perfproject->analysis->reduce       = '收起';
$lang->perfproject->analysis->refresh      = '更新';
$lang->perfproject->analysis->setting      = '参数设置';
$lang->perfproject->analysis->renameMethod = '重命名';
$lang->perfproject->analysis->copy         = '复制';
$lang->perfproject->analysis->export       = '导出';
$lang->perfproject->analysis->deleteMethod = '删除';

$lang->perfproject->notes = new stdClass();
$lang->perfproject->notes->title         = '注释';
$lang->perfproject->notes->placeholder   = '在此输入注释...';
$lang->perfproject->notes->deleteConfirm = '您确定要删除吗？';
$lang->perfproject->notes->empty         = '暂时没有注释';
$lang->perfproject->notes->history       = '默认展示近12个上传的文件';
$lang->perfproject->notes->file          = '请选择xlsx类型的文件, 不超过 %s';
$lang->perfproject->notes->emptyTable    = '系统会创建一个空的分析项目, 进入项目后您可以继续添加分析数据';
$lang->perfproject->notes->upload        = '选择历史文件将清除已上传的文件, 是否继续?';
$lang->perfproject->notes->emptyProject  = '暂时没有分析项目';
$lang->perfproject->notes->copyFailed    = '复制失败，请重试';

$lang->perfproject->tips = new stdClass();
$lang->perfproject->tips->selectTable = '为确保数据分析的有效性，系统仅保留名称、数值、日期和选项类字段数据';
$lang->perfproject->tips->noProduct   = '暂时没有产品，请先创建';
$lang->perfproject->tips->noProject   = '暂时没有项目，请先创建';
$lang->perfproject->tips->noTask      = '暂时没有任务，请先创建';
$lang->perfproject->tips->fileType    = '仅支持xlsx格式的 Excel 文件';

$lang->perfproject->featureBar = array();
$lang->perfproject->featureBar['all']         = '所有';
$lang->perfproject->featureBar['createdByMe'] = '由我创建';

$lang->perfproject->featureBar['browse']['all']         = '所有';
$lang->perfproject->featureBar['browse']['createdbyme'] = '我创建';

$lang->perfproject->confirmDelete = '您确定要删除吗？';

$lang->perfproject->randomMethod = array();
$lang->perfproject->randomMethod['normal'] = '正态';

$lang->perfproject->calculateMethod = array();
$lang->perfproject->calculateMethod['rank']       = '排秩';
$lang->perfproject->calculateMethod['log']        = '自然对数';
$lang->perfproject->calculateMethod['reciprocal'] = '倒数';
$lang->perfproject->calculateMethod['square']     = '平方';

$lang->perfproject->method = array();
$lang->perfproject->method['normal']     = '正态';
$lang->perfproject->method['rank']       = '排秩';
$lang->perfproject->method['log']        = '自然对数';
$lang->perfproject->method['reciprocal'] = '倒数';
$lang->perfproject->method['square']     = '平方';

$lang->perfproject->simulate = array();
// TODO
// $lang->perfproject->simulate['template']         = array();
// $lang->perfproject->simulate['template']['name'] = '模板数据';
// $lang->perfproject->simulate['template']['data'] = array();

$lang->perfproject->simulate['random']         = array();
$lang->perfproject->simulate['random']['name'] = '随机数据';
$lang->perfproject->simulate['random']['data'] = $lang->perfproject->randomMethod;
$lang->perfproject->simulate['calculate']         = array();
$lang->perfproject->simulate['calculate']['name'] = '计算数据';
$lang->perfproject->simulate['calculate']['data'] = $lang->perfproject->calculateMethod;

$lang->perfproject->tableList = array();
$lang->perfproject->tableList['story']          = $lang->SRCommon;
$lang->perfproject->tableList['task']           = $lang->task->common;
$lang->perfproject->tableList['bug']            = $lang->bug->common;
$lang->perfproject->tableList['productStory']   = $lang->productCommon . $lang->SRCommon;
$lang->perfproject->tableList['projectStory']   = $lang->projectCommon . $lang->SRCommon;
$lang->perfproject->tableList['executionStory'] = $lang->execution->common . $lang->SRCommon;
$lang->perfproject->tableList['planStory']      = $lang->productplan->shortCommon . $lang->SRCommon;
$lang->perfproject->tableList['productBug']     = '产品Bug';
$lang->perfproject->tableList['planBug']        = '计划Bug';
$lang->perfproject->tableList['execution']      = $lang->execution->common;

$app->loadLang('perfdatasource');
$lang->perfproject->dataTypeList['select'] = $lang->perfdatasource->select;
$lang->perfproject->dataTypeList['upload'] = $lang->perfdatasource->file;
$lang->perfproject->dataTypeList['empty']  = $lang->perfdatasource->emptyTable;
