diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-27 14:05:45 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-27 14:05:45 +0800 |
commit | 861679f2128c3b746d7e3cee15e05bbc15f3d02b (patch) | |
tree | 502b258ae5b9fc4f34434274649111b44e808149 | |
parent | 6448ceed6c03ae87fdae88df9abcbf8eeb532bd1 (diff) |
Modify i18n files.
Modify i18n files.
Issue-ID: SDC-1130,SDC-1131
Change-Id: I7a68dc06d269a9f0a6eaaa30d824967e8adc48d8
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
-rw-r--r-- | sdc-workflow-designer-ui/src/assets/global-setting.json | 4 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/assets/i18n/en.json | 62 | ||||
-rw-r--r-- | sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json | 66 |
3 files changed, 121 insertions, 11 deletions
diff --git a/sdc-workflow-designer-ui/src/assets/global-setting.json b/sdc-workflow-designer-ui/src/assets/global-setting.json index 85e14cb7..6ff2b7ba 100644 --- a/sdc-workflow-designer-ui/src/assets/global-setting.json +++ b/sdc-workflow-designer-ui/src/assets/global-setting.json @@ -1,3 +1,5 @@ { - "BackendType":"Catalog" + "supportRestNode": false, + "supportToscaNode": false, + "supoortToscaProperties": true } diff --git a/sdc-workflow-designer-ui/src/assets/i18n/en.json b/sdc-workflow-designer-ui/src/assets/i18n/en.json index 400bf320..45034e5e 100644 --- a/sdc-workflow-designer-ui/src/assets/i18n/en.json +++ b/sdc-workflow-designer-ui/src/assets/i18n/en.json @@ -1,5 +1,6 @@ { "WORKFLOW": { + "UNAUTHORIZED": "Unauthorized!", "BPMN_EVENT": "Event", "BPMN_TASK": "Task", "BPMN_GETWAY": "Getway", @@ -8,7 +9,19 @@ "SAVE": "Save", "TEST": "Test", "BACK": "Back", + "CONFIRM": "Confirm", + "CONFIRM_SAVE1": "Save data and back?", + "CONFIRM_SAVE2": "Unsaved data will lose when click 'back'.", + "CONFIRM_SAVE_BACK": "Save and back", + "CONFIRM_BACK": "Back", + "CREATE": "Create", + "DELETE": "Delete", "START_EVENT": "Start", + "PROCESS_VARIABLE": "Process Variable", + "PROCESS_VARIABLE_DEFAULT": "Default Value", + "PROCESS_VARIABLE_OPERATION": "Operation", + "PROCESS_VARIABLE_CREATE": "Create", + "PROCESS_VARIABLE_DELETE": "Delete", "END_EVENT": "End", "ERROR_START_EVENT": "Error Start", "ERROR_END_EVENT": "Error End", @@ -31,16 +44,57 @@ "TIMER_DURATION": "Duration", "TIMER_DATE": "Date", "TIMER_CYCLE": "Cycle", + "TIMER_YEAR": "Year", + "TIMER_MONTH": "Month", + "TIMER_DAY": "Day", + "TIMER_HOUR": "Hour", + "TIMER_MINUTE": "Minute", + "TIMER_SECOND": "Second", + "TIMER_CYCLE_INDEX": "Cycle Index", "CONNECTION_NAME": "Name", "CONNECTION_SOURCE": "Source", "CONNECTION_TARGET": "Target", "CONNECTION_CONDITION": "Condition", - "SCRIPT_FORMAT":"Script Format", - "SCRIPT":"Script", - + "SCRIPT_FORMAT": "Script Format", + "SCRIPT": "Script", + "SERVICE_CLASS": "Class", + "SERVICE_INPUT": "Input Parameters", + "SERVICE_OUTPUT": "Output Parameters", + "REST_INPUT_QUERY": "Query Parameters", + "REST_INPUT_HEADER": "Header Parameters", + "REST_INPUT_PATH": "Path Parameters", + "REST_INPUT_FORMDATA": "Formdata Parameters", + "REST_INPUT_BODY": "Body Parameters", + "REST_OUTPUT": "Output Parameters", "MSG": { + "LOAD_FAIL": "Load data fail.", "SWAGGER_NOT_EXISTS": "Swagger did not exist, please check the 'swagger.json' or service status.", - "SAVE_SUCCESS": "Save successful." + "SAVE_FAIL": "Save data fail.", + "SAVE_SUCCESS": "Save successful.", + "VARIABLE_EMPTY": "Variable Name should not be empty.", + "VARIABLE_SAME": "Variable Name should not be same.", + "PROCESS_VARIABLE_EMPTY": "Process Variable Name should not be empty.", + "PROCESS_VARIABLE_SAME": "Process Variable Name should not be same.", + "NODE_ID_SAME": "The node {{value}} is already exist." } + }, + "VALIDATE": { + "REQUIRED": "Value can't be empty", + "MAX_LENGTH": "The length of the value can't be greater than {{value}}", + "MIN_LENGTH": "The length of the value can't be less than {{value}}", + "LENGTH": "The length of the value must equal to {{value}}", + "IN_RANGE": "Value must be in range {{value}}", + "INTEGER": "Value must be an integer", + "FLOAT": "Value must be a float", + "PATTERN": "Value must match the regular expression {{value}}", + "GREATER_OR_EQUAL": "Value must be greater than or equal to {{value}}", + "LESS_OR_EQUAL": "Value must be less than or equal to {{value}}", + "GREATER_THAN": "Value must be greater than {{value}}", + "LESS_THAN": "Value must be less than {{value}}", + "EQUAL": "Value must equal to {{value}}", + "CHARACTER_LIMIT": "Only the following characters: {{value}}", + "CHARACTER_LENGTH": "Length {{value}}", + "NOT_ALL_NUMBER": "Not all number", + "FIRST_CHARACTER": "Begin with the letters or numbers" } } diff --git a/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json b/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json index 1e04f583..b93d05d3 100644 --- a/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json +++ b/sdc-workflow-designer-ui/src/assets/i18n/zh-CN.json @@ -1,5 +1,6 @@ { "WORKFLOW": { + "UNAUTHORIZED": "未授权!", "BPMN_EVENT": "事件", "BPMN_TASK": "任务", "BPMN_GETWAY": "网关", @@ -8,7 +9,19 @@ "SAVE": "保存", "TEST": "测试", "BACK": "返回", + "CONFIRM": "确认", + "CONFIRM_SAVE1": "保存并返回?", + "CONFIRM_SAVE2": "返回后,未保存的数据将无法恢复。", + "CONFIRM_SAVE_BACK": "保存并返回", + "CONFIRM_BACK": "返回", + "CREATE": "添加", + "DELETE": "删除", "START_EVENT": "开始", + "PROCESS_VARIABLE": "流程变量", + "PROCESS_VARIABLE_DEFAULT": "默认值", + "PROCESS_VARIABLE_OPERATION": "操作", + "PROCESS_VARIABLE_CREATE": "添加", + "PROCESS_VARIABLE_DELETE": "删除", "END_EVENT": "结束", "ERROR_START_EVENT": "异常开始", "ERROR_END_EVENT": "异常结束", @@ -29,18 +42,59 @@ "REST_METHOD": "方法", "TIMER_TYPE": "类型", "TIMER_DURATION": "间隔", - "TIMER_DATE": "固定日期", - "TIMER_CYCLE": "循环日期", + "TIMER_DATE": "日期", + "TIMER_CYCLE": "周期", + "TIMER_YEAR": "年", + "TIMER_MONTH": "月", + "TIMER_DAY": "日", + "TIMER_HOUR": "时", + "TIMER_MINUTE": "分", + "TIMER_SECOND": "秒", + "TIMER_CYCLE_INDEX": "循环次数", "CONNECTION_NAME": "名称", "CONNECTION_SOURCE": "源", "CONNECTION_TARGET": "目标", "CONNECTION_CONDITION": "条件", - "SCRIPT_FORMAT":"脚本类型", - "SCRIPT":"脚本", - + "SCRIPT_FORMAT": "脚本类型", + "SCRIPT": "脚本", + "SERVICE_CLASS": "类", + "SERVICE_INPUT": "输入参数", + "SERVICE_OUTPUT": "输出参数", + "REST_INPUT_QUERY": "Query参数", + "REST_INPUT_HEADER": "Header参数", + "REST_INPUT_PATH": "Path参数", + "REST_INPUT_FORMDATA": "Formdata参数", + "REST_INPUT_BODY": "Body参数", + "REST_OUTPUT": "输出参数", "MSG": { + "LOAD_FAIL": "加载失败。", "SWAGGER_NOT_EXISTS": "Swagger信息不存在请检查'swagger.json'或服务状态。", - "SAVE_SUCCESS": "保存成功" + "SAVE_FAIL": "保存失败。", + "SAVE_SUCCESS": "保存成功。", + "VARIABLE_EMPTY": "变量名不能为空。", + "VARIABLE_SAME": "变量名不能相同。", + "PROCESS_VARIABLE_EMPTY": "流程变量名不能为空。", + "PROCESS_VARIABLE_SAME": "流程变量名不能相同。", + "NODE_ID_SAME": "节点{{value}}已存在" } + }, + "VALIDATE": { + "REQUIRED": "值不能为空", + "MAX_LENGTH": "值长度不能超过{{value}}", + "MIN_LENGTH": "值长度不能少于{{value}}", + "LENGTH": "值长度必须等于{{value}}", + "IN_RANGE": "值必须在范围{{value}}内", + "INTEGER": "值必须是整数", + "FLOAT": "值必须是浮点数", + "PATTERN": "值必须符合正则表达式{{value}}", + "GREATER_OR_EQUAL": "值必须大于等于{{value}}", + "LESS_OR_EQUAL": "值必须小于等于{{value}}", + "GREATER_THAN": "值必须大于{{value}}", + "LESS_THAN": "值必须小于{{value}}", + "EQUAL": "值必须等于{{value}}", + "CHARACTER_LIMIT": "仅限下列字符:{{value}}", + "CHARACTER_LENGTH": "长度{{value}}", + "NOT_ALL_NUMBER": "不能全部为数字", + "FIRST_CHARACTER": "以字母或数字开始" } } |