update
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import translations from './translations';
|
||||
|
||||
//提供转换器
|
||||
export default function customTranslate(template, replacements) {
|
||||
replacements = replacements || {};
|
||||
|
||||
// Translate
|
||||
template = translations[template] || template;
|
||||
|
||||
// Replace
|
||||
return template.replace(/{([^}]+)}/g, function(_, key) {
|
||||
return replacements[key] || '{' + key + '}';
|
||||
});
|
||||
}
|
||||
104
ebpm-process-modeler/bpmn-js/customTranslate/translations.js
Normal file
104
ebpm-process-modeler/bpmn-js/customTranslate/translations.js
Normal file
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
*
|
||||
* 转换字典
|
||||
* This is a sample file that should be replaced with the actual translation.
|
||||
*
|
||||
* Checkout https://github.com/bpmn-io/bpmn-js-i18n for a list of available
|
||||
* translations and labels to translate.
|
||||
*/
|
||||
export default {
|
||||
//'Exclusive Gateway': 'Exklusives Gateway',
|
||||
//'Parallel Gateway': 'Paralleles Gateway',
|
||||
//'Inclusive Gateway': 'Inklusives Gateway',
|
||||
//'Complex Gateway': 'Komplexes Gateway',
|
||||
//'Event based Gateway': 'Ereignis-basiertes Gateway',
|
||||
'Message Start Event': '消息启动事件',
|
||||
'Timer Start Event': '定时启动事件',
|
||||
'Conditional Start Event': '条件启动事件',
|
||||
'Signal Start Event': '信号启动事件',
|
||||
'Error Start Event': '错误启动事件',
|
||||
'Escalation Start Event': '升级启动事件',
|
||||
'Compensation Start Event': '补偿启动事件',
|
||||
'Message Start Event (non-interrupting)': '消息启动事件 (非中断)',
|
||||
'Timer Start Event (non-interrupting)': '定时启动事件 (非中断)',
|
||||
'Conditional Start Event (non-interrupting)': '条件启动事件 (非中断)',
|
||||
'Signal Start Event (non-interrupting)': '信号启动事件 (非中断)',
|
||||
'Escalation Start Event (non-interrupting)': '升级启动事件 (非中断)',
|
||||
'Assignee': '代理人',
|
||||
'Candidate Groups': '候选组',
|
||||
'Candidate Users': '候选人',
|
||||
'Due Date': '到期日',
|
||||
'Follow Up Date': '跟踪日期',
|
||||
'Priority': '优先',
|
||||
'General': '一般信息',
|
||||
'teners': '监听',
|
||||
'Extensions': '扩展',
|
||||
'Name': '名称',
|
||||
'Version Tag': '版本标签',
|
||||
'Executable': '可执行文件',
|
||||
'External Task Configuration': '外部任务配置',
|
||||
'Task Priority': '任务优先级',
|
||||
'Job Configuration': '作业配置',
|
||||
'Job Priority': '工作优先级',
|
||||
'Documentation': '文档',
|
||||
'Element Documentation': '说明',
|
||||
'History Configuration': '历史配置',
|
||||
'History Time To Live': '历史生存时间',
|
||||
'Details': '详情',
|
||||
"keyDetails":'流程信息',
|
||||
'Initiator': '发起者',
|
||||
'Asynchronous Continuations': '异步连续',
|
||||
'Asynchronous Before': '异步之前',
|
||||
'Asynchronous After': '异步之后',
|
||||
'Forms': '表单',
|
||||
'Input/Output': '输入/输出',
|
||||
'Properties': '属性',
|
||||
'Add Property': '添加属性',
|
||||
'value': '值',
|
||||
'Parameters': '参数',
|
||||
'Input Parameters': '输入参数',
|
||||
'Output Parameters': '输出参数',
|
||||
'Execution Listener': '执行监听',
|
||||
'Task Listener': '任务监听',
|
||||
'Id': 'ID(唯一标识)',
|
||||
'Change type': '改变类型',
|
||||
'Append EndEvent': '添加结束事件',
|
||||
'Append Gateway': '添加网关',
|
||||
'Append Task': '添加任务',
|
||||
'Append UserTask': '添加用户任务',
|
||||
'Append TextAnnotation': '添加文本注释',
|
||||
'Remove':'删除',
|
||||
'Connect using Sequence/MessageFlow or Association': '连接线',
|
||||
'Inclusive Gateway': '包容网关',
|
||||
'Parallel Gateway': '并行网关',
|
||||
'Exclusive Gateway': '条件网关',
|
||||
'End Event': '结束事件',
|
||||
'Start Event': '开始事件',
|
||||
'Create StartEvent': '开始事件',
|
||||
'Create EndEvent': '结束事件',
|
||||
'Create ExclusiveGateway': '条件网关',
|
||||
'Create UserTask': '用户任务',
|
||||
'Create ServiceTask' : '服务任务',
|
||||
'Create ScriptTask' : '脚本任务',
|
||||
'Create ReceiveTask' : '等待任务',
|
||||
'Create ManualTask' : '线下任务',
|
||||
'Create expanded SubProcess': '内嵌子流程',
|
||||
'Create collapsed SubProcess': '调用外部子流程',
|
||||
'Create InclusiveGateway': '包容网关',
|
||||
'Activate the lasso tool': '套索工具',
|
||||
'Activate the global connect tool': '连接线',
|
||||
'Activate the hand tool': '手',
|
||||
'Task': '任务',
|
||||
'User Task': '用户任务',
|
||||
'Receive Task': '接收任务',
|
||||
'Service Task': '服务任务',
|
||||
'Manual Task': '手动任务',
|
||||
'Script Task': '脚本任务',
|
||||
'Sub Process (collapsed)': '子流程(折叠)',
|
||||
'Call Activity': '外部子流程',
|
||||
'Sub Process (expanded)': '子流程(扩展)',
|
||||
'Transaction': '处理',
|
||||
'Event Sub Process': '事件子流程',
|
||||
'Sub Process': '子流程',
|
||||
'Set Color':'设置颜色',
|
||||
}
|
||||
Reference in New Issue
Block a user