i18n: describe skipped update as historical state

This commit is contained in:
VAIO73
2026-10-16 17:21:34 +00:00
parent 9bc83a13ef
commit 413ac5e80e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1289,7 +1289,7 @@
"runDeferred": "held for safety",
"runSkipped": "nothing pending",
"runSkippedStatus": "run skipped",
"reasonStoppedContainer": "Container is stopped; scheduled update was skipped.",
"reasonStoppedContainer": "Container was stopped; scheduled update was skipped.",
"releaseDelaySummary": "{days}-day release hold",
"releaseDelayLabel": "Wait after a new app release",
"releaseDelayNone": "No waiting period",
+1 -1
View File
@@ -1289,7 +1289,7 @@
"runDeferred": "odložené z bezpečnostných dôvodov",
"runSkipped": "nič nečaká",
"runSkippedStatus": "spustenie bolo preskočené",
"reasonStoppedContainer": "Kontajner je vypnutý; plánovaná aktualizácia sa preskočila.",
"reasonStoppedContainer": "Kontajner bol vypnutý; plánovaná aktualizácia sa preskočila.",
"releaseDelaySummary": "odklad {days} deň/dní",
"releaseDelayLabel": "Počkať po novej verzii aplikácie",
"releaseDelayNone": "Bez čakacej doby",
@@ -74,6 +74,11 @@ for (const locale of ['en', 'sk']) {
const translated = flattenText(render(true))
const expected = t('vmLxc.scheduled.reasonStoppedContainer')
const skippedLabel = t('vmLxc.scheduled.runSkippedStatus')
const expectedHistoricalReason = locale === 'sk'
? 'Kontajner bol vypnutý; plánovaná aktualizácia sa preskočila.'
: 'Container was stopped; scheduled update was skipped.'
assert.equal(expected, expectedHistoricalReason,
`${locale}: stopped reason must describe the historical scheduled run, not current container state`)
assert(translated.includes(expected), `${locale}: known reason code must use the locale catalog`)
assert(translated.includes(skippedLabel), `${locale}: skipped run must not claim that no updates are pending`)
assert(!translated.includes(context.scheduleLastRunReason), `${locale}: raw stopped reason must not leak into UI`)