Commit Graph

2 Commits

Author SHA1 Message Date
Claude
4124e034e2
A language left empty, and eleven places the rename never reached
Three things, all on the public half.

The translation pass. scripts/translate.py walked content/ only, so
data/ had never been touched by it: a tagline typed in Spanish stayed
Spanish forever, and so would a label. It now fills the languages
Gestión → Textos left empty, through the provider that already exists —
a label is prose with no markup, and translate_text already protects
«Viena Latina» as a term.

The translations go in their own file. data/ui.yaml is regenerated
wholesale from the override store on every save, so anything the
pipeline wrote into it would be destroyed by the next person to press
Guardar, and the members area cannot write back into the repository's
copy. Two files, each with one writer that owns it, and the split names
the provenance out loud.

Each entry records the Spanish it came from. Reword the Spanish and the
German stops matching its source and is redone; leave it alone and
nothing is recomputed — so a push that changed no label neither rewrites
the file nor loads a 237MB model to find that out.

t.html's order becomes override → automatic → shipped → Spanish. The
automatic file only ever holds a key whose Spanish was overridden, so it
beats the shipped word without displacing one nobody touched: rename
«Inicio» to «Escritorio» and the shipped «Start» stops being a
translation of anything. Verified in a real build — es Escritorio, de
Schreibtisch, pt-br Escrivaninha, from one override and one auto file.

The assistive labels. Five aria-labels and the breadcrumb's «Inicio»
were Spanish on the German and Portuguese pages too. A German
screen-reader user hearing «Secciones» is the same bug as a German menu
saying «Inicio», just quieter — and the breadcrumb is the one Google
renders in search results.

And a bug this found rather than caused. site-name.html exists so
Identidad can rename the site, and eleven places read .Site.Title or
.Site.Params.description directly, going round it. The human-facing
surfaces had been converted and the machine-facing ones had not, so a
rename updated every og: tag and left the old name in every JSON-LD
publisher, author and isPartOf, in llms.txt and in the .ics product id —
the home page emitted two blocks that openly disagreed. All eleven read
through the partials now; a guard fails on a twelfth, proved by putting
one back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-14 13:47:58 +00:00
Claude
8936f296ea
Textos: the words are data now, starting with the navigation
Renaming «Inicio» was six edits — base.html, home.py's section list,
config.yaml three times, an aria-label, and the breadcrumb schema — and
none of them reachable from Gestión. That is the thing Identidad exists
to end for the site's name, and it stopped before it reached the labels.

The mechanism, and the navigation through it. The rest of the ~560
strings follow in later commits; this one is the path proved end to end.

apps/board/strings/*.yaml is the catalogue, shipped in the image through
the Dockerfile's existing COPY. Only the differences are stored, which
is brand.FACTORY's rule and buys the same thing: a wording I improve
later improves for everyone who has not deliberately overridden it.

The `site.` prefix decides everything — one box or three, SQLite or a
commit of data/ui.yaml, this page load or the next pipeline run.

The fallback order is a judgement rather than an accident: an override
for the asked-for language, then the *shipped* word in that language,
then Spanish. Somebody who reworded only the Spanish has said nothing
about German, and showing a German reader Spanish would be reading an
intention into silence. Verified in a real build: with es overridden,
the Spanish menu says «Escritorio» and the German still says «Start».

The screen is generic — it iterates the catalogue, so extracting another
hundred strings costs nothing here. There is no field list in ui.py and
there must never be one.

Two guards are what make a 560-string extraction mechanical rather than
risky: every t("…") used must exist, and every key defined must be used.
A typo renders as nav.incio on a page; an orphan is a box in Gestión
that changes nothing. Both fail the suite instead. I proved all three
guards (including the one holding t.html to the catalogue) by
introducing the bug each describes and watching it go red.

Two things fixed on the way, both found by the extraction rather than
looked for: home.py and base.html held two copies of the same six words,
so a rename would have reached the members area and not the strip on the
public site; and memberbar.js hardcoded two more in a fingerprinted
script, the one surface no setting could ever reach.

No migration — `strings` is a new table, so CREATE TABLE IF NOT EXISTS
makes it, as activity and site arrived. The erase guard caught the new
members(id) reference by itself, which is the mechanism working.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-14 12:35:10 +00:00