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:
Claude committed 2026-10-11 23:47:03 +00:00
1 parent 3d225da40e
commit 0a513fb213
46 files changed
+191 -58

No files matched your search

+9 -2
View File
@@ -223,12 +223,12 @@ public sealed class ArchiveViewModel : SectionViewModel
var text = selected.Count == 0 || selected.Any(n => n.Kind == TreeNodeKind.Archive)
? Loc.Plural("Archive.Set.All", set.Count)
: set.Count == 1 ? set[0].DisplayTitle : Loc.Plural("Shell.Status.Sequences", set.Count);
return _filter.IsEmpty ? text : text + " · " + _filter.Describe();
return _filter.IsEmpty ? text : text + Loc.Separator + _filter.Describe();
}
}
/// <summary>The set button's accessible name: what it is and the set it shows.</summary>
public string SetFilterName => Loc.L("Archive.Set.Filter") + " · " + SetText;
public string SetFilterName => Loc.L("Archive.Set.Filter") + Loc.Separator + SetText;
/// <summary>Camera, status and tag on top of the tree selection.</summary>
public ArchiveSetFilter Filter
@@ -426,6 +426,13 @@ public sealed class ArchiveViewModel : SectionViewModel
Orphans = OrphanRows(orphans, locations);
}
/// <summary>The UI language changed: the figures, tree and health rows are read again in the new language.</summary>
protected override void OnLanguageChanged()
{
if (_loaded) _ = LoadAsync();
base.OnLanguageChanged();
}
public override void Dispose()
{
_reloadDelay.Stop();