website: the language switch becomes a globe like the dashboard's (Magyar / English list, current marked, no JS); site.css v3; gate 13 checks the globe from one LANGS list; 5 decoys
gates / gates (push) Successful in 3m54s
gates / gates (push) Successful in 3m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
## gates — the language globe (site_gates.py gates 3 and 13; 2026-10-08)
|
||||
|
||||
- One language list, `LANGS = [("hu", "Magyar"), ("en", "English")]`, with `GLOBE_LABEL`. Gate 3 normalises the
|
||||
whole `<details class="lang-globe">` (its targets and current mark differ per page). Gate 13 `check_globe`: exactly
|
||||
one globe; the label in the page's language; one `<a>` per `LANGS` entry in order with `lang`/`hreflang` equal to it;
|
||||
only the page's own language is `current`/`aria-current`; on twin pages each item points at that language's page
|
||||
(the page itself or its twin). NO_TWIN pages get the structure checks. Any leftover `class="lang-switch"` fails.
|
||||
- Decoys (each with its own failure line): `site/globe-wrong-page`, `globe-two-current`, `globe-missing-language`,
|
||||
`globe-wrong-order`, `leftover-text-switch`; `site/switch-wrong-twin` retired with the switch.
|
||||
|
||||
## gates — the website's two languages (site_gates.py gates 3, 13–18; 2026-10-08)
|
||||
|
||||
- `site_gates.py`: pages are registered as `TWINS` (Hungarian page → English twin) or by name in `NO_TWIN`
|
||||
|
||||
Reference in New Issue
Block a user