fix(i18n): keep the analysis job log lines under Advisor.Log

Moving them to Jobs.Analysis.* deleted keys that the integration branch
translates into every culture. The advisor resource test now covers the
Advisor.Log.* job lines, as on the integration branch.

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-02 22:50:25 +00:00
1 parent 5610f386ff
commit 91bf442c26
7 files changed
+24 -21

No files matched your search

@@ -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("Jobs.Analysis.Failed", await TitleAsync(targets[i], context.Cancellation).ConfigureAwait(false), ex.Message));
context.Log(Loc.L("Advisor.Log.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 ? "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()))));
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()))));
}
/// <summary>Next target and the failed targets to retry first; a missing or unreadable checkpoint starts over.</summary>