Skip to content

Commit

Permalink
fix: Fix event search resource title
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 21, 2020
1 parent af2987e commit eff4ae4
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default class Detail extends React.PureComponent {
className: styles.reasoncol,
},
{
thead: t('Resources'),
thead: t('Resource Name & Type'),
key: 'resources',
hidden: false,
content: ({ ObjectRef = {} }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class MetadataModal extends React.Component {
</div>
</div>
<div className={styles.row}>
<div className={styles.rowTitle}>{t('Resources')}</div>
<div className={styles.rowTitle}>{t('Resource')}</div>
<div className={styles.rowDesc}>
<span>{`[${involvedObject.kind}]`}</span>
<span className={styles.namespace}>{involvedObject.name}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/EventSearch/Event/Detail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class Detail extends React.PureComponent {
className: styles.namecol,
},
{
thead: t('Resources'),
thead: t('Resource Name & Type'),
key: 'kind',
hidden: false,
content: ({ involvedObject = {} }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default {
Reselect: 'Reselect',
Reset: 'Reset',
'Resource List': 'Resource List',
Resources: 'Resources',
Resource: 'Resource',
Restart: 'Restart',
Running: 'Running',
running: 'running',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
'Refresh Rate': 'Refresh Rate',
'Region Data': 'Region Data',
'Release Collection': 'Release Collection',
'Resource Name & Type': 'Resource Name & Type',
'Search Result': 'Search Result',
'Search Rule': 'Search Rule',
'Service Address': 'Service Address',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/tc/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export default {
'rules desc':
'KubeSphere可以根據您設置的規則進行操作審計的收集,點擊查看如何定義規則。',
Category: '類别',
Resources: '資源',
Resource: '資源',
'Earliest start time': '最早發生時間',
'Most recent start time': '最近發生時間',
'Related resources': '關聯資源',
Expand Down
2 changes: 2 additions & 0 deletions src/locales/tc/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export default {
'Fuzzy Query': '模糊匹配',
'Log Collections': '紀錄收集',

'Resource Name & Type': '資源名稱與類型',

'Search Auditing by': '通過{field}查詢審計',
'Workspace Auditing Query Tip': '可以根據企業空間查看相關的操作審計',
'Project Auditing Query Tip': '可以根據項目查看相關的操作審計',
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export default {
'rules desc':
'KubeSphere可以根据您设置的规则进行操作审计的收集,点击查看如何定义规则。',
Category: '类别',
Resources: '资源',
Resource: '资源',
'Earliest start time': '最早发生时间',
'Most recent start time': '最近发生时间',
'Related resources': '关联资源',
Expand Down
2 changes: 2 additions & 0 deletions src/locales/zh/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export default {
Activate: '激活',
'Real-Time Data': '实时数据',

'Resource Name & Type': '资源名称与类型',

TOOLBOX_SHIFT_TIPS: ' 👻 Shift + 鼠标左键 可以在新窗口中打开',
'Hide help information': '不再显示帮助信息',
ES_DESC: 'Elasticsearch 是分布式、RESTful 风格的搜索和分析引擎',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class ResourceStatus extends React.Component {
return {
icon: 'select',
desc: '',
name: ` ${kind} ${t('Resources')}`,
name: ` ${kind} ${t('Resource')}`,
}
}

Expand Down

0 comments on commit eff4ae4

Please sign in to comment.