Language

Translation provenance and staleness determination

The state in the ledger is not the text the visitor sees: how the source version is computed, who has the right to stamp that string, and why staleness is a departure rather than showing the old translation.

The hardest thing to explain about a multilingual site is that "this translation is stored in the store" and "the visitor currently sees it" are not the same question. This page says how the two answers are separated, and what each cell the operator sees is actually saying after the separation.

The ledger is not the fact. The assistant side's translation records have states: pending, draft, projected, stale, failed, plus a "human reviewed" timestamp. But the state says someone clicked confirm; it does not say whether what the visitor sees now is the translation. The moment the source text changes, the two part ways: the ledger still says "confirmed", while the screen should actually fall back to the original. So no counts, to-do lists or visibility judgments may read that ledger directly — the authority is in the table of the module that owns this translation, and the read side computes the source version once on the spot and compares.

The source version is a recomputable string, not a timestamp. The content's "current version" takes the pair "published revision's moment + revision number"; when there is no published revision it is an explicit empty shape. Why not use "last updated time": operations like publishing, moving to the recycle bin and restoring only advance that column without producing a new revision, and using it as the criterion would count "republishing without changing a word" as "source changed", leading the operator to pay another outbound call. This criterion exists in exactly one place in the whole site, shared by the gap reading and the write side; otherwise two backend pages would give two answers for the same content.

The string stamped on the translation can only be written by the side that lands the translation. Only when the text really changed is "the current source version" stamped; when not one character changed, the original string is kept. The bad way in reverse is concrete: an operator edits a link, or the backend form submits the whole mapping back unchanged; if the write side blindly stamps a new mark, it launders a translation that already no longer matches its source into "fresh", and that column from then on stops answering "does this row still recognize its source".

Staleness is not a display state; it is a departure. For projections like carousels and announcements where "a translation row replaces the shared row", when the source changes two things must happen at once: this row no longer displays, and the original shared row is let back in. Doing only the first half has a consequence harder to notice than showing the old translation — that spot disappears from the page entirely.

A published snapshot also counts as a read path. The snapshot filters out mismatched translation rows at the moment it records, so "reading by watermark" and "reading live" necessarily give the same answer; what a rollback restores is "the copy visitors should have seen then", not the one stored in the store today.

Empty values on old data are deliberate. For translations stored before this criterion went live, that string is empty — nobody recorded which source version they correspond to. The cost must be stated up front: after the upgrade these are all not displayed until re-translated once. Guessing the empty value as "matches the current version" would put a batch of text nobody checked directly in front of visitors.

How to read that cell on the screen. The state buckets in the queue and lists satisfy one conservation: missing + pending + stale + confirmed = translatable total. Inside "confirmed" there is also a subset "not reviewed" (machine projection succeeded, but nobody signed at the confirmation entry); it does not occupy a separate bucket — the day it is merged in, the equation above breaks. There is also a column that counts specifically "rows where the translation still keeps source-language characters"; that is a dimension orthogonal to state: it does not delete translations, change state or take part in the equation; it only draws out, for people to see, the few rows that should be re-translated.

The stale row is not given editing. What you can do is "rebuild this group against the current source", sending it back into the queue with the new source version; the edit and commit entry for the old version is closed. The reason is blunt: the source has changed, and committing a translation made against old text onto the new source is a silent mismatch that looks like success.

Why the model temperature is locked at 0. The same source text should translate into the same sentence today and tomorrow; otherwise "is this translation correct" has no checkable object, and re-translation pays again. This and the "visitor answer" one being locked at 0 are the two ends of the same chain: that one's output enters the knowledge-base candidates, for people to review, then published as knowledge by a person.