diff --git a/i18n/en.pot b/i18n/en.pot index 276f48175a..89d6a317ac 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -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: 2026-09-16T18:04:47.736Z\n" -"PO-Revision-Date: 2026-09-16T18:04:47.736Z\n" +"POT-Creation-Date: 2026-09-17T10:17:48.262Z\n" +"PO-Revision-Date: 2026-09-17T10:17:48.262Z\n" msgid "The application could not be loaded." msgstr "The application could not be loaded." @@ -2257,12 +2257,21 @@ msgstr "program stages" msgid "note" msgstr "note" +msgid "notes" +msgstr "notes" + msgid "relationship" msgstr "relationship" +msgid "relationships" +msgstr "relationships" + msgid "attribute" msgstr "attribute" +msgid "attributes" +msgstr "attributes" + msgid "organisation unit" msgstr "organisation unit" diff --git a/src/core_modules/capture-core/metaData/helpers/constants/customLabels.const.ts b/src/core_modules/capture-core/metaData/helpers/constants/customLabels.const.ts index 67ead94aa8..9da569f74b 100644 --- a/src/core_modules/capture-core/metaData/helpers/constants/customLabels.const.ts +++ b/src/core_modules/capture-core/metaData/helpers/constants/customLabels.const.ts @@ -28,15 +28,21 @@ export const LABELS = { }, note: { apiFieldSingular: 'displayNoteLabel', + apiFieldPlural: 'displayNotesLabel', defaultSingular: () => i18n.t('note'), + defaultPlural: () => i18n.t('notes'), }, relationship: { apiFieldSingular: 'displayRelationshipLabel', + apiFieldPlural: 'displayRelationshipsLabel', defaultSingular: () => i18n.t('relationship'), + defaultPlural: () => i18n.t('relationships'), }, attribute: { apiFieldSingular: 'displayTrackedEntityAttributeLabel', + apiFieldPlural: 'displayTrackedEntityAttributesLabel', defaultSingular: () => i18n.t('attribute'), + defaultPlural: () => i18n.t('attributes'), }, orgUnit: { apiFieldSingular: 'displayOrgUnitLabel', @@ -56,8 +62,11 @@ export const LabelKeys = { programStageSingular: 'programStage', programStagePlural: { key: 'programStage', plural: true }, noteSingular: 'note', + notePlural: { key: 'note', plural: true }, relationshipSingular: 'relationship', + relationshipPlural: { key: 'relationship', plural: true }, attributeSingular: 'attribute', + attributePlural: { key: 'attribute', plural: true }, orgUnitSingular: 'orgUnit', followUpSingular: 'followUp', } as const; diff --git a/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/types/apiPrograms.types.ts b/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/types/apiPrograms.types.ts index 676c11b68a..4849b10ab2 100644 --- a/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/types/apiPrograms.types.ts +++ b/src/core_modules/capture-core/metaDataStoreLoaders/programs/quickStoreOperations/types/apiPrograms.types.ts @@ -147,8 +147,11 @@ type apiProgram = { displayFollowUpLabel?: string | null, displayOrgUnitLabel?: string | null, displayRelationshipLabel?: string | null, + displayRelationshipsLabel?: string | null, displayNoteLabel?: string | null, + displayNotesLabel?: string | null, displayTrackedEntityAttributeLabel?: string | null, + displayTrackedEntityAttributesLabel?: string | null, displayProgramStageLabel?: string | null, displayProgramStagesLabel?: string | null, displayEventLabel?: string | null, diff --git a/src/core_modules/capture-core/storageControllers/types/cache.types.ts b/src/core_modules/capture-core/storageControllers/types/cache.types.ts index 771a55c14b..d903c0ab50 100644 --- a/src/core_modules/capture-core/storageControllers/types/cache.types.ts +++ b/src/core_modules/capture-core/storageControllers/types/cache.types.ts @@ -215,8 +215,11 @@ export type CachedProgram = { displayFollowUpLabel?: string | null, displayOrgUnitLabel?: string | null, displayRelationshipLabel?: string | null, + displayRelationshipsLabel?: string | null, displayNoteLabel?: string | null, + displayNotesLabel?: string | null, displayTrackedEntityAttributeLabel?: string | null, + displayTrackedEntityAttributesLabel?: string | null, displayProgramStageLabel?: string | null, displayProgramStagesLabel?: string | null, displayEventLabel?: string | null, diff --git a/src/i18n/setupFormatters.ts b/src/i18n/setupFormatters.ts index 25e66657b8..baee24cb54 100644 --- a/src/i18n/setupFormatters.ts +++ b/src/i18n/setupFormatters.ts @@ -17,9 +17,9 @@ const CUSTOM_TERM_VARS = new Set([ 'programStageLabel', 'programStagesLabel', 'linkableStageLabel', 'followUpLabel', 'orgUnitLabel', - 'relationshipLabel', - 'noteLabel', - 'attributeLabel', + 'relationshipLabel', 'relationshipsLabel', + 'noteLabel', 'notesLabel', + 'attributeLabel', 'attributesLabel', ]); const interpolator = (i18n as any).services?.interpolator;