Skip to content

Notes and improvements for I18N #1660

Open

Description

@natacha-beck

This issue tracks unfinished changes for the multi language support in CBRAIN, or problems and suggested adjustments for the interface.

Keywords (to help people searching issues): Internationalization, English, Anglais, Français, Francais

  • Add i18n support for validation message via errors.add
  • Audit controller i18n.
  • i18n in JS Cancel, Upload....
  • Look at unused key/value in FR/EN dictionary can maybe be simplified by using key/value in model attribute.
  • Look at model
  • In tasks page: 'Completed' -> 'Terminé' which is confusing when we also have 'Terminated'; suggestion: 'Fini'

Activity

  1. self-assigned this
    on Sep 22, 2026
  2. changed the title [-]i18n addition[/-] [+]Notes and improvements for I18N[/+] on Oct 1, 2026
  3. prioux commented on Oct 1, 2026

    @prioux
    Member

    When uploading a file, if the file has illegal characters in it (like a space) the message in red is generated in Javascript and only in EN. The JS code should just turn on a visible/invisible SPAN instead with the translated text in it.

  4. prioux commented on Oct 1, 2026

    @prioux
    Member

    In general, all messages hardcoded in the javascript code should be refactored such that the messages are stored in the HTML code and its visibility is toggled on/off as needed by the JS code, instead.

  5. prioux commented on Oct 1, 2026

    @prioux
    Member

    Generate a new API token page: in the explanations: "Ce jeton ne sera valide que pendant 3 days."

  6. natacha-beck commented on Oct 1, 2026

    @natacha-beck
    ContributorAuthor
    Image
  7. prioux commented on Oct 1, 2026

    @prioux
    Member

    Under the locales/ folder are two older files en.yml and fr.yml ; I think their content should be moved somewhere else down in the tree.

  8. natacha-beck commented on Oct 5, 2026

    @natacha-beck
    ContributorAuthor
    Image
  9. dlq commented on Oct 20, 2026

    @dlq
    Contributor

    Three small translation fixes have now been merged into dev: #1667 (French access-profile help heading), #1668 (storage dropdown headings), and #1669 (active/locked user dropdown headings). The broader translation work tracked here remains open.

  10. dlq commented on Oct 20, 2026

    @dlq
    Contributor

    Six focused PRs targeting dev address specific remaining gaps:

    The PR descriptions include the relevant English/French runtime and browser validation results. These are targeted fixes; the broader JavaScript, controller, and model audits and general unused-key cleanup remain open.

  11. dlq commented on Oct 27, 2026

    @dlq
    Contributor

    Four small follow-up PRs targeting dev, covering presentation text outside #1677's validation-message changes:

    • Localize shared error summary counts and model names #1679 — Localizes the shared error-summary heading, including singular/plural error counts and translated model names. Tested one- and two-error submissions in the live portal in English and French without sending messages. Rails rendering checks also cover zero errors and custom heading overrides; the final French wording passed the rendering and Chromium component checks.
    • Translate Boutiques input hints and empty selectors #1680 — Translates Boutiques input hints and empty dropdown/multi-select messages. Tested the actual Rails partials with a single mandatory file input and empty selectors in English and French, then checked the rendered components in Chromium.
    • Translate Boutiques help headings #1681 — Translates Boutiques help headings and metadata labels while preserving descriptor-supplied names, descriptions, and links. Tested rendering in English and French with zero, one, and two file inputs, both mandatory and optional, including section visibility and HTML escaping; checked rendered help in Chromium.
    • Translate Boutiques multi-task help #1682 — Translates the CBRAIN file-list (cbcsv) multi-task instructions. Tested English/French rendering across the same input configurations, including the explanation shown only for one mandatory file input, and checked the rendered help in Chromium.

    Validation used the local Apple-container Rails deployment. Chromium reported no JavaScript errors. Boutiques checks were component tests, not end-to-end scientific-tool launches. The four patches were tested together and trial-merged cleanly with #1677 at 0067e3e4.

  12. dlq commented on Oct 27, 2026

    @dlq
    Contributor

    Two more small, independent PRs targeting dev:

    • Clarify French terminology for completed tasks #1683 — Clarifies the French Completed task state as “Finie” (“Fini” in the dashboard log toggle), with matching completed-task and archiving explanations. Terminated remains “Interrompue”; internal state values and English text are unchanged. Tested the Rails status-label helper in English/French and checked the completed-task panel, archiving panel, and dashboard toggle in desktop Chromium. The QA account had no task rows, so row labels were verified through the actual helper rather than a populated table.
    • Translate task-update notifications #1684 — Translates bulk task-update notification subjects, all four access/configuration failure reasons, and singular/plural task-count prefixes. Tested the actual controller’s background branch in English/French for success and each failure reason, with task mutations and process spawning stubbed. Checked generated counts and links, confirmed non-task formatting stays unchanged, then expanded the generated notifications in the live portal in Chromium.

    Both were tested using the local Apple-container Rails deployment, with no browser JavaScript errors. No real tasks were changed or processing jobs launched. Test notifications went only to a disposable local QA account with email disabled; the account and messages were removed afterward.

  13. dlq commented on Oct 27, 2026

    @dlq
    Contributor

    Six more focused PRs targeting dev:

    • Translate the Boutiques description toggle #1685 — Translates the Boutiques “Show more” toggle. Checked English/French Rails rendering for short and long descriptions, preserved HTML escaping, and expansion/collapse in Chromium using CBRAIN’s actual toggle handler and the deployment’s jQuery.
    • Translate Descriptor Maker controls #1686 — Translates Descriptor Maker’s Check Descriptor, Preview, Reorder properties, and Pad values with spaces controls. Checked English/French rendered labels and checkbox interactions in Chromium; the submitted parameter names and on values remain unchanged. Descriptor validation and preview generation were not executed.
    • Translate Descriptor Maker help #1687 — Translates Descriptor Maker help, recommendations, headings, and resource captions. Checked English/French Rails rendering and Chromium output, including technical JSON keys, HTML emphasis, all five resource links, and matching button terminology.
    • Translate Zenodo upload notifications #1688 — Translates Zenodo upload notification subjects, descriptions, singular/plural file counts, and file-entry prefixes. Exercised the actual Rails upload orchestration in English/French for success, failure, and mixed outcomes with one/two files, with external uploads and worker calls stubbed. Also checked generated-text upload errors and expanded the generated notifications in the live portal. No Zenodo requests or uploads were made.
    • Reuse the model description label in the site form #1689 — Removes duplicate site-description label translations and reuses Rails’ existing attribute label. Checked the key’s consumer and attribute resolution, then verified the label and editable field in the live new-site form in English/French. No site was created.
    • Document remaining CBRAIN translation audit findings #1690 — Documents the remaining source-audit findings, sources, scan scope, exclusions, and suggested verification. This is documentation only: the listed strings and call sites were inspected in a composed source snapshot; it does not fix the newly identified gaps.

    The five code changes passed English/French Rails and desktop Chromium checks, with no JavaScript errors. They were tested in the local Apple-container deployment alongside #1677 at 0067e3e4 and our #1678–#1684 changes. Boutiques/Descriptor Maker checks were component tests rather than end-to-end tool execution. Test notifications went only to a disposable local QA account with email disabled; the account and messages were removed afterward. No processing jobs were launched.

    Still open after these PRs: file upload/merge/extraction and data-provider repair notifications; viewer/availability responses; task-submission summaries; invitation and work-directory messages; loading/error feedback and file-launch-bar text; Boutiques preview warnings/headings; and other built-in tool forms. General unused/duplicate-key cleanup also remains open—dynamic keys and implicit Rails attribute lookups need consumer checks before removal. The audit does not cover every portal view/helper, external plugin, email, worker path, or generated string, and background-message recipient-language policy still needs explicit verification. These PRs do not establish complete translation coverage or make #1660 ready to close.

  14. dlq commented on Oct 28, 2026

    @dlq
    Contributor

    All concrete findings listed in the #1690 audit now have separate fix PRs from dlq/cbrain to aces:dev:

    PR Fix English/French validation
    #1691 File/collection upload notification subjects Actual success/failure message expressions and persisted portal messages; JSON/XML notices unchanged
    #1692 Collection merge, collision, and provider-failure notifications Actual message expressions with local fixtures; collection/provider names and links retained
    #1693 Archive extraction notifications and count report Success/failure expressions; 0/1/2 extracted, failed, and nested files; browser display of filenames
    #1694 Data-provider repair progress and result summaries 0/1/2 issue fixtures, including singular/plural totals and failures
    #1695 Task-submission summary 0/1/2 tasks, preserving the tool name and worker details
    #1696 Selection/viewer errors and unavailable-resource responses Actual invalid-selection action and response expressions; browser checks for line breaks and escaped viewer names
    #1697 Project invitation subjects, email bodies, descriptions, and Accept label Actual callbacks and captured mail in recipient language with opposite process locale; fallback and locale restoration
    #1698 Saved-work-directory success/failure notifications Actual worker method with file/provider operations stubbed; recipient language, task links, independent Bourreau dictionary loading
    #1699 AJAX loading/error feedback Real loading/success/failure handlers using translated HTML templates
    #1700 File launch bar and Prepare/Launch controls 0/1/2 selected files, button states, literal tool names, actual selector handler, preserved POST URL and file-ID payload
    #1701 Boutiques preview headings, task column, and unequal-length warning Actual rendered preview handler for single, multiple, and unequal CBCSV lists
    #1702 SimpleFileExtractor form/result labels and inline pattern help Actual partials, overflow count, help expansion, editable wildcard fields
    #1703 CBSerializer controls and summaries Actual partials with enabled, disabled, and missing-task fixtures; checkbox behavior
    #1704 BashScriptor form/result labels and inline help Actual partials, duration values, editable inputs, substitution tokens, and unchanged executable examples

    Both-language Rails and browser checks passed on the isolated Apple-container deployment (Ruby 2.7.8 / Rails 5.0.7.2), composed with the existing i18n PRs including #1677. Browser component tests used the actual rendered partials/handlers with deterministic fixtures; they were not full processing workflows. No real invitations/emails, provider repairs, archive extraction, script execution, or processing jobs were performed.

    The preview tests caught an existing numeric/string CBCSV ID mismatch that prevented the multi-list preview/warning from appearing; #1701 includes the narrow comparison fix. Each PR description records its own test scope and limitations.

    I also updated #1690's inventory to link these fixes. Its concrete findings are now covered by pending PRs. The broader audit remains open: safe unused-key removal, paths outside the original scan (including external plugins), and a system-wide background-message language review are not claims of completed coverage. These PRs should not be treated as merged/deployed yet.

  15. prioux commented on Nov 10, 2026

    @prioux
    Member

    A large paragraqph of text has disappeared.

    The explanation at the top of the Ongoing tab (for BackgroundActivities) is missing since commit d15529

    See file _background_activity_table.html.erb at line 46 etc.

  16. dlq commented on Nov 12, 2026

    @dlq
    Contributor

    Remaining gaps confirmed while testing #1714 in English and French:

    Deferred until Pierre’s v8 changes land

    • Upload dialog, French. Configure a large-upload help URL and open the dialog. The optional “Large datasets?” link still appears in English. Its label is hardcoded in JavaScript.
    • Compression feedback, French. Compress a file whose .gz name already exists. The flash reads “1 fichiers ignorés : Filename collision”. Localize the collision and read-only-provider reasons supplied by the same controller and check singular/plural wording. The collision was reproduced locally. The read-only reason was identified in the source.
    • Custom-filter validation, French. Submit a non-integer file size or an invalid task-description filter. Fix missing and unused local key for I18n #1714 translates the explanations, but Rails still prepends “Data size term” and “Data description type”. Add French attribute labels and check the complete messages.

    This checklist records the concrete follow-ups from the review. The broader translation audit remains open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions