fix(i18n): analysis job log lines live in the Jobs area
The Advisor catalog holds only advisor reasons and findings (its test counts them); job log lines join Jobs.Analysis.* as long texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+20
-20
No files matched your search
@@ -31,12 +31,6 @@
|
||||
<data name="Advisor.Finding.UnreadableFrames" xml:space="preserve"><value>{0} frames could not be decoded.</value><comment>{0} frame count</comment></data>
|
||||
<data name="Advisor.Finding.WhiteBalanceJitter" xml:space="preserve"><value>Colour balance jumps by {0:0.#}% between frames.</value><comment>{0} RMS colour-ratio jitter in percent</comment></data>
|
||||
<data name="Advisor.Finding.WhiteFrames" xml:space="preserve"><value>{0} frames are blown out to white.</value><comment>{0} frame count</comment></data>
|
||||
<data name="Advisor.Log.AutoUpdated" xml:space="preserve"><value>Automatic values of {0} updated.</value><comment>job log line; {0} sequence title</comment></data>
|
||||
<data name="Advisor.Log.DeepDone" xml:space="preserve"><value>Deep analysis of {0}: {1} frames, {2} warnings.</value><comment>job log line; {0} sequence title; {1} frame count; {2} warning count</comment></data>
|
||||
<data name="Advisor.Log.Failed" xml:space="preserve"><value>{0} could not be analysed: {1}</value><comment>long: job log line; {0} sequence title; {1} reason</comment></data>
|
||||
<data name="Advisor.Log.LightDone" xml:space="preserve"><value>Light analysis of {0}: {1} frames, {2} warnings.</value><comment>job log line; {0} sequence title; {1} frame count; {2} warning count</comment></data>
|
||||
<data name="Advisor.Log.Presets" xml:space="preserve"><value>Suggested presets: {0}</value><comment>job log line; {0} preset names separated by dots</comment></data>
|
||||
<data name="Advisor.Log.ProjectUnreadable" xml:space="preserve"><value>The project settings of {0} cannot be read; their automatic values were left as they were.</value><comment>job log line; {0} sequence title</comment></data>
|
||||
<data name="Advisor.Missing.Deep" xml:space="preserve"><value>Needs the deep analysis of the pixels, which has not run yet; nothing was changed.</value><comment>no placeholders</comment></data>
|
||||
<data name="Advisor.Missing.Exposure" xml:space="preserve"><value>Shutter time or aperture is missing from the metadata, so this cannot be decided; nothing was changed.</value><comment>no placeholders</comment></data>
|
||||
<data name="Advisor.Missing.Motion" xml:space="preserve"><value>Too few frame pairs to measure motion; nothing was changed.</value><comment>no placeholders</comment></data>
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
<data name="Jobs.Action.Resume" xml:space="preserve"><value>Resume</value></data>
|
||||
<data name="Jobs.Action.Retry" xml:space="preserve"><value>Retry</value></data>
|
||||
<data name="Jobs.Action.Show" xml:space="preserve"><value>Show</value></data>
|
||||
<data name="Jobs.Analysis.AutoUpdated" xml:space="preserve"><value>Automatic values of {0} updated.</value><comment>long: job log line; {0} sequence title</comment></data>
|
||||
<data name="Jobs.Analysis.DeepDone" xml:space="preserve"><value>Deep analysis of {0}: {1} frames, {2} warnings.</value><comment>long: job log line; {0} sequence title; {1} frame count; {2} warning count</comment></data>
|
||||
<data name="Jobs.Analysis.Failed" xml:space="preserve"><value>{0} could not be analysed: {1}</value><comment>long: job log line; {0} sequence title; {1} reason</comment></data>
|
||||
<data name="Jobs.Analysis.LightDone" xml:space="preserve"><value>Light analysis of {0}: {1} frames, {2} warnings.</value><comment>long: job log line; {0} sequence title; {1} frame count; {2} warning count</comment></data>
|
||||
<data name="Jobs.Analysis.Presets" xml:space="preserve"><value>Suggested presets: {0}</value><comment>long: job log line; {0} preset names separated by dots</comment></data>
|
||||
<data name="Jobs.Analysis.ProjectUnreadable" xml:space="preserve"><value>The project settings of {0} cannot be read; their automatic values were left as they were.</value><comment>long: job log line; {0} sequence title</comment></data>
|
||||
<data name="Jobs.Bar.Left" xml:space="preserve"><value>{0} left</value></data>
|
||||
<data name="Jobs.ClearDone" xml:space="preserve"><value>Clear done</value></data>
|
||||
<data name="Jobs.Column.Kind" xml:space="preserve"><value>Kind</value></data>
|
||||
|
||||
@@ -31,12 +31,6 @@
|
||||
<data name="Advisor.Finding.UnreadableFrames" xml:space="preserve"><value>{0} fotogrammi non sono decodificabili.</value></data>
|
||||
<data name="Advisor.Finding.WhiteBalanceJitter" xml:space="preserve"><value>Il bilanciamento del colore varia del {0:0.#}% tra un fotogramma e l'altro.</value></data>
|
||||
<data name="Advisor.Finding.WhiteFrames" xml:space="preserve"><value>{0} fotogrammi sono completamente bruciati.</value></data>
|
||||
<data name="Advisor.Log.AutoUpdated" xml:space="preserve"><value>Valori automatici di {0} aggiornati.</value></data>
|
||||
<data name="Advisor.Log.DeepDone" xml:space="preserve"><value>Analisi approfondita di {0}: {1} fotogrammi, {2} avvisi.</value></data>
|
||||
<data name="Advisor.Log.Failed" xml:space="preserve"><value>Impossibile analizzare {0}: {1}</value></data>
|
||||
<data name="Advisor.Log.LightDone" xml:space="preserve"><value>Analisi rapida di {0}: {1} fotogrammi, {2} avvisi.</value></data>
|
||||
<data name="Advisor.Log.Presets" xml:space="preserve"><value>Preset suggeriti: {0}</value></data>
|
||||
<data name="Advisor.Log.ProjectUnreadable" xml:space="preserve"><value>Le impostazioni del progetto di {0} non sono leggibili; i valori automatici sono rimasti invariati.</value></data>
|
||||
<data name="Advisor.Missing.Deep" xml:space="preserve"><value>Serve l'analisi approfondita dei pixel, non ancora eseguita; nulla è stato cambiato.</value></data>
|
||||
<data name="Advisor.Missing.Exposure" xml:space="preserve"><value>Tempo di scatto o diaframma mancano nei metadati, quindi non si può decidere; nulla è stato cambiato.</value></data>
|
||||
<data name="Advisor.Missing.Motion" xml:space="preserve"><value>Troppo poche coppie di fotogrammi per misurare il movimento; nulla è stato cambiato.</value></data>
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
<data name="Jobs.Action.Resume" xml:space="preserve"><value>Riprendi</value></data>
|
||||
<data name="Jobs.Action.Retry" xml:space="preserve"><value>Riprova</value></data>
|
||||
<data name="Jobs.Action.Show" xml:space="preserve"><value>Mostra</value></data>
|
||||
<data name="Jobs.Analysis.AutoUpdated" xml:space="preserve"><value>Valori automatici di {0} aggiornati.</value></data>
|
||||
<data name="Jobs.Analysis.DeepDone" xml:space="preserve"><value>Analisi approfondita di {0}: {1} fotogrammi, {2} avvisi.</value></data>
|
||||
<data name="Jobs.Analysis.Failed" xml:space="preserve"><value>Impossibile analizzare {0}: {1}</value></data>
|
||||
<data name="Jobs.Analysis.LightDone" xml:space="preserve"><value>Analisi rapida di {0}: {1} fotogrammi, {2} avvisi.</value></data>
|
||||
<data name="Jobs.Analysis.Presets" xml:space="preserve"><value>Preset suggeriti: {0}</value></data>
|
||||
<data name="Jobs.Analysis.ProjectUnreadable" xml:space="preserve"><value>Le impostazioni del progetto di {0} non sono leggibili; i valori automatici sono rimasti invariati.</value></data>
|
||||
<data name="Jobs.Bar.Left" xml:space="preserve"><value>{0} rimanenti</value></data>
|
||||
<data name="Jobs.ClearDone" xml:space="preserve"><value>Rimuovi concluse</value></data>
|
||||
<data name="Jobs.Column.Kind" xml:space="preserve"><value>Tipo</value></data>
|
||||
|
||||
@@ -49,7 +49,7 @@ internal sealed class AnalyseJobHandler(TitanoDatabase db, SequenceAnalyser anal
|
||||
{
|
||||
await chain.FlushAsync().ConfigureAwait(false);
|
||||
Core.Diagnostics.Log.Warning("processing", $"Analysis of sequence {targets[i]} failed", ex);
|
||||
context.Log(Loc.L("Advisor.Log.Failed", await TitleAsync(targets[i], context.Cancellation).ConfigureAwait(false), ex.Message));
|
||||
context.Log(Loc.L("Jobs.Analysis.Failed", await TitleAsync(targets[i], context.Cancellation).ConfigureAwait(false), ex.Message));
|
||||
failed.Add(i);
|
||||
}
|
||||
done += units[i];
|
||||
@@ -66,10 +66,10 @@ internal sealed class AnalyseJobHandler(TitanoDatabase db, SequenceAnalyser anal
|
||||
private static void Report(JobContext context, AnalysisOutcome outcome, bool deep)
|
||||
{
|
||||
var title = outcome.Sequence.DisplayTitle;
|
||||
context.Log(Loc.L(deep ? "Advisor.Log.DeepDone" : "Advisor.Log.LightDone", title, outcome.Frames, outcome.Warnings));
|
||||
if (outcome.SettingsChanged) context.Log(Loc.L("Advisor.Log.AutoUpdated", title));
|
||||
if (outcome.SettingsUnreadable) context.Log(Loc.L("Advisor.Log.ProjectUnreadable", title));
|
||||
if (outcome.Presets.Count > 0) context.Log(Loc.L("Advisor.Log.Presets", string.Join(" · ", outcome.Presets.Select(p => p.DisplayName()))));
|
||||
context.Log(Loc.L(deep ? "Jobs.Analysis.DeepDone" : "Jobs.Analysis.LightDone", title, outcome.Frames, outcome.Warnings));
|
||||
if (outcome.SettingsChanged) context.Log(Loc.L("Jobs.Analysis.AutoUpdated", title));
|
||||
if (outcome.SettingsUnreadable) context.Log(Loc.L("Jobs.Analysis.ProjectUnreadable", title));
|
||||
if (outcome.Presets.Count > 0) context.Log(Loc.L("Jobs.Analysis.Presets", string.Join(" · ", outcome.Presets.Select(p => p.DisplayName()))));
|
||||
}
|
||||
|
||||
/// <summary>Next target and the failed targets to retry first; a missing or unreadable checkpoint starts over.</summary>
|
||||
|
||||
@@ -47,7 +47,7 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
Assert.True(row.Status.HasFlag(SequenceStatus.AnalyzedLight), "index status");
|
||||
Assert.False(row.Status.HasFlag(SequenceStatus.AnalyzedDeep), "no deep status without a report");
|
||||
Assert.True(ManifestStore.ReadSequence(folder.ManifestPath).Status.HasFlag(SequenceStatus.AnalyzedLight), "sidecar status");
|
||||
Assert.Contains(Loc.L("Advisor.Log.AutoUpdated", sequence.DisplayTitle), done.LogTail);
|
||||
Assert.Contains(Loc.L("Jobs.Analysis.AutoUpdated", sequence.DisplayTitle), done.LogTail);
|
||||
|
||||
// Idempotent: a second pass changes nothing.
|
||||
var version = row.SettingsVersion;
|
||||
@@ -103,7 +103,7 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
Assert.NotNull((await fx.Db.Frames.ListBySequenceAsync(sequence.Id, cancellationToken: fx.Ct))[5].MeanLogLuminance);
|
||||
var project = ProjectSettings.FromJson(await File.ReadAllTextAsync(folder.ProjectPath, fx.Ct));
|
||||
Assert.True(project.Exposure.Deflicker.HasAdvice, "deflicker advised from the pixels");
|
||||
Assert.Contains(Loc.L("Advisor.Log.Presets", string.Empty), done.LogTail);
|
||||
Assert.Contains(Loc.L("Jobs.Analysis.Presets", string.Empty), done.LogTail);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -131,7 +131,7 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
Assert.SequenceEqual([true, true, true], await AnalysedAsync(fx, a, b, c));
|
||||
Assert.Equal((3L, 3L), (done.ProgressDone, done.ProgressTotal));
|
||||
// The retry analysed B alone.
|
||||
var lightOfA = Loc.L("Advisor.Log.LightDone", a.DisplayTitle, 10, 0).Split(',')[0];
|
||||
var lightOfA = Loc.L("Jobs.Analysis.LightDone", a.DisplayTitle, 10, 0).Split(',')[0];
|
||||
Assert.Equal(1, done.LogTail!.Split('\n').Count(line => line.Contains(lightOfA, StringComparison.Ordinal)));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user