Skip to content

Commit

Permalink
refactor: change TEI references to Tracked entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Mar 5, 2024
1 parent 01d94e7 commit 4fa5ded
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const metadataImportPage = {
icon: <MetadataImportIcon />,
}
const teiImportPage = {
name: i18n.t('TEI import'),
name: i18n.t('Tracked entity import'),
code: 'tei-import',
path: '/import/tei',
icon: <TEIIcon />,
Expand Down Expand Up @@ -88,7 +88,7 @@ const metadataExportPage = {
}

const teiExportPage = {
name: i18n.t('TEI export'),
name: i18n.t('Tracked entity export'),
code: 'tei-export',
path: '/export/tei',
icon: <TEIIcon />,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const exportPages = capitalizePages([
{
name: TEI_EXPORT_PAGE_NAME,
description: TEI_EXPORT_DESCRIPTION,
linkText: i18n.t('Export tracked entity instances'),
linkText: i18n.t('Export tracked entities'),
to: '/export/tei',
},
])
Expand Down Expand Up @@ -120,7 +120,7 @@ const importPages = capitalizePages([
{
name: TEI_IMPORT_PAGE_NAME,
description: TEI_IMPORT_DESCRIPTION,
linkText: i18n.t('Import tracked entity instances'),
linkText: i18n.t('Import tracked entities'),
to: '/import/tei',
},
])
Expand Down
6 changes: 3 additions & 3 deletions src/pages/TEIExport/TEIExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ import { onExport, validate } from './form-helper.js'
const { Form } = ReactFinalForm

// PAGE INFO
export const PAGE_NAME = i18n.t('Tracked entity instances export')
export const PAGE_NAME = i18n.t('Tracked entities export')
export const PAGE_DESCRIPTION = i18n.t(
'Export tracked entity instances in JSON, CSV, or DXF2 format.'
'Export tracked entities in JSON, CSV, or DXF2 format.'
)
const PAGE_ICON = <TEIIcon />

Expand Down Expand Up @@ -155,7 +155,7 @@ const TEIExport = () => {
<ValidationSummary />
<ExportButton
label={i18n.t(
'Export tracked entity instances'
'Export tracked entities'
)}
disabled={!exportEnabled}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/TEIImport/TEIImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ import { onImport } from './form-helper.js'
const { Form } = ReactFinalForm

// PAGE INFO
export const PAGE_NAME = i18n.t('Tracked entity instances import')
export const PAGE_NAME = i18n.t('Tracked entities import')
export const PAGE_DESCRIPTION = i18n.t(
'Import tracked entity instances using JSON or DXF2 format.'
'Import tracked entities using JSON or DXF2 format.'
)
const PAGE_ICON = <TEIIcon />

Expand Down
2 changes: 1 addition & 1 deletion src/utils/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const categoryTypes = [
key: 'tei',
importType: 'TEI_IMPORT',
icon: <TEIIcon />,
label: i18n.t('TEI'),
label: i18n.t('Tracked entity'),
},
]

Expand Down

0 comments on commit 4fa5ded

Please sign in to comment.