Skip to content

Commit 1153331

Browse files
author
Dave MacFarlane
committed
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
1 parent d529154 commit 1153331

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

modules/candidate_list/jsx/candidateListIndex.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class CandidateListIndex extends Component {
221221
},
222222
},
223223
{
224-
label: this.props.t('Site', {ns: 'loris'}),
224+
label: this.props.t('Site', {ns: 'loris', count: 1}),
225225
show: true,
226226
filter: {
227227
name: 'site',
@@ -326,7 +326,7 @@ class CandidateListIndex extends Component {
326326
},
327327
},
328328
{
329-
'label': this.props.t('Project', {ns: 'loris'}),
329+
'label': this.props.t('Project', {ns: 'loris', count: 1}),
330330
'show': true,
331331
'filter': {
332332
name: 'project',

modules/create_timepoint/jsx/createTimepointIndex.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class CreateTimepoint extends React.Component {
374374
<SelectElement
375375
id={'cohort'}
376376
name={'cohort'}
377-
label={t('Cohort', {ns: 'loris'})}
377+
label={t('Cohort', {ns: 'loris', count: 1})}
378378
value={this.state.form.value.cohort}
379379
options={this.state.form.options.cohort}
380380
onUserInput={this.setForm}
@@ -389,7 +389,7 @@ class CreateTimepoint extends React.Component {
389389
<SelectElement
390390
id={'psc'}
391391
name={'psc'}
392-
label={t('Site', {ns: 'loris'})}
392+
label={t('Site', {ns: 'loris', count: 1})}
393393
value={this.state.form.value.psc}
394394
options={this.state.form.options.psc}
395395
onUserInput={this.setForm}
@@ -404,7 +404,7 @@ class CreateTimepoint extends React.Component {
404404
<SelectElement
405405
id={'project'}
406406
name={'project'}
407-
label={t('Project', {ns: 'loris'})}
407+
label={t('Project', {ns: 'loris', count: 1})}
408408
value={this.state.form.value.project}
409409
options={this.state.form.options.project}
410410
onUserInput={this.setForm}

modules/new_profile/jsx/NewProfileIndex.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class NewProfileIndex extends React.Component {
287287
site =
288288
<SelectElement
289289
name = "site"
290-
label = {this.props.t('Site', {ns: 'loris'})}
290+
label = {this.props.t('Site', {ns: 'loris', count: 1})}
291291
options = {this.state.configData.site}
292292
onUserInput = {this.setFormData}
293293
value = {this.state.formData.site}
@@ -342,19 +342,19 @@ class NewProfileIndex extends React.Component {
342342
),
343343
},
344344
{
345-
label: this.props.t('Site', {ns: 'loris'}),
345+
label: this.props.t('Site', {ns: 'loris', count: 1}),
346346
element: site,
347347
},
348348
{
349349
label: this.props.t('PSCID', {ns: 'loris'}),
350350
element: pscid,
351351
},
352352
{
353-
label: this.props.t('Project', {ns: 'loris'}),
353+
label: this.props.t('Project', {ns: 'loris', count: 1}),
354354
element: (
355355
<SelectElement
356356
name = "project"
357-
label = {this.props.t('Project', {ns: 'loris'}) }
357+
label = {this.props.t('Project', {ns: 'loris', count: 1}) }
358358
options = {this.state.configData.project}
359359
onUserInput = {this.setFormData}
360360
value = {this.state.formData.project}

0 commit comments

Comments
 (0)