Skip to content

v1.1 content: localization (English, French and variants), project skills, check for updates - #12

Merged
geeooff merged 19 commits into
mainfrom
feat/i18n
Nov 24, 2026
Merged

geeooff merged 19 commits into
mainfrom
feat/i18n

Conversation

@geeooff

@geeooff geeooff commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

This PR brings three features to main, the content of v1.1 besides the measurement fix already merged in #13. The skills (#14) and the updater (#15) were stacked on this branch and merged into it. GitHub merged them without CI because the ruleset only protects main. This PR's own CI covers the whole and gates the merge into main. #14 and #15 keep their descriptions; the summary below is the reference.

1. Localization: English and French, regional variants

  • Project Fluent through i18n-embed / i18n-embed-fl.

    • The .ftl files are embedded, so it is still one exe.
    • fl! checks ids and arguments against the English file at compile time.
    • Every user-facing text is crate::tr!. Logs and technical details stay English.
  • Numbers by ICU4X (icu_decimal, CLDR compiled in, about +93 KB) through a Fluent NUM function bound to the chosen regional variant: 25,0 Mo, and the Canadian / Swiss groupings. The result is the same on every OS; OS customizations are not followed.

  • View → Language: Automatic (OS display languages), en-US, en-GB, fr-FR, fr-CA, fr-BE, fr-CH. It switches at runtime and is always negotiated: i18n-embed panics on a language without files.

  • Translations:

    • fr complete (309 messages), written and cold-reviewed by persona-briefed subagents;
    • fr-CA (keyboard names, Québec typography);
    • en-GB (colour, licence);
    • fr-BE / fr-CH: no real difference found, so they keep their CLDR formats only.

    The decisions are recorded in docs/localization.md.

  • Tests: every file parses, translations use only English ids and variables, every message is used, French is complete, numbers per variant.

  • Debug-only helpers: QVT_PSEUDO=1 (pseudo-locale) and QVT_LANGUAGE=fr-CA.

  • Layout: the transport row uses egui's Sides, so the controls wrap instead of running under the volume. The size-limit box shows and reads localized numbers.

  • Spikes behind the stack: ICU4X size and output; sys-locale and negotiation on Windows, Linux and macOS (the last two by code reading).

2. Project skills (from #14)

.claude/skills/, each skill with the pitfalls met so far:

  • release
  • install-locally
  • upgrade-dependencies
  • localize

AGENTS.md points to them. Machine paths stay in the untracked CLAUDE.local.md.

3. Check for updates (from #15)

Design and measurements are in docs/updating.md, adapted from GameModeExecutor's lot 13.

  • Help → Check for updates opens a window: the latest GitHub release and its notes, Download and install, a progress bar, then Restart now (refused while encoding). The new version says Updated to X.
  • Trust:
    • only exact vX.Y.Z tags, no draft or pre-release, never a downgrade;
    • the SHA-256 must match both SHA256SUMS.txt and GitHub's asset digest;
    • ureq over rustls with the OS trust store and Windows proxy settings;
    • connects only on a click.
  • Swap:
    1. The download goes to <exe>.new; pending.txt is written.
    2. A hidden PowerShell runs Wait-Process on the app, renames exe to .old and .new to exe (with retries), and restarts.
    3. On failure it puts the old exe back and records why in result.txt.
    4. The next start reports the outcome and tidies up.
  • Tests: update::Machine is pure and tested; the HTTP feed is tested against a local listener.
  • New dependencies: ureq 3.5, sha2 0.11; about.toml accepts CDLA-Permissive-2.0 (Mozilla's CA list in webpki-roots).

Also in this branch

main was merged in (the parallel-encodes measurement fix, #13) to resolve the CHANGELOG.md conflict. Both sections are kept.

Checks

  • .\scripts\build.ps1 passes on the combined branch: 86 unit tests and 3 end-to-end tests. cargo about generate --fail passes.
  • Screenshots checked in en-US, fr-FR, fr-CA and the pseudo-locale, and the updates window in French.
  • Field test of the updater on this machine: a debug build pretending to be 0.9.0, in a scratch folder named update test [it's], updated itself to the published 1.0.0 byte for byte (a55a5f19…). With .old held open, the swap failed, rolled back, restarted and showed the reason.
  • Not verified:
    • Linux and macOS locale detection (code reading only);
    • a native review of fr-CA;
    • an update behind a proxy;
    • Updated to from a real release pair (first one: 1.1.0 → 1.2.0).

🤖 Generated with Claude Code

geeooff and others added 12 commits November 23, 2026 18:42
…language menu

i18n-embed with the .ftl files embedded and checked at compile time by fl!, a NUM Fluent function formatting numbers with ICU4X CLDR data of the chosen regional variant, View > Language (Automatic or en-US, en-GB, fr-FR, fr-CA, fr-BE, fr-CH), always negotiated so a missing language cannot panic. Tests: files parse, translations only use English ids and variables, every message is used. Debug builds: QVT_PSEUDO=1 pseudo-localizes. The timeline is the first converted module; docs/localization.md holds the conventions and the glossary.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Queue log lines, estimate and encode errors, quality words, tone mapping, engine,
dynamic range and audio track labels, hardware summary, winget, profile file errors,
startup message boxes, Send to and clipboard errors.

Co-Authored-By: Claude Sonnet <[email protected]>
The transport row uses egui's Sides: the volume is laid out first and the controls wrap to a second row instead of running under it (the pseudo-locale showed the overlap). The output folder label and the button that resets it get separate messages, as a translation may need to tell them apart. Subagent worktrees are ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fr: all 309 messages, by a translator persona briefed on the app, its screenshots and code (typography with no-break spaces, Windows key names, the glossary). en-GB: only colour and licence. en now uses US spelling (License). The size limit box shows and reads the localized number (25,0 Mo; comma or point accepted). A test keeps French complete.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An independent reviewer persona fixed 21 French messages (calques, heavy wordings, a misleading label, consistency with the kept part). English: shorten the kept part rather than the clip, and the count through NUM in every plural branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fr-CA: Canadian keyboard key names and Quebec typography (no space before ; ? !), by a Montreal localizer persona; fr-BE and fr-CH reviewers found no real difference, so they use fr with their own CLDR number formats. docs/localization.md records the decisions, the process and how to add a language. README and changelog mention the languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@geeooff
geeooff enabled auto-merge November 23, 2026 20:11
release, install-locally, upgrade-dependencies and localize, each with the pitfalls met so far (windowed exe and PowerShell, single instance, MuiCache names, eframe+egui families, persona-briefed translation). Machine paths stay in CLAUDE.local.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
geeooff and others added 5 commits November 23, 2026 21:26
Add project skills for the repeated procedures
… the next start

Help > Check for updates opens a window: GitHub's latest release (tag vX.Y.Z only, never a downgrade), its notes, Download and install (ureq over rustls with the OS trust store and Windows proxy settings), SHA-256 checked against SHA256SUMS.txt and GitHub's asset digest, the file kept beside the executable as .new. Restart (refused while encoding) writes pending.txt and starts a hidden PowerShell that waits for this process, renames exe to .old and .new to exe with retries, restarts, and on failure writes result.txt, puts the old executable back and starts it (GameModeExecutor's measured method). The next start reports Updated or the failure and tidies. Machine is pure and tested; the HTTP feed against a local listener.

Field test on this machine: a debug build pretending to be 0.9.0 (QVT_UPDATE_AS) from a scratch folder with a space, an apostrophe and brackets updated itself to the published 1.0.0 (hash a55a5f19...); with the .old file held open, the swap failed after its retries, the old executable came back and reported why.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…roots' licence

docs/updating.md records the design, what is trusted and today's field measurements (update and rollback). README, changelog, architecture, AGENTS and the release skill follow. A failed swap now also deletes the unused download. CDLA-Permissive-2.0 (Mozilla's CA list in webpki-roots, through ureq) joins the accepted licences.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check for updates: download, verify and swap the executable
@geeooff
geeooff disabled auto-merge November 23, 2026 21:02
@geeooff geeooff changed the title Localize the application: English and French, regional variants v1.1 content: localization (English, French and variants), project skills, check for updates Nov 23, 2026
@geeooff
geeooff enabled auto-merge November 23, 2026 21:05
@geeooff
geeooff disabled auto-merge November 23, 2026 21:05
@geeooff
geeooff merged commit c5b35aa into main Nov 24, 2026
2 checks passed
@geeooff
geeooff deleted the feat/i18n branch November 24, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant