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
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user