forked from Open-CT/openbrain
Improve i18n.
This commit is contained in:
parent
069b86d324
commit
0c62dfc8ed
|
@ -86,11 +86,11 @@ class WordsetEditPage extends React.Component {
|
|||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={(Setting.isMobile()) ? 22 : 2}>
|
||||
{i18next.t("wordset:Vectors")}:
|
||||
{i18next.t("wordset:Words")}:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<VectorTable
|
||||
title={i18next.t("wordset:Vectors")}
|
||||
title={i18next.t("wordset:Words")}
|
||||
table={this.state.wordset.vectors}
|
||||
onUpdateTable={(value) => { this.updateWordsetField('vectors', value)}}
|
||||
/>
|
||||
|
|
|
@ -99,7 +99,7 @@ class WordsetListPage extends React.Component {
|
|||
sorter: (a, b) => a.distance - b.distance,
|
||||
},
|
||||
{
|
||||
title: i18next.t("wordset:Vectors"),
|
||||
title: i18next.t("wordset:Words"),
|
||||
dataIndex: 'vectors',
|
||||
key: 'vectors',
|
||||
// width: '120px',
|
||||
|
@ -109,21 +109,21 @@ class WordsetListPage extends React.Component {
|
|||
}
|
||||
},
|
||||
{
|
||||
title: i18next.t("wordset:All vectors"),
|
||||
dataIndex: 'allVectors',
|
||||
key: 'allVectors',
|
||||
title: i18next.t("wordset:All words"),
|
||||
dataIndex: 'allWords',
|
||||
key: 'allWords',
|
||||
width: '140px',
|
||||
sorter: (a, b) => a.allVectors - b.allVectors,
|
||||
sorter: (a, b) => a.allWords - b.allWords,
|
||||
render: (text, record, index) => {
|
||||
return record.vectors.length;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: i18next.t("wordset:Valid vectors"),
|
||||
dataIndex: 'validVectors',
|
||||
key: 'validVectors',
|
||||
title: i18next.t("wordset:Valid words"),
|
||||
dataIndex: 'validWords',
|
||||
key: 'validWords',
|
||||
width: '140px',
|
||||
sorter: (a, b) => a.validVectors - b.validVectors,
|
||||
sorter: (a, b) => a.validWords - b.validWords,
|
||||
render: (text, record, index) => {
|
||||
return record.vectors.filter(vector => vector.data.length !== 0).length;
|
||||
}
|
||||
|
|
|
@ -31,10 +31,10 @@
|
|||
"File size": "File size"
|
||||
},
|
||||
"wordset": {
|
||||
"All vectors": "All vectors",
|
||||
"All words": "All words",
|
||||
"Distance": "Distance",
|
||||
"Edit Wordset": "Edit Wordset",
|
||||
"Valid vectors": "Valid vectors",
|
||||
"Vectors": "Vectors"
|
||||
"Valid words": "Valid words",
|
||||
"Words": "Words"
|
||||
}
|
||||
}
|
|
@ -31,10 +31,10 @@
|
|||
"File size": "文件大小"
|
||||
},
|
||||
"wordset": {
|
||||
"All vectors": "所有向量",
|
||||
"All words": "所有词汇",
|
||||
"Distance": "距离",
|
||||
"Edit Wordset": "编辑词汇集",
|
||||
"Valid vectors": "有效向量",
|
||||
"Vectors": "向量"
|
||||
"Valid words": "有效词汇",
|
||||
"Words": "词汇表"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue