From 1a80248344007f70ece4a83ac48c1bb9654b6ee6 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Fri, 29 Oct 2021 16:25:29 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1134=20fix:=20=E4=BF=AE=E5=A4=8D=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E8=A7=84=E5=88=99=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E8=A7=84=E5=88=99=E9=A1=B5=E9=9D=A2=E6=9C=AA=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/language/cn.js | 135 +++++++++--------- .../src/components/common/language/en.js | 3 + .../common/rightBox/alertRuleBox.vue | 6 +- 3 files changed, 75 insertions(+), 69 deletions(-) diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index 3246ce9f4..ed1048869 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -137,11 +137,11 @@ const cn = { stack: '查看堆叠图', stackBack: '返回原始图' }, - SyncSave: '保存同时更新 Assets', + SyncSave: '保存同时更新资产', copySuccess: '复制成功', - parent: '父级 asset', - children: '子级 asset', - assetSubTab: '子级 asset', + parent: '父级资产', + children: '子级资产', + assetSubTab: '子级资产', moreOption: '更多选项', copy: '复制', duplicate: '复制', @@ -205,9 +205,9 @@ const cn = { username: '用户名', pin: '密码', alertPath: '网站URL', - alertPrefix: 'Alert prefix', - haMode: 'HA mode', - haVip: 'Virtual IP', + alertPrefix: '警报前缀', + haMode: 'HA 模式', + haVip: '虚拟的 IP', next: '下一步', back: '返回', finish: '完成', @@ -234,14 +234,14 @@ const cn = { filePath: '文件路径', closeTip: '是否断开所有连接,关闭窗口?', remember: '记住我的决定', - protocol: 'Protocol', - authType: 'Auth type', + protocol: '协议', + authType: '认证类型', host: 'Host', port: 'Port', - authUsername: 'Username', - authPin: 'Password', - authUserTip: 'Username prompt', - authPinTip: 'Password prompt', + authUsername: '用户名', + authPin: '密码', + authUserTip: '用户名提示', + authPinTip: '密码提示', authPriKey: 'Key' }, pageSize: '条/页', @@ -250,9 +250,9 @@ const cn = { pin: '密码', login: '登录', verify: '验证', - verifyDialogTitle: 'Two Factor Authentication Set Up', - verifyTitle: 'Two-Factor Authentication', - verifyContent: 'Enter the code from the two -factor app on your mobile device. If you\' ve lost your device, you may enter one of your recovery codes.', + verifyDialogTitle: '双因子认证设置', + verifyTitle: '双因子认证', + verifyContent: '在您的移动设备上输入来自双因子应用程序的代码。 如果您丢失了设备,您可以输入您的恢复代码之一。', verifyPlaceholder: '验证码', bindFail: '绑定失败' }, @@ -284,9 +284,9 @@ const cn = { chartName: '图表名称', type: '类型', url: 'URL', - statistics: 'Statistics', + statistics: '统计数据', sync: '同步到设备', - last: 'Last', + last: '最后的', threshold: '阈值', thresholds: '阈值', group: '组', @@ -312,7 +312,7 @@ const cn = { staticTip: '双大括号中的内容将会在asset页面被替换' }, singleStat: { - label: 'Single value' + label: '单值' }, pie: { label: '饼图' @@ -372,26 +372,26 @@ const cn = { state: '状态' }, valMapping: { - name: 'Value mapping', + name: '值映射', from: 'From', to: 'To', - text: 'Text', + text: '文本', value: 'Value', - range: 'Range' + range: '范围' }, legendValue: '图例选项', content: '内容', - tooltip: 'Tooltip', + tooltip: '工具提示', displayChart: '图表', - aggregation: 'Aggregation', + aggregation: '聚合', varType: '变量类型', - pid: 'Chart 模板', - selectAsset: '请选择Asset', + pid: '图表模板', + selectAsset: '请选择资产', selectEndpoint: '请选择Endpoint', - time: 'Time', - descending: 'Descending', - wrapLines: 'Wrap lines', - limit: 'Limit' + time: '时间', + descending: '降序', + wrapLines: '换行', + limit: '限制' }, chartTableColumn: { metric: '指标', @@ -508,8 +508,8 @@ const cn = { dc: '数据中心' }, ok: 'OK', - alarm: 'Alarm', - total: 'Total' + alarm: '警报', + total: '全部的' }, project: { project: '系统', @@ -657,7 +657,7 @@ const cn = { sshAccount: 'SSH账号', protocol: '协议', sshProtocol: 'SSH', - telnetProtocol: 'Telnet', + telnetProtocol: '远程登录', userTip: '用户名提示', pinTip: '密码提示', reloginpinTip: 'RELOGIN提示', @@ -807,12 +807,12 @@ const cn = { checkTime: '检查时间', dataCenter: '数据中心', agent: { - agent: 'Agent', - title: '下载Agent', + agent: '代理', + title: '下载代理', download: '下载', osType: 'OS 类型', autoScript: '自动安装脚本', - type: 'Agent类型' + type: '代理类型' } }, agent: { @@ -964,16 +964,16 @@ const cn = { params: '请求参数', state: '请求结果', operations: { - add: 'add', - query: 'query', - update: 'update', + add: '添加', + query: '询问', + update: '更新', import: 'import', export: 'export', - delete: 'delete', - reset: 'reset', - unknown: 'unknown', - login: 'login', - logout: 'logout' + delete: '删除', + reset: '重启', + unknown: '未知', + login: '登陆', + logout: '登出' }, response: '响应' }, @@ -1049,7 +1049,7 @@ const cn = { monitor: '监控', metricsTitle: '指标配置', logsTitle: '日志配置', - alertApi: 'Alert api', + alertApi: '告警 api', prometheusFederation: 'Federation', asset_ping_from: 'Ping from', metrics_storage_retention: '保存天数', @@ -1092,14 +1092,14 @@ const cn = { terminal: '终端', terminalNum: '最大终端数量', timeout: '超时时间', - userTip: 'Telnet 用户名提示', - pinTip: 'Telnet 密码提示', + userTip: '远程登陆用户名提示', + pinTip: '远程登陆密码提示', localRetention: '本地存储' }, ldap: { ldap: 'LDAP', address: 'LDAP地址', - dn: 'Bind DN', + dn: '绑定 DN', pin: '密码', ou: '用户OU', ouTip: '使用符号 "|" 分隔OU', @@ -1113,7 +1113,7 @@ const cn = { link: { link: '链接', name: '名称', - url: 'Url', + url: 'URl', operation: '操作', add: '添加', update: '更新', @@ -1243,8 +1243,8 @@ const cn = { }, chartTemp: { chartTemp: '图表模板', - type: 'Type', - varType: 'Variable type' + type: '类型', + varType: '变量类型' } }, alert: { @@ -1311,17 +1311,20 @@ const cn = { alertNumTrend: '告警数量趋势', affectEntity: '影响' }, - timeout: 'Timeout(s)', - inr: 'Evaluation interval', - inrPlaceholder: 'Default global scrape interval', - inrError: 'Evaluation Interval cannot be less than 15', - autoExpired: 'Automatic expired', + timeout: '超时时间(s)', + inr: '评估区间', + inrPlaceholder: '默认全局抓取间隔', + inrError: '评估间隔不能小于 15', + autoExpired: '自动过期', state: '状态', - schedEnable: 'Schedule', - schedDays: 'Effective time', - notifyActive: 'Active Notification', - notifyExpired: 'Expired notification', - trbShot: 'Trouble shooting' + schedEnable: '日程', + schedDays: '有效时间', + more: '更多的', + effectiveConfig: '有效配置', + notificationConfig: '通知配置', + notifyActive: '主动通知', + notifyExpired: '过期通知', + trbShot: '故障排除' }, silence: { name: '名称', @@ -1395,7 +1398,7 @@ const cn = { contextName: '内容名称', alerts: '告警', privpin: '隐私密码', - asset: 'Asset', + asset: '资产', editEndpoint: '修改 Endpoint', createEndpoint: '新增 Endpoint', batchEndpoint: '批量 Endpoint', @@ -1438,12 +1441,12 @@ const cn = { scrape_timeout_placeholder: '默认全局超时时间', protocol: '协议', type: '类型', - bearer_token: 'bearer token', + bearer_token: '第三方 token', username: '用户名', pin: '密码', - authTypeNull: 'none', - authTypeWord: 'basic auth', - authTypeToken: 'bearer token', + authTypeNull: '无', + authTypeWord: '基础认证', + authTypeToken: '第三方 token', name: '名称', configs: '配置', state: '状态', diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index e1344462e..ac8a9d4c2 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -1323,6 +1323,9 @@ const en = { state: 'State', schedEnable: 'Schedule', schedDays: 'Effective time', + more: 'More', + effectiveConfig: 'Effective configuration', + notificationConfig: 'Notification configuration', notifyActive: 'Active Notification', notifyExpired: 'Expired notification', trbShot: 'Trouble shooting' diff --git a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue index ebe925596..d7de093ea 100644 --- a/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue +++ b/nezha-fronted/src/components/common/rightBox/alertRuleBox.vue @@ -155,7 +155,7 @@ -
Effective configuration
+
{{ $t('alert.config.effectiveConfig') }}
-
Notification configuration
+
{{ $t('alert.config.notificationConfig') }}
-
More
+
{{ $t('alert.config.more') }}