-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Simplified Chinese and Traditional Chinese support. (#9)
Add Simplified Chinese and Traditional Chinese support.
- Loading branch information
Showing
14 changed files
with
2,260 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Copyright 2021 FlowSquad GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import bpmnJs from './zh-Hans/bpmn-js'; | ||
import dmnJs from './zh-Hans/dmn-js'; | ||
import propertiesPanel from './zh-Hans/properties-panel'; | ||
import other from './zh-Hans/other'; | ||
|
||
/** | ||
* Joins and exports the translated strings. | ||
*/ | ||
export default { | ||
...bpmnJs, | ||
...dmnJs, | ||
...propertiesPanel, | ||
...other | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/** | ||
* Copyright 2021 FlowSquad GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* This file contains the strings used in the bpmn-js module. | ||
*/ | ||
export default { | ||
'Append {type}': '追加 {type}', | ||
'Add Lane above': '在上方添加泳道', | ||
'Divide into two Lanes': '拆分成两条泳道', | ||
'Divide into three Lanes': '拆分成三条泳道', | ||
'Add Lane below': '在下方添加泳道', | ||
'Append ReceiveTask': '追加接收任务', | ||
'Append MessageIntermediateCatchEvent': '追加消息中间捕获事件', | ||
'Append TimerIntermediateCatchEvent': '追加时间中间捕获事件', | ||
'Append ConditionIntermediateCatchEvent': '追加条件中间捕获事件', | ||
'Append SignalIntermediateCatchEvent': '追加信号中间捕获事件', | ||
'Append compensation activity': '追加补偿活动', | ||
'Append EndEvent': '追加结束事件', | ||
'Append Gateway': '追加网关', | ||
'Append Task': '追加任务', | ||
'Append TextAnnotation': '追加文本描述', | ||
'TextAnnotation': '文本描述', | ||
'Append Intermediate/Boundary Event': '追加中间/边界事件', | ||
'Change type': '改变类型', | ||
'Default Flow': '默认连线', | ||
'Connect using Association': '使用关联连接', | ||
'Connect using Sequence/MessageFlow or Association': '使用序列/消息流或关联进行连接', | ||
'Connect using DataInputAssociation': '使用数据输入关联进行连接', | ||
'Remove': '删除', | ||
'no shape type specified': '未指定形状类型', | ||
'out of bounds release': '越界释放', | ||
'more than {count} child lanes': '超过 {count} 个子泳道', | ||
'element required': '所需元素', | ||
'no parent for {element} in {parent}': '{parent}中的{element}没有父元素', | ||
'Create {type}': '创建{type}', | ||
'Activate the hand tool': '激活手动工具', | ||
'Activate the lasso tool': '激活套索工具', | ||
'Activate the create/remove space tool': '激活创建/删除空间工具', | ||
'Activate the global connect tool': '激活全局连接工具', | ||
'Create StartEvent': '创建开始事件', | ||
'Create Intermediate/Boundary Event': '创建中间/边界事件', | ||
'Create EndEvent': '创建结束事件', | ||
'Create Gateway': '创建网关', | ||
'Create Task': '创建任务', | ||
'Create DataObjectReference': '创建数据对象引用', | ||
'Create DataStoreReference': '创建数据存储引用', | ||
'Create expanded SubProcess': '创建展开子流程', | ||
'Create Pool/Participant': '创建泳池/参与者', | ||
'Create Group': '创建组', | ||
'Parallel Multi Instance': '并行多实例', | ||
'Sequential Multi Instance': '串行多实例', | ||
'Loop': '循环', | ||
'Ad-hoc': '临时的', | ||
'element {element} referenced by {referenced}#{property} not yet drawn': '由{referenced}{property}引用的元素{element}尚未绘制', | ||
'unknown di {di} for element {semantic}': '元素{semantic}的未知di{di}', | ||
'missing {semantic}#attachedToRef': '缺少{semantic}的附加到引用', | ||
'{semantic}#{side} Ref not specified': '未指定{semantic}的{side}引用', | ||
'already rendered {element}': '已呈现 {element}', | ||
'failed to import {element}': '无法导入 {element}', | ||
'multiple DI elements defined for {element}': '{element}定义了多个DI元素', | ||
'no bpmnElement referenced in {element}': '{element}中没有引用bpmn元素', | ||
'diagram not part of bpmn:Definitions': '流程图不属于bpmn:Definitions', | ||
'no diagram to display': '没有要显示的流程图', | ||
'no process or collaboration to display': '没有要显示的流程或协作', | ||
'correcting missing bpmnElement on {plane} to {rootElement}': '正在将{plane}上缺少的bpmn元素更正为{rootElement}', | ||
'unsupported bpmnElement for {plane}: {rootElement}': '{plane}:{rootElement}的bpmn元素不受支持', | ||
'unrecognized flowElement {element} in context {context}': '上下文{context}中无法识别的流程元素{element}', | ||
'HELLO {you}!': '你好 {you}!' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* Copyright 2021 FlowSquad GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* This file contains the translated strings used in the dmn-js component. | ||
* However, notice that these strings are currently not working. We are | ||
* still investigating how to apply them. | ||
*/ | ||
export default { | ||
/*'Activate the lasso tool': '激活套索工具',*/ | ||
'Add Cell Description': '添加单元格描述', | ||
'Add Input': '添加输入', | ||
'Add Input Column Left': '向左添加输入列', | ||
'Add Input Column Right': '向右添加输入列', | ||
'Add Output': '添加输出', | ||
'Add Output Column Left': '向左添加输出列', | ||
'Add Output Column Right': '向右添加输出列', | ||
'Add Predefined Values': '添加预定义值', | ||
'Add Rule': '添加规则', | ||
'Add Rule Above': '在上方添加规则', | ||
'Add Rule Below': '在下方添加规则', | ||
'Add Values': '添加值', | ||
'Append Decision': '追加决策', | ||
'Append Knowledge Source': '追加知识源', | ||
'Append Business Knowledge Model': '追加知识模型', | ||
'Append Input Data': '追加输入数据', | ||
'And': '并且', | ||
'Annotations': '注释', | ||
/*'Append {type}': '追加 {type}',*/ | ||
'cellInput': '输入单元格', | ||
'Change Cell Expression Language': '更改单元格表达式语言', | ||
/*'Change type': '修改类型',*/ | ||
'Clear predefined values.': '清除预定义值。', | ||
'Copy Input Column': '复制输入列', | ||
'Copy Output Column': '复制输出列', | ||
'Copy Rule': '复制规则', | ||
'Create Decision': '创建决策', | ||
'Create Input Data': '创建输入数据', | ||
'Create Knowledge Model': '创建知识模型', | ||
'Create Knowledge Source': '创建知识源', | ||
'Cut Input Column': '剪切输入列', | ||
'Cut Output Column': '剪切输出列', | ||
'Cut Rule': '剪切规则', | ||
'Edit String': '编辑字符串', | ||
'Expression': '表达式', | ||
'Expression Language': '表达式语言', | ||
'Input': '输入', | ||
'input': '输入', | ||
'Input Expression': '输入表达式', | ||
'Input Label': '输入标签', | ||
'Input Type': '输入类型', | ||
'Input Values': '输入值', | ||
'Input Variable': '输入变量', | ||
'No values': '没有值', | ||
'Output Label': '输出标签', | ||
'Output Name': '输出名称', | ||
'Output Type': '输出类型', | ||
'Output Values': '输出值', | ||
'Paste Input Column Left': '向左粘贴输入列', | ||
'Paste Input Column Right': '向右粘贴输入列', | ||
'Paste Output Column Left': '向左粘贴输出列', | ||
'Paste Output Column Right': '向右粘贴输出列', | ||
'Paste Rule Above': '在上方粘贴规则', | ||
'Paste Rule Below': '在下方粘贴规则', | ||
'Predefined Values': '预定义值', | ||
/*'Remove': '删除',*/ | ||
'Remove Cell Description': '删除单元格描述', | ||
'Remove Input Column': '删除输入列', | ||
'Remove Output Column': '删除输出列', | ||
'Remove Rule': '删除规则', | ||
'Set Value': '设定值', | ||
'Strings must be in double quotes.': '字符串必须使用双引号。', | ||
/*'Type': '类型',*/ | ||
'Edit DRD': "编辑DRD", | ||
"Close OverView": "关闭预览", | ||
"Open OverView": "打开预览", | ||
"Hit Policy": "命中策略", | ||
"When": "当", | ||
"Then": "然后", | ||
"enterExpression": "请输入表达式", | ||
"Move Input": "移动输入", | ||
"Move Output": "移动输出" | ||
}; |
101 changes: 101 additions & 0 deletions
101
client/bpmnjs-i18n-extension/languages/zh-Hans/other.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/** | ||
* Copyright 2021 FlowSquad GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* This file contains translations that were used in other components. | ||
*/ | ||
export default { | ||
'Open minimap': '打开缩略图', | ||
'This maps to the process definition key.': '映射为流程定义Key.', | ||
'Key': 'Key', | ||
'Intermediate Throw Event': '中间抛出事件', | ||
'End Event': '结束事件', | ||
'Message Start Event': '消息开始事件', | ||
'Timer Start Event': '时间开始事件', | ||
'Conditional Start Event': '条件开始事件', | ||
'Signal Start Event': '信号开始事件', | ||
'Expand (not reversible)': '展开 (不可逆)', | ||
'ID': 'ID', | ||
'Start Event': '开始事件', | ||
'Message End Event': '消息结束事件', | ||
'Escalation End Event': '升级结束事件', | ||
'Error End Event': '错误结束事件', | ||
'Compensation End Event': '补偿结束事件', | ||
'Signal End Event': '信号结束时间', | ||
'Terminate End Event': '终止结束事件', | ||
'Transaction': '事务', | ||
'Event Sub Process': '事件子流程', | ||
'Sub Process (collapsed)': '子流程 (折叠)', | ||
'Close minimap': '收起缩略图', | ||
'Message Intermediate Catch Event': '消息中间捕获事件', | ||
'Message Intermediate Throw Event': '消息中间抛出事件', | ||
'Timer Intermediate Catch Event': '时间中间捕获事件', | ||
'Escalation Intermediate Throw Event': '升级中间抛出事件', | ||
'Conditional Intermediate Catch Event': '条件中间捕获事件', | ||
'Link Intermediate Catch Event': '链接中间捕获事件', | ||
'Link Intermediate Throw Event': '链接中间抛出事件', | ||
'Compensation Intermediate Throw Event': '补偿中间抛出事件', | ||
'Signal Intermediate Catch Event': '信号中间捕获事件', | ||
'Signal Intermediate Throw Event': '信号中间抛出事件', | ||
'Parallel Gateway': '并行网关', | ||
'Inclusive Gateway': '包容网关', | ||
'Complex Gateway': '复杂网关', | ||
'Event based Gateway': '事件网关', | ||
'Exclusive Gateway': '排它网关', | ||
'Send Task': '发送任务', | ||
'Receive Task': '接收任务', | ||
'User Task': '人工任务', | ||
'Manual Task': '手工任务', | ||
'Business Rule Task': '业务规则任务', | ||
'Service Task': '服务任务', | ||
'Script Task': '脚本任务', | ||
'Call Activity': '调用活动', | ||
'Sub Process (expanded)': '子流程 (展开)', | ||
'Sub Process': '子流程', | ||
'Task': '任务', | ||
'This maps to the task definition key.': '映射为任务定义Key.', | ||
'Collapsed Pool': '折叠泳道', | ||
'Expanded Pool': '展开泳道', | ||
'flow elements must be children of pools/participants': '流程元素必须是泳池/参与者的子元素', | ||
'The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟进日期可为EL表达式(例如${someDate}或ISO日期(例如2015-06-26T09:54:00)', | ||
'Message Boundary Event': '消息边界事件', | ||
'Timer Boundary Event': '时间边界事件', | ||
'Escalation Boundary Event': '升级边界事件', | ||
'Conditional Boundary Event': '条件边界事件', | ||
'Error Boundary Event': '错误边界事件', | ||
'Cancel Boundary Event': '取消边界事件', | ||
'Signal Boundary Event': '信号边界事件', | ||
'Compensation Boundary Event': '补偿边界事件', | ||
'Message Boundary Event (non-interrupting)': '消息边界事件(非中断)', | ||
'Timer Boundary Event (non-interrupting)': '时间边界事件(非中断)', | ||
'Escalation Boundary Event (non-interrupting)': '升级边界事件 (非中断)', | ||
'Conditional Boundary Event (non-interrupting)': '条件边界事件 (非中断)', | ||
'Signal Boundary Event (non-interrupting)': '信号边界事件 (非中断)', | ||
'Connect using Information/Knowledge/Authority Requirement or Association': '使用信息/知识/权限要求或关联进行连接', | ||
'Empty': '空', | ||
'Literal Expression': '文字表达式', | ||
'This maps to the decision definition key.': '映射为决策定义Key。', | ||
'Decision Table': '决策表', | ||
'Output': '输出', | ||
'Annotation': '注释', | ||
'Output Expression': '输出表达式', | ||
'Data Type': '数据类型', | ||
'Copy': '复制', | ||
'Paste': '粘贴', | ||
'Template': '模版', | ||
'Errors': '错误', | ||
'No errors defined.': '没有定义错误。' | ||
} |
Oops, something went wrong.