From 1153331bb704338a09572e05945fa9bede5b04ca Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Mon, 10 Nov 2025 13:41:49 -0500 Subject: [PATCH 1/2] Fix plural forms of Site, Project, and Cohort If "count" is not specified the string does not get translated. There have been some regressions as strings that were previously just a "string" had plural forms added. Fixes #10111 --- modules/candidate_list/jsx/candidateListIndex.js | 4 ++-- modules/create_timepoint/jsx/createTimepointIndex.js | 6 +++--- modules/new_profile/jsx/NewProfileIndex.js | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/candidate_list/jsx/candidateListIndex.js b/modules/candidate_list/jsx/candidateListIndex.js index 129edb06a97..86dd1d99b82 100644 --- a/modules/candidate_list/jsx/candidateListIndex.js +++ b/modules/candidate_list/jsx/candidateListIndex.js @@ -221,7 +221,7 @@ class CandidateListIndex extends Component { }, }, { - label: this.props.t('Site', {ns: 'loris'}), + label: this.props.t('Site', {ns: 'loris', count: 1}), show: true, filter: { name: 'site', @@ -326,7 +326,7 @@ class CandidateListIndex extends Component { }, }, { - 'label': this.props.t('Project', {ns: 'loris'}), + 'label': this.props.t('Project', {ns: 'loris', count: 1}), 'show': true, 'filter': { name: 'project', diff --git a/modules/create_timepoint/jsx/createTimepointIndex.js b/modules/create_timepoint/jsx/createTimepointIndex.js index 4945ba79bdd..fbc4002fa88 100644 --- a/modules/create_timepoint/jsx/createTimepointIndex.js +++ b/modules/create_timepoint/jsx/createTimepointIndex.js @@ -374,7 +374,7 @@ class CreateTimepoint extends React.Component { Date: Mon, 10 Nov 2025 14:02:03 -0500 Subject: [PATCH 2/2] Fix CandidateInfo widget as well --- modules/candidate_profile/jsx/CandidateInfo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/candidate_profile/jsx/CandidateInfo.js b/modules/candidate_profile/jsx/CandidateInfo.js index 0cddef876d4..2850d0ca45f 100644 --- a/modules/candidate_profile/jsx/CandidateInfo.js +++ b/modules/candidate_profile/jsx/CandidateInfo.js @@ -145,7 +145,7 @@ class CandidateInfo extends Component { value: this.props.Candidate.Meta.Sex, }, { - label: this.props.t('Project', {ns: 'loris'}), + label: this.props.t('Project', {ns: 'loris', count: 1}), value: this.props.Candidate.Meta.Project, }, { @@ -153,7 +153,7 @@ class CandidateInfo extends Component { value: cohorts.join(', '), }, { - label: this.props.t('Site', {ns: 'loris'}), + label: this.props.t('Site', {ns: 'loris', count: 1}), value: this.props.Candidate.Meta.Site, }, {