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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
||||
<data name="Common.AutoValue" xml:space="preserve"><value>Auto · {0}</value><comment>{0} advisor value</comment></data>
|
||||
<data name="Common.Curve" xml:space="preserve"><value>curve</value><comment>control type read by screen readers, lower case</comment></data>
|
||||
<data name="Common.CurvePoint" xml:space="preserve"><value>Point {0} of {1}: {2}</value><comment>{0} position; {1} point count; {2} coordinates (Common.CurveReadout)</comment></data>
|
||||
<data name="Common.CurveReadout" xml:space="preserve"><value>{0} → {1}</value><comment>{0} horizontal value; {1} vertical value; right-to-left languages point the arrow left</comment></data>
|
||||
<data name="Common.CurveReadout" xml:space="preserve"><value>{0} → {1}</value><comment>invariant; drawn left to right in every language; {0} horizontal value; {1} vertical value</comment></data>
|
||||
<data name="Common.Duration.Days" xml:space="preserve"><value>{0} d {1} h</value></data>
|
||||
<data name="Common.Duration.Hours" xml:space="preserve"><value>{0} h {1} m</value></data>
|
||||
<data name="Common.Duration.Minutes" xml:space="preserve"><value>{0} min</value></data>
|
||||
|
||||
@@ -67,6 +67,8 @@
|
||||
<data name="Jobs.State.Queued" xml:space="preserve"><value>queued</value></data>
|
||||
<data name="Jobs.State.Running" xml:space="preserve"><value>running</value></data>
|
||||
<data name="Jobs.State.WithDetail" xml:space="preserve"><value>{0} · {1}</value></data>
|
||||
<data name="Jobs.Target.Render" xml:space="preserve"><value>{0} → {1}</value><comment>invariant; {0} sequence title; {1} export preset</comment></data>
|
||||
<data name="Jobs.Target.RenderRtl" xml:space="preserve"><value>{0} ← {1}</value><comment>invariant; right-to-left languages: the arrow points from the sequence to the preset</comment></data>
|
||||
<data name="Jobs.Where.ThisPc" xml:space="preserve"><value>this PC</value></data>
|
||||
<data name="Jobs.Workers" xml:space="preserve"><value>Workers {0} / {1}</value></data>
|
||||
</root>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user