Skip to content

[Biobank] Normalize biobank validation strings and fix Center/Site mismatch#10720

Merged
driusan merged 3 commits into
aces:29.0-releasefrom
HenriRabalais:2026-06-30_biobank-i18n-validation-strings
Jun 30, 2026
Merged

[Biobank] Normalize biobank validation strings and fix Center/Site mismatch#10720
driusan merged 3 commits into
aces:29.0-releasefrom
HenriRabalais:2026-06-30_biobank-i18n-validation-strings

Conversation

@HenriRabalais

Copy link
Copy Markdown
Collaborator

Summary

Cleans up inconsistent punctuation and whitespace on the biobank
validation messages, and fixes two Center/Site mismatches where the
code string didn't match the fr/zh .po msgids (so those translations
never resolved). Also corrects a malformed .pot entry and adds three
strings that were missing from the template.

Changes

Validation strings (jsx/biobankIndex.js)
The same messages were written several different ways (., ! , !,
trailing spaces), which created duplicate msgids and broke translation
matching. Collapsed each to a single form:

  • This field must be a number.
  • This field is required.
  • This field must be a valid date.
  • This field must be a valid time.

Center → Site

  • jsx/batchEditForm.js: Specimens must be of the same Type and Site
  • jsx/poolSpecimenForm.js: ...PSCID, Visit Label, Type and Site

The fr and zh .po msgids already used "Site", but the code emitted
"Center", so neither translation resolved. The code now matches the
existing translations.

locale/biobank.pot

  • Merged the now-redundant ! /! msgid blocks into the single
    period-form entries.
  • Fixed malformed entry Parent Specimen(s, {ns: 'biobank'})
    Parent Specimen(s).
  • Added Container, Draw Site, and Parent Specimen(s).

@github-actions github-actions Bot added the Language: Javascript PR or issue that update Javascript code label Jun 30, 2026
@driusan

driusan commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

@HenriRabalais Can you remove the now unused from French and Japanese so that the po file matches the pot:

This field is required!
This field must be a number!
This field must be a valid date!
This field must be a valid time!

@github-actions github-actions Bot added the Multilingual Any tasks related to making LORIS multilingual label Jun 30, 2026
@driusan driusan merged commit 2d0f7fd into aces:29.0-release Jun 30, 2026
38 of 40 checks passed
kongtiaowang pushed a commit to kongtiaowang/Loris that referenced this pull request Jul 2, 2026
…smatch (aces#10720)

Cleans up inconsistent punctuation and whitespace on the biobank
validation messages, and fixes two `Center`/`Site` mismatches where the
code string didn't match the fr/zh `.po` msgids (so those translations
never resolved). Also corrects a malformed `.pot` entry and adds three
strings that were missing from the template.
- Fixed malformed entry `Parent Specimen(s, {ns: 'biobank'})` →
  `Parent Specimen(s)`.
- Added `Container`, `Draw Site`, and `Parent Specimen(s)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Multilingual Any tasks related to making LORIS multilingual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants