Skip to content

[biobank] [Multilingual] Fixed errors for loading most of the pages of the module + add missing translations in French and Spanish#10801

Open
HachemJ wants to merge 10 commits into
aces:29.0-releasefrom
HachemJ:FixTranslationEsAndFrInBiobank
Open

[biobank] [Multilingual] Fixed errors for loading most of the pages of the module + add missing translations in French and Spanish#10801
HachemJ wants to merge 10 commits into
aces:29.0-releasefrom
HachemJ:FixTranslationEsAndFrInBiobank

Conversation

@HachemJ

@HachemJ HachemJ commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Brief summary of changes

This PR :

  • adds missing translations in french

  • adds missing translations in spanish

  • fixes the format multiple untranslated strings ( e.g., t('biobank:Comments') -> t('Comments', {ns: 'biobank}) )

  • fixes the 'Add Specimen' functionality indirectly (It should be verified by someone familiar with the module, as I couldn’t find detailed instructions in TestPlan.md)

  • fixes multiple t() calls that were missing a namespace, preventing them from being translated.

  • fixes access to every button in the four tabs (Specimens, Containers, Pools, Shipments) that were broken because of multilingual related code.
    Note: not every button function properly, for example it is currently not possible to save the form when creating a shipment: a 500 error is returned in the console.

^^
I think that it is outside of the scope of this PR that mostly fixes multilingual related code/files.

Another note: I'm having difficulties understanding why 'Containers' isn't pluralized when using t(..., {ns: ..., count: n}) with n > 1.
It is currently a bug of this PR.

image

At least three other instances (Specimens, Pools could benefit from the plural design using msgid_plural in the translation files but I left it as is because I couldn't make work the existing 'Containers' one properly.

Note: I used AI for Spanish translations.

Link(s) to related issue(s)

@github-actions github-actions Bot added Language: Javascript PR or issue that update Javascript code Multilingual Any tasks related to making LORIS multilingual labels Jul 6, 2026
@HachemJ HachemJ force-pushed the FixTranslationEsAndFrInBiobank branch from 49f9d01 to 6243341 Compare July 6, 2026 23:59
@HachemJ HachemJ added the 29.0.0 - Bugs Issues found during the release testing for 29.0.0 label Jul 7, 2026
@HachemJ HachemJ added the Module: biobank PR or issue related to biobank module label Jul 8, 2026
@HachemJ HachemJ changed the title [biobank] Add missing translations in french and spanish and adapted/fixed code [biobank] Fixed errors for loading most of the pages of the module + add missing translations in French and Spanish Jul 13, 2026
@HachemJ HachemJ changed the title [biobank] Fixed errors for loading most of the pages of the module + add missing translations in French and Spanish [biobank] [Multilingual] Fixed errors for loading most of the pages of the module + add missing translations in French and Spanish Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

29.0.0 - Bugs Issues found during the release testing for 29.0.0 Language: Javascript PR or issue that update Javascript code Module: biobank PR or issue related to biobank module Multilingual Any tasks related to making LORIS multilingual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants