<?php
global $config;
$lang->publishtemplate = new stdClass();

$lang->publishtemplate->common      = '上线模板管理';
$lang->publishtemplate->browse      = '上线模板列表';
$lang->publishtemplate->create      = '添加上线模板';
$lang->publishtemplate->edit        = '编辑上线模板';
$lang->publishtemplate->delete      = '删除上线模板';
$lang->publishtemplate->name        = '名称';
$lang->publishtemplate->systemID    = '所属应用';
$lang->publishtemplate->appKey      = '应用标识';
$lang->publishtemplate->envID       = '环境';
$lang->publishtemplate->hosts       = '关联主机';
$lang->publishtemplate->hostNum     = '主机数量';
$lang->publishtemplate->desc        = '模板描述';
$lang->publishtemplate->system      = '部署方式';
$lang->publishtemplate->createdBy   = '创建人';
$lang->publishtemplate->createdDate = '创建时间';
$lang->publishtemplate->productName = '所属产品';
$lang->publishtemplate->mode        = '上线模式';
$lang->publishtemplate->modeList[1] = '串行';
$lang->publishtemplate->modeList[2] = '并行';

$lang->publishtemplate->clusterID   = '集群';
$lang->publishtemplate->ports       = '监听端口';
$lang->publishtemplate->protocol    = '协议';
$lang->publishtemplate->port        = '端口';
$lang->publishtemplate->portDesc    = '描述';
$lang->publishtemplate->dirs        = '持久化目录';
$lang->publishtemplate->dir         = '目录名';
$lang->publishtemplate->dirDesc     = '描述';
$lang->publishtemplate->envs        = '环境变量';
$lang->publishtemplate->envKey      = '变量名';
$lang->publishtemplate->envVlue     = '变量值';
$lang->publishtemplate->services    = '依赖服务';
$lang->publishtemplate->service     = '依赖服务';
$lang->publishtemplate->serviceDesc = '描述';

$lang->publishtemplate->serviceList = array();
$lang->publishtemplate->serviceList['mysql'] = 'MySQL';
$lang->publishtemplate->serviceList['redis'] = 'Redis';

$lang->publishtemplate->protocolList = array();
$lang->publishtemplate->protocolList['tcp'] = 'TCP';
$lang->publishtemplate->protocolList['udp'] = 'UDP';

$lang->publishtemplate->step = new stdClass();
$lang->publishtemplate->step->next = '下一步';
$lang->publishtemplate->step->prev = '上一步';

$lang->publishtemplate->localCommand = new stdClass();
$lang->publishtemplate->localCommand->title = '本地动作';
$lang->publishtemplate->localCommand->data  = '本地命令';

$lang->publishtemplate->targetCommand = new stdClass();
$lang->publishtemplate->targetCommand->title = '目标动作';
$lang->publishtemplate->targetCommand->data  = '目标命令';

$lang->publishtemplate->systemList = array();
$lang->publishtemplate->systemList['cne']  = '渠成应用上线';
$lang->publishtemplate->systemList['spug'] = '主机上线';

$lang->publishtemplate->featureBar = array();
$lang->publishtemplate->featureBar['browse']['spug'] = '主机上线模板';
$lang->publishtemplate->featureBar['browse']['cne']  = '渠成应用上线模板';

$lang->publishtemplate->appKeyPlaceholder = '可以由小写字母、数字组成，且必须以小写字母打头';
$lang->publishtemplate->confirmDelete     = '确定要删除模板吗？';

$lang->publishtemplate->notice = new stdClass();
$lang->publishtemplate->notice->length           = '%s长度不能超过%d个字符';
$lang->publishtemplate->notice->appKey           = '仅允许小写字母、数字，且必须以小写字母打头';
$lang->publishtemplate->notice->commands         = '至少需要配置一组本地动作或目标主机动作';
$lang->publishtemplate->notice->protocol         = '仅支持tcp和udp协议';
$lang->publishtemplate->notice->duplicatePort    = '端口不能有重复';
$lang->publishtemplate->notice->port             = '端口只能是整数，范围是1~65535';
$lang->publishtemplate->notice->portDesc         = '端口描述不能超过30个字符且只能包含字母、数字、中文、下划线和横线';
$lang->publishtemplate->notice->nonSystemDir     = '不能是系统保留目录(%s)';
$lang->publishtemplate->notice->dir              = '目录必须/开头且不能以/结尾，只允许字母、数字、下划线和横线，最长100个字符';
$lang->publishtemplate->notice->dirDesc          = '目录描述不能超过30个字符且只能包含字母、数字、中文、下划线和横线';
$lang->publishtemplate->notice->duplicateDir     = '目录不能有重复';
$lang->publishtemplate->notice->duplicateEnvKey  = '环境变量名不能有重复';
$lang->publishtemplate->notice->envKey           = '环境变量名必须以大写字母开头,只能包含大写字母、数字和下划线，最长100个字符';
$lang->publishtemplate->notice->envValue         = '环境变量值不能为空、不能包含中文且长度不能超过100';
$lang->publishtemplate->notice->service          = '服务名称不能为空';
$lang->publishtemplate->notice->serviceDesc      = '服务描述不能超过30个字符且只能包含字母、数字、中文、下划线和横线';
$lang->publishtemplate->notice->duplicateService = '服务名称不能有重复';
$lang->publishtemplate->notice->hasDeploy        = '该上线模板已被应用到上线申请，无法删除';
$lang->publishtemplate->notice->noSpug           = '内置Spug服务未启动，不可操作';

$lang->publishtemplate->apiError = new stdClass();
$lang->publishtemplate->apiError->exists             = ' %s 已存在，请更改后重试';
$lang->publishtemplate->apiError->systemAndEnvExists = '当前应用下已存在该环境的上线模板，请选择其他环境进行操作。';
$lang->publishtemplate->apiError->DeldeployTPLTip    = '该模板已被使用，无法删除';

$lang->publishtemplate->helpTip = '请联系客户成功经理获取线下帮助手册';
