From 1757a5b9e92459309debba84ca20a34c2b686841 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 08:10:36 +0000 Subject: [PATCH] fix(data): the render job's label points from the sequence to the preset in the reading direction The label (shown in the job bar and the Jobs list) comes from Jobs.Target.Render, or Jobs.Target.RenderRtl in right-to-left languages, as Import.Session.Time does. The curve readout stays an invariant left-to-right pair. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- i18n/en/Common.resx | 2 +- i18n/en/Jobs.resx | 2 ++ src/Titano.Data/Processing/ProcessingJobs.cs | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/i18n/en/Common.resx b/i18n/en/Common.resx index 9dd84635..43d62770 100644 --- a/i18n/en/Common.resx +++ b/i18n/en/Common.resx @@ -8,7 +8,7 @@ Auto · {0}{0} advisor value curvecontrol type read by screen readers, lower case Point {0} of {1}: {2}{0} position; {1} point count; {2} coordinates (Common.CurveReadout) - {0} → {1}{0} horizontal value; {1} vertical value; right-to-left languages point the arrow left + {0} → {1}invariant; drawn left to right in every language; {0} horizontal value; {1} vertical value {0} d {1} h {0} h {1} m {0} min diff --git a/i18n/en/Jobs.resx b/i18n/en/Jobs.resx index 9e6c4cd8..1bd5a967 100644 --- a/i18n/en/Jobs.resx +++ b/i18n/en/Jobs.resx @@ -67,6 +67,8 @@ queued running {0} · {1} + {0} → {1}invariant; {0} sequence title; {1} export preset + {0} ← {1}invariant; right-to-left languages: the arrow points from the sequence to the preset this PC Workers {0} / {1} diff --git a/src/Titano.Data/Processing/ProcessingJobs.cs b/src/Titano.Data/Processing/ProcessingJobs.cs index bc990d70..8f124c46 100644 --- a/src/Titano.Data/Processing/ProcessingJobs.cs +++ b/src/Titano.Data/Processing/ProcessingJobs.cs @@ -37,7 +37,10 @@ public static class ProcessingJobs ArgumentNullException.ThrowIfNull(sequence); ArgumentNullException.ThrowIfNull(export); var parameters = Parameters(export, sourceWidth, sourceHeight, project?.ToJson(), useProxies); - return new ArchiveJobRequest(JobKind.Render, [sequence.Id], $"{sequence.DisplayTitle} → {parameters.PresetName}", + // The label is stored as written, in the language of the moment like the preset name: its arrow points from the + // sequence to the preset in that language's reading direction. + var label = Loc.L(Loc.IsRightToLeft ? "Jobs.Target.RenderRtl" : "Jobs.Target.Render", sequence.DisplayTitle, parameters.PresetName); + return new ArchiveJobRequest(JobKind.Render, [sequence.Id], label, JsonSerializer.Serialize(parameters, ProtocolJson.Default.RenderJobParameters), JobPriority.User); }