mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 19:02:31 +00:00
i18n: describe skipped update as historical state
This commit is contained in:
@@ -1289,7 +1289,7 @@
|
|||||||
"runDeferred": "held for safety",
|
"runDeferred": "held for safety",
|
||||||
"runSkipped": "nothing pending",
|
"runSkipped": "nothing pending",
|
||||||
"runSkippedStatus": "run skipped",
|
"runSkippedStatus": "run skipped",
|
||||||
"reasonStoppedContainer": "Container is stopped; scheduled update was skipped.",
|
"reasonStoppedContainer": "Container was stopped; scheduled update was skipped.",
|
||||||
"releaseDelaySummary": "{days}-day release hold",
|
"releaseDelaySummary": "{days}-day release hold",
|
||||||
"releaseDelayLabel": "Wait after a new app release",
|
"releaseDelayLabel": "Wait after a new app release",
|
||||||
"releaseDelayNone": "No waiting period",
|
"releaseDelayNone": "No waiting period",
|
||||||
|
|||||||
@@ -1289,7 +1289,7 @@
|
|||||||
"runDeferred": "odložené z bezpečnostných dôvodov",
|
"runDeferred": "odložené z bezpečnostných dôvodov",
|
||||||
"runSkipped": "nič nečaká",
|
"runSkipped": "nič nečaká",
|
||||||
"runSkippedStatus": "spustenie bolo preskočené",
|
"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í",
|
"releaseDelaySummary": "odklad {days} deň/dní",
|
||||||
"releaseDelayLabel": "Počkať po novej verzii aplikácie",
|
"releaseDelayLabel": "Počkať po novej verzii aplikácie",
|
||||||
"releaseDelayNone": "Bez čakacej doby",
|
"releaseDelayNone": "Bez čakacej doby",
|
||||||
|
|||||||
@@ -74,6 +74,11 @@ for (const locale of ['en', 'sk']) {
|
|||||||
const translated = flattenText(render(true))
|
const translated = flattenText(render(true))
|
||||||
const expected = t('vmLxc.scheduled.reasonStoppedContainer')
|
const expected = t('vmLxc.scheduled.reasonStoppedContainer')
|
||||||
const skippedLabel = t('vmLxc.scheduled.runSkippedStatus')
|
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(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(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`)
|
assert(!translated.includes(context.scheduleLastRunReason), `${locale}: raw stopped reason must not leak into UI`)
|
||||||
|
|||||||
Reference in New Issue
Block a user