Repository navigation
Conversation
Preserve current upstream data and authorization flows, use English fallback, and escape plain translated labels at their presentation sinks. AI-Tool: Codex
Document machine translation and activation, preserve source attribution, and run JavaScript source and DOM regressions through the native unit entry point. AI-Tool: Codex
Register 1759 current sources and 15399 active messages with named placeholders, plural rules, English fallback and machine-translation attribution. AI-Tool: Codex
Add 29 chapters per language, machine-translation notices, isolated Bookdown builds, offline PDF export and source-contract checks. Preserve English chapters, scientific examples, figures, formulas and numeric values. AI-Tool: Codex
Use independent unit fixtures, preserve strict JSON validation and data identifiers, correct English prose with existing translated forms, and validate fork documentation without publishing contributor branches. AI-Tool: Codex
Keep the checked rules and move their files to .github/linters so fork jobs and notebook aliases resolve them consistently. AI-Tool: Codex
Keep English prose checks enabled while treating generated catalogs and immutable registries consistently for local and CI path forms. AI-Tool: Codex
Preserve numeric bit masks and controlled source fixtures while naming the exact Bangs and Lax policies used by Super-linter. Mark the test main package explicitly. AI-Tool: Codex
Keep the existing recipient and token security assertions intact. AI-Tool: Codex
AI-Tool: Codex
AI-Tool: Codex
Decode the controller-escaped field before interpolating and escaping the complete title once. Cover real Mason output, literal entities and hostile text in all four locales; preserve the existing HTTP security assertions. AI-Tool: Codex
Preserve legacy generic-folder values for the strict translator and cover the real parent page and typed dialogs in four locales. Require the exact singular duplicate notice for the fixed one-accession Selenium fixture; keep list membership and added-count assertions intact. AI-Tool: Codex
|
related to #5915? |
Hi @isaak — yes, this is related to #5915. To be transparent: I started this work before I had looked at the translation issue #5915, so I didn't know it was already assigned to you and Lukas. Sorry about that — I don't want to step on your work. Here is what the PR currently contains: 1. Core (Perl)
2. Interface strings
3. Translations
4. Tooling — 5. Tests and docs — about 36 new unit tests under 6. User manuals — 29 chapters per language (87 Rmd files) in 7. Unrelated fixes that got mixed in — escaping I realize the PR is too large to review as it is. I'm happy to redo it in whatever form works best for you — smaller, larger, or a different approach. For example:
Just let me know which direction you and Lukas prefer, and I'll rework it. |
|
My thoughts so far, as I am going through this:
These are preliminary thoughts; I will write more as I look into this further |
|
Add short browser helpers, frozen release inputs and transactional partitioned language packages. Preserve language navigation, isolate unavailable packs and document developer and translator workflows. Assisted-by: Codex
Preserve upstream missing-phenotype marker semantics, stock-property error responses and existing translated presentation. Assisted-by: Codex
Keep the changed upstream import explanation fuzzy, retain native English without optional locale assets, and provide bounded terminology review batches. Assisted-by: Codex
Exercise frozen message contracts with standard gettext in normal CI; retain separately qualified source extraction and full-corpus freeze evidence. Assisted-by: Codex
Include print alternatives in Bookdown output and qualify all three translated PDF exports and page layouts. Assisted-by: Codex
Keep the legacy English workflow explicit and document the isolated English builder required by the multilingual release. Assisted-by: Codex
Keep ready operators independent of source extractors, remove unused plural checks and ignored arguments, use standard argparse help, and select exact messages for bounded terminology review. Assisted-by: Codex
Select validated forms without a second dictionary, hash partitions once, read the single runtime directly, and keep disabled English independent of catalog files. Assisted-by: Codex
Refresh chapter and section links, declare the actual reader language, use explicit Bookdown namespaces, and test the manual independently with its existing Playwright dependency. Assisted-by: Codex
Explain the PEP 20 maintenance principles, two-step installation and current validation evidence without adding configuration or new dependencies. Assisted-by: Codex
Preserve upstream POST-only account actions, seedlot status/filter behavior and the maintenance upload endpoint while retaining localized presentation. Refresh source references without changing message identities or package bytes. Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Assisted-by: Codex
Prepare frozen editor workspaces, package saved snapshots, activate validated packs without copying hashes, diagnose read-only state and build all manual readers together. Assisted-by: Codex
Explain roles, prerequisites, commands and outputs in source guides and generated workspace and ready-pack instructions. Assisted-by: Codex
|
Thank you for the feedback in the lab meeting. Here is how I restructured this work:
@ryan-preble, this covers your points: catalogs and tools moved to the new repository, only the image build needs gettext, Two questions:
|
I would say yes to both. @lukasmueller can comment on adding libintl-perl to the dockerfile. And it seems alright if the translated manuals stay in the translations repository. |
Description
This PR adds optional Ukrainian, Spanish and Arabic translations to the
registered SGN/Breedbase interface and all 29 user-manual chapters. It is
related to #5915. The aim is to let users work in their language while keeping
release preparation, translation editing and site installation straightforward.
Fixes #5915.
What this adds
helpers, context-aware messages, plural forms and Arabic right-to-left layout.
The current catalog has 15,398 registered message identities.
chooses a language and clicks the adjacent button. The current page, query and
section are preserved.
unfinished translations use the whole English message. Stored trial/accession
names, identifiers, measurements, scientific formulas, import/export fields
and access rules remain unchanged.
message list for each release, validated JSON packs for the application, and
installation/rollback tools.
preserve the chapter/section, Arabic layout, HTML builds and PDF export
instructions.
What changed after review, and why
The
review comments
and
header placement request
led to these changes:
SGN.t/SGN.tnbrowser helpersbin/i18n, with one command entry point--help; matching tools are included in the delivered folders.prepareonce per release, then Poedit editing andpackageinstall --activatedoctorand retained rollbackbuild.R allcommandThe proposed
developer-guide chapter
explains adding messages, extraction, debugging and fallback. Moving catalogs or
manuals into separate repositories remains a maintainer decision; this PR keeps
them together and supports handing off release files independently.
How to use it
Release builder: from the clean SGN source checkout, with the
source tools
installed:
This creates an editable workspace and leaves the original PO/POT files
unchanged. Give the whole folder to the translator.
Translator: install Poedit, choose File →
Open, open
translations/uk.po, edit the Translation field and save. Keepvalues such as
%{name}unchanged. Return the whole folder to the builder.Editing needs no SGN, Python or translation server.
Release builder: after review, build the ready bundle on Linux/POSIX with
Python 3.9+ and GNU gettext:
The bundle includes language packs, operator tools, notices and the exact saved
release/PO inputs. See the
full translator and builder guide
for corrections and new releases.
Site administrator: from the unpacked ready folder, as the SGN server
account:
Ready-pack operations need Linux/POSIX and Python 3.9+, with no Node, Perl, R or
gettext. Apply the three site settings and, for Docker, the whole-folder mount
once. The
installation guide
gives the exact settings, Docker steps, diagnostics, updates and rollback.
Installing files alone does not configure the running site.
Manual builder: from the SGN source folder in the Bookdown environment:
Rscript --vanilla docs/r_markdown_docs/build.R all "$HOME/sgn-manual-v1"Open
~/sgn-manual-v1/index.html. Themanual guide
covers dependencies, editing, English/translated PDFs and publication.
Installing a UI pack does not publish manuals.
Validation and remaining work
Local qualification passed: 145 Python checks, 61 native files / 2,312
checks, 133 R checks, an actual Poedit edit/save/package cycle, four
manual builds and four browser navigation cases. Tests cover package integrity,
interrupted operations, read-only diagnostics, rollback and saved-input
consistency. All 90 catalog JSON/index files and the three complete package
hashes stayed unchanged. See
validation details and limits
and the PR checks.
Translations are machine-generated drafts and still need native-speaker and
breeder review. Coverage is defined by the source registry, not every route or
background email.
doctordoes not prove an exact remote pack version or everyauthenticated/scientific workflow. Full authenticated target-site acceptance
remains separate. This PR stays Draft.
Checklist
/t/data/fixture/patches/./docshas been updated./jsto/js/source/legacy.