Skip to content

Use US spelling in the Secure Boot ledger - #1453

Merged
mastacontrola merged 3 commits into
working-1.6from
us-english-secureboot-ledger
Aug 29, 2026
Merged

Use US spelling in the Secure Boot ledger#1453
mastacontrola merged 3 commits into
working-1.6from
us-english-secureboot-ledger

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

The Secure Boot ledger (#1451) shipped 147 UK spellings, almost all of them enrolment.

The project's own identifiers have always been US — hostSbEnrolled, hostSbEnrollVia, hostSbEnrollCert, fog.enrollsb, sbEnrollDb — so the prose was disagreeing with the columns it described. Two methods coined in that PR carried it into the API surface:

was now
isEnrolmentTarget() isEnrollmentTarget()
enrolmentFreshness() enrollmentFreshness()

Also recognised / recognise / recognisably, normaliser, canonicalise and colour.

Three user-visible strings change with it — "Setup Mode (unattended enrollment)", the enrollment-task refusal text, and the stale-certificate warning — so the .pot and .po files move too. Those are regenerated by the pre-commit hook from source rather than hand-edited.

Scoped by the diff, not by the word

160 files in this repo carried UK spellings before any of this landed, including docs/adr/0008-secure-boot-enrolment-task-type.md — in its filename. Rewriting those is a separate pass that would dominate any diff it rode in, and the house convention is to leave surrounding text alone.

So only lines #1451 added were rewritten. That does leave a mixture inside Route.php, IpxeBootMenu.php, schema.php, fogconfigurationpage.page.php and lib/common/functions.sh (82 pre-existing hits in that last one) — deliberately, and called out here rather than left to be discovered.

No behavior change

The stored column values are untouched. db, trusted, mok, mok-pending and manual were already US, and are what service/secureboot.report.php writes and the host form whitelists. No data migration, no schema bump, no FOG_SCHEMA change.

Verification

  • tests/run-all.sh — 185 passed, 0 failed
  • vendor/bin/phpstan analyse — no errors
  • vendor/bin/phpstan analyse -c phpstan-tests.neon — no errors

Companion: FOGProject/fos#167, which does the same for sbReport and renames tests/checks/secureboot-enrolment-report.sh.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C2gFRQ3Khhx24FNYMZhW6N

This work shipped 147 UK spellings, almost all of them "enrolment". The
project's own identifiers have always been US -- hostSbEnrolled,
hostSbEnrollVia, hostSbEnrollCert, fog.enrollsb, sbEnrollDb -- so the prose
was disagreeing with the columns it described, and two methods coined here
carried it into the API surface:

  isEnrolmentTarget()   -> isEnrollmentTarget()
  enrolmentFreshness()  -> enrollmentFreshness()

Also recognised/recognise/recognisably, normaliser, canonicalise and colour.
Three user-visible strings change with it, including "Setup Mode (unattended
enrollment)" and the refusal text, so the .pot and .po files move too -- the
pre-commit hook regenerates those from source rather than them being edited
here.

SCOPED BY THE DIFF, NOT BY THE WORD. 160 files in this repo carried UK
spellings before any of this landed, docs/adr/0008-secure-boot-enrolment-
task-type.md among them, in its filename. Rewriting those is a separate pass
that would dominate any diff it rode in, and the convention here is to leave
surrounding text alone. So only lines this branch added were touched, which
does leave a mixture inside Route.php, IpxeBootMenu.php, schema.php,
fogconfigurationpage.page.php and functions.sh -- deliberately, and noted
here rather than quietly.

No behaviour change. The stored column values are untouched: 'db',
'trusted', 'mok', 'mok-pending' and 'manual' were already US and are what
service/secureboot.report.php writes and the host form whitelists, so no
data migration and no schema bump.

Co-Authored-By: Claude <noreply@anthropic.com>
@mastacontrola
mastacontrola merged commit 3d11c86 into working-1.6 Aug 29, 2026
9 checks passed
@mastacontrola
mastacontrola deleted the us-english-secureboot-ledger branch August 29, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant