WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1960c58

Browse files
committed
OpenConceptLab/ocl_issues#2242 | Internationalization on missing chips
1 parent 12bb70e commit 1960c58

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

src/components/map-projects/Discuss.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const Discuss = ({ logs, onAdd }) => {
159159
}}
160160
/>
161161
<Button onClick={onClick} sx={{textTransform: 'none', marginTop: '8px'}} variant='outlined' color='primary'>
162-
Comment
162+
{t('map_project.comment')}
163163
</Button>
164164
</div>
165165
</>

src/components/map-projects/MapProject.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ const MapProject = () => {
22872287
<div className='col-xs-12 padding-0' style={{display: 'flex', alignItems: 'center', justifyContent: 'space-between'}}>
22882288
<Typography component='span' sx={{fontSize: '20px', color: 'surface.dark', fontWeight: 600}}>
22892289
{t('map_project.mapping_decisions')}
2290-
<Chip sx={{padding: '0 6px', marginLeft: '12px'}} variant='outlined' label={startCase(getStateFromIndex(rowIndex))} {...VIEWS[getStateFromIndex(rowIndex)]} />
2290+
<Chip sx={{padding: '0 6px', marginLeft: '12px'}} variant='outlined' {...VIEWS[getStateFromIndex(rowIndex)]} label={t('map_project.view_' + getStateFromIndex(rowIndex).toLowerCase())} />
22912291
</Typography>
22922292
<CloseIconButton color='secondary' onClick={onCloseDecisions} />
22932293
</div>

src/components/map-projects/MappingDecisionResult.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const MappingDecisionResult = ({targetConcept, row, rowIndex, mapTypes, allMapTy
124124
}
125125
{
126126
leftMappings &&
127-
<><br/>Mappings: <i>{leftMappings}</i></>
127+
<><br/>{t('mapping.mappings')}: <i>{leftMappings}</i></>
128128
}
129129
</span>
130130
}
@@ -161,7 +161,7 @@ const MappingDecisionResult = ({targetConcept, row, rowIndex, mapTypes, allMapTy
161161
<ConceptSummaryProperties concept={targetConcept} repoVersion={repoVersion} />
162162
{
163163
rightMappings &&
164-
<><br/>Mappings: <i>{rightMappings}</i></>
164+
<><br/>{t('mapping.mappings')}: <i>{rightMappings}</i></>
165165
}
166166
</span>
167167
</div>

src/i18n/locales/en/translations.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@
495495
"view_all": "All",
496496
"view_unmapped": "Unmapped",
497497
"view_proposed": "Proposed",
498-
"view_approved": "Approved"
498+
"view_readyforreview": "Proposed",
499+
"view_approved": "Approved",
500+
"view_reviewed": "Approved"
499501
},
500502
"app": {
501503
"web_version": "Web Version",

src/i18n/locales/es/translations.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"404": "Lo siento, no se pudo encontrar tu página."
4747
},
4848
"dashboard": {
49+
"my": "Mi tablero",
4950
"name": "Tablero",
5051
"welcome_line": "Bienvenido a OCL.",
5152
"take_a_tour": "Haz un recorrido",
@@ -103,7 +104,8 @@
103104
"company": "Empresa",
104105
"location": "Ubicación",
105106
"website": "Sitio web",
106-
"last_login": "Último inicio de sesión"
107+
"last_login": "Último inicio de sesión",
108+
"my_mapping_projects": "Mis proyectos de mapeo"
107109
},
108110
"search": {
109111
"filters": "Filtros",
@@ -275,7 +277,9 @@
275277
"view_all": "Todos",
276278
"view_unmapped": "No Mapeados",
277279
"view_proposed": "Propuestos",
278-
"view_approved": "Aprobados"
280+
"view_readyforreview": "Propuestos",
281+
"view_approved": "Aprobados",
282+
"view_reviewed": "Aprobados"
279283
},
280284
"app": {
281285
"web_version": "Versión Web",

src/i18n/locales/zh/translations.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@
290290
"about_me": "关于我",
291291
"about_me_description": "创建用于他人访问您的个人资料时阅读的简介(200 个字符)。",
292292
"user_has_not_created_public_repos_suffix": "尚未创建任何公开的存储库",
293-
"recent_activity": "最近的活动"
293+
"recent_activity": "最近的活动",
294+
"my_mapping_projects": "我的映射项目"
294295
},
295296
"search": {
296297
"filters": "筛选项",
@@ -486,7 +487,9 @@
486487
"view_all": "全部",
487488
"view_unmapped": "未映射",
488489
"view_proposed": "已提议",
489-
"view_approved": "已批准"
490+
"view_readyforreview": "已提议",
491+
"view_approved": "已批准",
492+
"view_reviewed": "已批准"
490493
},
491494
"app": {
492495
"web_version": "Web 版本",

0 commit comments

Comments
 (0)