Skip to content

Commit

Permalink
feat(ui): style prefix technical terms
Browse files Browse the repository at this point in the history
  • Loading branch information
awgaan committed Sep 23, 2020
1 parent 53ae61c commit 2d1fbc4
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 120 deletions.
90 changes: 68 additions & 22 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2020-09-11T15:34:18.083Z\n"
"PO-Revision-Date: 2020-09-11T15:34:18.083Z\n"
"POT-Creation-Date: 2020-09-11T17:40:48.035Z\n"
"PO-Revision-Date: 2020-09-11T17:40:48.035Z\n"

msgid "Something went wrong when loading the current user!"
msgstr ""
Expand Down Expand Up @@ -211,15 +211,22 @@ msgstr ""
msgid "Identifier scheme to use for reference matching"
msgstr ""

msgid "ERRORS: Only include reports for objects that have errors"
msgid "Only include reports for objects that have errors"
msgstr ""

msgid "FULL: Reports for all objects imported"
msgid "Errors"
msgstr ""

msgid ""
"DEBUG: Reports for all objects imported along with their names (if "
"available)"
msgid "Reports for all objects imported"
msgstr ""

msgid "Full"
msgstr ""

msgid "Reports for all objects imported along with their names (if available)"
msgstr ""

msgid "Debug"
msgstr ""

msgid "Import report mode"
Expand All @@ -228,16 +235,28 @@ msgstr ""
msgid "Controls what should be reported after the import is done"
msgstr ""

msgid "MERGE: Import new values and update existing"
msgid "Import new values and update existing"
msgstr ""

msgid "Merge"
msgstr ""

msgid "APPEND: Import new values only"
msgid "Import new values only"
msgstr ""

msgid "UPDATE: Only update existing values, ignore new values"
msgid "Append"
msgstr ""

msgid "DELETE: Remove values included in uploaded file"
msgid "Only update existing values, ignore new values"
msgstr ""

msgid "Update"
msgstr ""

msgid "Remove values included in uploaded file"
msgstr ""

msgid "Delete"
msgstr ""

msgid "Data will be deleted"
Expand Down Expand Up @@ -266,25 +285,43 @@ msgstr ""
msgid "Include deleted data in export"
msgstr ""

msgid "SELECTED: Only include selected organisation unit"
msgid "Only include selected organisation unit"
msgstr ""

msgid "Selected"
msgstr ""

msgid "CHILDREN: Include the first level of units inside selections"
msgid "Include the first level of units inside selections"
msgstr ""

msgid "DESCENDANTS: Include all units inside selections"
msgid "Directly below"
msgstr ""

msgid "Include all units inside selections"
msgstr ""

msgid "All below"
msgstr ""

msgid "How should organisation units inside the selections be included?"
msgstr ""

msgid "NON NULL: Includes properties which are not null"
msgid "Includes properties which are not null"
msgstr ""

msgid "Non null"
msgstr ""

msgid "Include all properties"
msgstr ""

msgid "ALWAYS: Include all properties"
msgid "Always"
msgstr ""

msgid "NON EMPTY: Include non-empty properties"
msgid "Include non-empty properties"
msgstr ""

msgid "Non empty"
msgstr ""

msgid "Inclusion strategy"
Expand Down Expand Up @@ -323,10 +360,13 @@ msgstr ""
msgid "Last updated start date"
msgstr ""

msgid "MERGE: Only overwrite the old property if the new property value is not-null"
msgid "Only overwrite the old property if the new property value is not-null"
msgstr ""

msgid "Overwrite regardless of whether the new property value is null"
msgstr ""

msgid "REPLACE: Overwrite regardless of whether the new property value is null"
msgid "Replace"
msgstr ""

msgid "Merge mode"
Expand Down Expand Up @@ -368,13 +408,19 @@ msgstr ""
msgid "Organisation unit ID scheme"
msgstr ""

msgid "ACCESSIBLE: Data view organisation units associated with the current user"
msgid "Data view organisation units associated with the current user"
msgstr ""

msgid "Accessible"
msgstr ""

msgid "Data capture organisation units associated with the current user"
msgstr ""

msgid "CAPTURE: Data capture organisation units associated with the current user"
msgid "Capture"
msgstr ""

msgid "ALL: All organisation units in the system"
msgid "All organisation units in the system"
msgstr ""

msgid "Organisation unit(s) to export data from"
Expand Down
19 changes: 6 additions & 13 deletions src/components/Inputs/ImportReportMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,20 @@ import { RadioGroupField } from '../index'
const importReportModeOptions = [
{
value: 'ERRORS',
label: i18n.t(
'ERRORS: Only include reports for objects that have errors',
{
nsSeparator: '>',
}
),
label: i18n.t('Only include reports for objects that have errors'),
prefix: i18n.t('Errors'),
},
{
value: 'FULL',
label: i18n.t('FULL: Reports for all objects imported', {
nsSeparator: '>',
}),
label: i18n.t('Reports for all objects imported'),
prefix: i18n.t('Full'),
},
{
value: 'DEBUG',
label: i18n.t(
'DEBUG: Reports for all objects imported along with their names (if available)',
{
nsSeparator: '>',
}
'Reports for all objects imported along with their names (if available)'
),
prefix: i18n.t('Debug'),
},
]
const defaultImportReportModeOption = importReportModeOptions[0].value
Expand Down
24 changes: 9 additions & 15 deletions src/components/Inputs/ImportStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,24 @@ import { RadioGroupField } from '../index'
const importStrategyOptions = [
{
value: 'CREATE_AND_UPDATE',
label: i18n.t('MERGE: Import new values and update existing', {
nsSeparator: '>',
}),
label: i18n.t('Import new values and update existing'),
prefix: i18n.t('Merge'),
},
{
value: 'CREATE',
label: i18n.t('APPEND: Import new values only', {
nsSeparator: '>',
}),
label: i18n.t('Import new values only'),
prefix: i18n.t('Append'),
},
{
value: 'UPDATES',
label: i18n.t(
'UPDATE: Only update existing values, ignore new values',
{
nsSeparator: '>',
}
),
label: i18n.t('Only update existing values, ignore new values'),
prefix: i18n.t('Update'),
},
{
value: 'DELETE',
label: i18n.t('DELETE: Remove values included in uploaded file', {
nsSeparator: '>',
}),
label: i18n.t('Remove values included in uploaded file'),
prefix: i18n.t('Delete'),
type: 'critical',
},
]
const defaultImportStrategyOption = importStrategyOptions[0].value
Expand Down
18 changes: 6 additions & 12 deletions src/components/Inputs/Inclusion.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,18 @@ import { RadioGroupField } from '../index'
const inclusionOptions = [
{
value: 'SELECTED',
label: i18n.t('SELECTED: Only include selected organisation unit', {
nsSeparator: '>',
}),
label: i18n.t('Only include selected organisation unit'),
prefix: i18n.t('Selected'),
},
{
value: 'CHILDREN',
label: i18n.t(
'CHILDREN: Include the first level of units inside selections',
{
nsSeparator: '>',
}
),
label: i18n.t('Include the first level of units inside selections'),
prefix: i18n.t('Directly below'),
},
{
value: 'DESCENDANTS',
label: i18n.t('DESCENDANTS: Include all units inside selections', {
nsSeparator: '>',
}),
label: i18n.t('Include all units inside selections'),
prefix: i18n.t('All below'),
},
]
const defaultInclusionOption = inclusionOptions[0].value
Expand Down
15 changes: 6 additions & 9 deletions src/components/Inputs/InclusionStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@ import { RadioGroupField } from '../index'
const inclusionStrategyOptions = [
{
value: 'NON_NULL',
label: i18n.t('NON NULL: Includes properties which are not null', {
nsSeparator: '>',
}),
label: i18n.t('Includes properties which are not null'),
prefix: i18n.t('Non null'),
},
{
value: 'ALWAYS',
label: i18n.t('ALWAYS: Include all properties', {
nsSeparator: '>',
}),
label: i18n.t('Include all properties'),
prefix: i18n.t('Always'),
},
{
value: 'NON_EMPTY',
label: i18n.t('NON EMPTY: Include non-empty properties', {
nsSeparator: '>',
}),
label: i18n.t('Include non-empty properties'),
prefix: i18n.t('Non empty'),
},
]
const defaultInclusionStrategyOption = inclusionStrategyOptions[0].value
Expand Down
12 changes: 4 additions & 8 deletions src/components/Inputs/MergeMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@ const mergeModeOptions = [
{
value: 'MERGE',
label: i18n.t(
'MERGE: Only overwrite the old property if the new property value is not-null',
{
nsSeparator: '>',
}
'Only overwrite the old property if the new property value is not-null'
),
prefix: i18n.t('Merge'),
},
{
value: 'REPLACE',
label: i18n.t(
'REPLACE: Overwrite regardless of whether the new property value is null',
{
nsSeparator: '>',
}
'Overwrite regardless of whether the new property value is null'
),
prefix: i18n.t('Replace'),
},
]
const defaultMergeModeOption = mergeModeOptions[0].value
Expand Down
35 changes: 12 additions & 23 deletions src/components/Inputs/OrgUnitMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,37 @@ import { RadioGroupField } from '../index'
const orgUnitSelectionModeOptions = [
{
value: 'SELECTED',
label: i18n.t('SELECTED: Only include selected organisation unit', {
nsSeparator: '>',
}),
label: i18n.t('Only include selected organisation unit'),
prefix: i18n.t('Selected'),
},
{
value: 'CHILDREN',
label: i18n.t(
'CHILDREN: Include the first level of units inside selections',
{
nsSeparator: '>',
}
),
label: i18n.t('Include the first level of units inside selections'),
prefix: i18n.t('Directly below'),
},
{
value: 'DESCENDANTS',
label: i18n.t('DESCENDANTS: Include all units inside selections', {
nsSeparator: '>',
}),
label: i18n.t('Include all units inside selections'),
prefix: i18n.t('All below'),
},
{
value: 'ACCESSIBLE',
label: i18n.t(
'ACCESSIBLE: Data view organisation units associated with the current user',
{
nsSeparator: '>',
}
'Data view organisation units associated with the current user'
),
prefix: i18n.t('Accessible'),
},
{
value: 'CAPTURE',
label: i18n.t(
'CAPTURE: Data capture organisation units associated with the current user',
{
nsSeparator: '>',
}
'Data capture organisation units associated with the current user'
),
prefix: i18n.t('Capture'),
},
{
value: 'ALL',
label: i18n.t('ALL: All organisation units in the system', {
nsSeparator: '>',
}),
label: i18n.t('All organisation units in the system'),
prefix: i18n.t('All'),
},
]
const defaultOrgUnitSelectionModeOption = orgUnitSelectionModeOptions[0].value
Expand Down
Loading

0 comments on commit 2d1fbc4

Please sign in to comment.