fix(i18n): texts kept by view models follow a language switch; right-to-left meta lines keep their fields
A language switch re-read computed properties only: the job bar of a running job,
the Jobs rows, the editor's chart legends and summaries, Auto chips, markers and
info line, the Archive figures and the Import session table kept the old language
until their next change. LocalizedViewModel gains OnLanguageChanged, where each of
them makes those texts again.
Meta lines joined their fields with a plain " · ": in Arabic or Hebrew a number
after a Latin field ("Canon EOS R5 · 2 h") joined the Latin run and split its own
field. Loc.Separator puts right-to-left marks around the dot in right-to-left
languages and is used for every such line. Desktop file sizes use the Common.Size
formats, as the Setup and the Uploader do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
46 files changed
+191
-58
No files matched your search
@@ -198,7 +198,11 @@ run as server jobs whose progress comes from the events.
|
||||
screens never set `FlowDirection` for the language. Photos, charts, numbers, paths and templates are left-to-right
|
||||
islands on the smallest element holding them; directional icons mirror by themselves (`IconData.IsDirectional`,
|
||||
overridden per subtree with `Bidi.IsDirectional`); left-to-right fragments inside a right-to-left sentence go
|
||||
through `BidiText`.
|
||||
through `BidiText`. Fields of a meta line are joined with `Loc.Separator`, never a literal " · ": in a
|
||||
right-to-left language it holds right-to-left marks, so a number after a Latin field keeps to its own field.
|
||||
- The language switches without restart: computed properties re-read through `LocalizedViewModel`, and a view model
|
||||
that keeps texts in objects (chart series and legends, rows, cached sentences) makes them again in
|
||||
`OnLanguageChanged`.
|
||||
- Radio buttons group by their parent panel. `GroupName` is shared by every window whose visual root is not known
|
||||
yet, so it is used only where the bindings are one-way (chips generated by item templates, the rail).
|
||||
- Content a control presents through its template from a dependency property other than `Content` is made a logical
|
||||
|
||||
@@ -118,6 +118,13 @@ commits follow Conventional Commits (release notes are generated from them by `T
|
||||
stayed disabled; the explicit dry run now cancels it.
|
||||
- Radio groups leaked between windows not shown yet (the Setup's capture overflowed the stack); screenshots of
|
||||
right-to-left windows were mirrored twice.
|
||||
- Switching the language left texts kept by view models in the old language until their next change: the job bar,
|
||||
the Jobs rows, the editor's chart legends and summaries, Auto chips and info line, the Archive figures and the
|
||||
Import session table now follow at once.
|
||||
- Right-to-left: in meta lines a number after a Latin field ("Canon EOS R5 · 2 h") joined the Latin run and split
|
||||
its own field; fields are now separated with right-to-left marks. Desktop file sizes use the language's units.
|
||||
- CI: a full artifact storage failed jobs whose checks had passed; uploads no longer fail a job, artifacts expire in
|
||||
days, and screenshots reach their branch through the cache.
|
||||
- Release workflow: signing and the public-repository publish never ran (step conditions cannot read the step's own
|
||||
secrets); the publish job lacked the .NET SDK for `make-icon`; re-publishing an existing tag failed; the portable
|
||||
zip lacked `portable.txt`.
|
||||
|
||||
@@ -237,3 +237,7 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-10-06 | Log download: reuse FileResponses.Serve (fixed-length, range-capable FileSlice) with the length listed at request time | Copy the log to a temp file first, or stream to EOF without a Content-Length | It reuses an existing facility, keeps Range resume working, has no extra I/O, and the response stays self-consistent while the logger keeps appending. |
|
||||
| 2026-10-06 | The regression test fills its server's log with about 2 MB up front, then logs one line about every 1 ms through the server's FileLoggerProvider only, on a LongRunning thread | A tight logging loop through ILoggerFactory (my first two versions) | The engine log sink is process-wide, so a console or file-lock flood stalled another test's job engine. The throttled version still reproduces the bug in 10 of 10 runs against the old endpoint. |
|
||||
| 2026-10-06 | Heartbeat test: count the claims the server answered with a DelegatingHandler, then wait for a later beat with a 30 s deadline | Keep the sleeps and widen the 400 ms window | It removes the timing assumption both ways (a false failure on a slow runner, and a false pass on the claim's own touch). It also proves no claim moved the beat. |
|
||||
| 2026-10-11 | Fields of a meta line are joined with `Loc.Separator`: " · " in left-to-right languages, " · " between right-to-left marks in right-to-left ones (`Loc.SeparatorOf(culture)` for texts built in another language) | Unicode isolates (FSI/PDI) around each field, or a left-to-right island for every meta line | WPF's bidi predates the isolates; without a strong right-to-left character before it, a number after a Latin field ("Canon EOS R5 · 2 h") joins the Latin run (rule W7) and splits its own field; islands would read the fields in left-to-right order. |
|
||||
| 2026-10-11 | `LocalizedViewModel.OnLanguageChanged` is the hook for texts kept in objects: the editor makes its tabs' charts, Auto chips, markers and info line again; Jobs refreshes rows, chips and the job bar; Archive reads again; Import rebuilds its session table and device list | Re-create every section after a language switch, or ask for a restart | BRIEF §16 switches language without restart; a running job's bar line and an open editor's legend otherwise stayed in the old language until their next change. |
|
||||
| 2026-10-11 | Desktop sizes use the `Common.Size.*` formats, like the Setup and the Uploader | Hard-coded B, KB, MB, GB, TB, PB | Several languages write the units in their own script or words (КБ, bayt, كيلوبايت); every UI string is a resource. |
|
||||
| 2026-10-11 | CI artifact uploads continue on error with short retention (test results 7 days, Windows programs 3); screenshots reach the screenshots job through the Actions cache | Keep failing jobs on a full artifact storage, or push the screenshots from the build job | A full storage quota failed jobs whose checks had passed; the cache has its own limit, and the build job keeps its read-only token. |
|
||||
Reference in new issue
Block a user