Skip to content

Commit

Permalink
The 'thread pool instance' module is translated (opengoofy#1014)
Browse files Browse the repository at this point in the history
* feat: Run the report module to change internationalization

* fix: Internationalize the tenant management page

* fix: Internationalize the tenant management page

* feat: Continue to refine the 'internationalization' configuration file

* feat: The 'Tenant Management' module has been translated

* feat: Complete the text translation of the 'Project management' module

* feat: The 'Thread Pool Management' module completes internationalization

* feat: The 'Thread Pool Management' module completes internationalization

* feat: The 'thread pool instance' module is translated

Co-authored-by: 冯建军 <[email protected]>
  • Loading branch information
PleasePerfunctory and 冯建军 authored Nov 25, 2022
1 parent 4bd1bb3 commit 5f9f26d
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 93 deletions.
45 changes: 43 additions & 2 deletions hippo4j-ui/src/locale/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default {
deleteSuccess: 'Delete Successfully',
deleteMessage: 'This action will delete {name}, Do you want to continue?',
selectMessage: 'Please select a {target}',
NoDeletionPermissionTip: 'Contact the administrator to delete it'
NoDeletionPermissionTip: 'Contact the administrator to delete it',
emptyWarning: "The '{name}' cannot be empty",
queryFailure: 'The query fails. Please refresh the page'
},

// 公共
Expand All @@ -27,13 +29,18 @@ export default {
create: 'Create',
edit: 'Edit',
delete: 'Delete',
detail: 'Detail',
cancel: 'Cancel',
confirm: 'Confirm',
reset: 'Reset',
ok: 'Ok',
num: 'Num',
close: 'Close',
refresh: 'Refresh',
createTime: 'Create Time',
updateTime: 'Update Time',
hint: 'Warning',
info: 'Info'
},

// 运行报表
Expand All @@ -47,6 +54,7 @@ export default {
// 租户管理
tenantManage: {
tenant: 'Tenant',
tenantRequired: 'Tenant(Required)',
tenantName: 'Tenant Name',
owner: 'Owner',
tenantIntro: 'Tenant Intro'
Expand All @@ -55,6 +63,7 @@ export default {
// 项目管理
projectManage: {
item: 'Item',
itemRequired: 'Item(Required)',
itemName: 'Item Name',
owner: 'Owner',
itemIntro: 'Item Intro'
Expand All @@ -63,6 +72,7 @@ export default {
// 线程池管理
threadPool: {
threadPool: 'Thread Pool',
threadPoolRequired: 'ThreadPool(Required)',
coreSize: 'Core Size',
maximumSize: 'Maximum Size',
queueType: 'Queue Type',
Expand All @@ -83,6 +93,37 @@ export default {
customRejectedHandler: 'Custom Rejected Handler',
customRejectedHandlerTip: 'Please enter a custom SPI Deny Policy ID',
threadsNumErrorTip: 'The maximum thread must be greater than or equal to the core thread'
},

// 线程池实例
threadPoolInstance: {
instanceID: 'Instance ID',
active: 'Active',
stack: 'Stack',
basicInformation: 'Basic Information',
runningState: 'Running state',
activeID: 'Active',
instanceHost: 'Instance Host',
threadPoolID: 'ThreadPool ID',
LoadInformation: 'Load Information',
CurrentLoad: 'Current Load',
PeakLoad: 'Peak Load',
RemainingMemory: 'Remaining Memory',
MemoryRatio: 'Memory Ratio',
threadInformation: 'Thread Information',
currentSize: 'Current Size',
activeSize: 'Active Size',
largestSize: 'Largest Size',
queueInformation: 'Queue Information',
queueCount: 'Queue Count',
queueRemainingCapacity: 'Queue Remaining Capacity',
queueType: 'Queue Type',
otherInformation: 'Other Information',
totalTask: 'Total Task',
totalRejection: 'Total Rejection',
lastUpdateTime: 'Last update time',
allowCoreThreadTimeOut: 'Allow Core Thread Time Out',
changeAll: 'Change All',
stackRequestFail: 'The current thread pool has no stack information'
}

}
47 changes: 45 additions & 2 deletions hippo4j-ui/src/locale/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default {
deleteSuccess: '删除成功',
deleteMessage: '此操作将删除 {name}, 是否继续?',
selectMessage: '请选择{target}',
NoDeletionPermissionTip: '请联系管理员删除'
NoDeletionPermissionTip: '请联系管理员删除',
emptyWarning: "{name}不允许为空",
queryFailure: '查询失败,请尝试刷新页面'
},

// 公共
Expand All @@ -27,13 +29,18 @@ export default {
create: '创建',
edit: '编辑',
delete: '删除',
detail: '查看',
cancel: '取消',
confirm: '确认',
reset: '重置',
close: '关闭',
refresh: '刷新',
ok: '确定',
num: '序号',
createTime: '创建时间',
updateTime: '修改时间',
hint: '提示'
hint: '提示',
info: '详情'
},

// 运行报表
Expand All @@ -47,6 +54,7 @@ export default {
// 租户管理
tenantManage: {
tenant: '租户',
tenantRequired: '租户(必填)',
tenantName: '租户名称',
owner: '负责人',
tenantIntro: '租户简介'
Expand All @@ -55,6 +63,7 @@ export default {
// 项目管理
projectManage: {
item: '项目',
itemRequired: '项目(必填)',
itemName: '项目名称',
owner: '负责人',
itemIntro: '项目简介'
Expand All @@ -63,6 +72,7 @@ export default {
// 线程池管理
threadPool: {
threadPool: '线程池',
threadPoolRequired: '线程池(必填)',
coreSize: '核心线程',
maximumSize: '最大线程',
queueType: '队列类型',
Expand All @@ -83,5 +93,38 @@ export default {
customRejectedHandler: '自定义拒绝策略',
customRejectedHandlerTip: '请输入自定义 SPI 拒绝策略标识',
threadsNumErrorTip: '最大线程必须大于等于核心线程'
},


// 线程池实例
threadPoolInstance: {
instanceID: '实例标识',
active: 'Active',
stack: '堆栈',
basicInformation: '基础信息',
runningState: '运行状态',
activeID: '环境标识',
instanceHost: '实例Host',
threadPoolID: '线程池',
LoadInformation: '负载信息',
CurrentLoad: '当前负载',
PeakLoad: '峰值负载',
RemainingMemory: '剩余内存',
MemoryRatio: '内存占比',
threadInformation: '线程信息',
currentSize: '当前线程',
activeSize: '活跃线程',
largestSize: '同存最大线程',
queueInformation: '队列信息',
queueCount: '队列元素',
queueRemainingCapacity: '队列剩余容量',
queueType: '阻塞队列',
otherInformation: '其它信息',
totalTask: '任务总量',
totalRejection: '拒绝次数',
lastUpdateTime: '最后更新时间',
allowCoreThreadTimeOut: '线程超时',
changeAll: '全部修改',
stackRequestFail: '当前线程池暂无堆栈信息'
}
}
Loading

0 comments on commit 5f9f26d

Please sign in to comment.