Language

Translation queue, manual editing and committing

Four queue states plus a publishing tier; what visitors see is answered only by the owner table; translations can be edited by hand and become visible immediately after the edit, external intake is off by default, and conflicts are judged by revision.

Translation has three faces: the queue says what is missing, the projection says which version visitors see now, the confirmation says whether anyone has looked at it. Merging them into one status is the easiest mistake this kind of system makes.

The four states in the queue

  • Missing: this language does not have a single row of translation matching the current source version.
  • Pending: queued, but not landed yet.
  • Stale: there used to be a published translation, but the source text has changed and that version no longer matches.
  • Confirmed: there is a row matching the current source version, and someone has clicked confirm.

There is one more tier called publishing: the machine result has been generated and is landing in the owner table, but is not finished yet. Every count, to-do list and visibility judgment treats it as "not yet done" — it is not an "almost there".

What visitors see: ask only the owner table

The "published" status only says someone has clicked confirm; it does not say whether what visitors see now is a translation. Once the source text changes, the two become two different answers.

So judging "what does the visitor see in this field" means asking the module that owns that translation: the projection row exists, is non-empty, and its recorded source version equals the current one — coverage only holds when all three are true. If the records say confirmed while the owner says it is not visible, it goes to stale, and the action is to re-translate, not to "mark as covered".

This criterion shares one implementation across several surfaces: the to-do list, the gap readings, the public lists and the detail pages. The consequence of divergence is not ugly numbers, but seeing two answers on two backend pages.

Machine results are visible automatically; manual confirmation is no longer a switch

Translation landing goes through the content owner's write path. If the source version matches, it is visible to visitors — nobody needs to click "confirm" again for it to go live. Manual confirmation records a timestamp, used to answer "has anyone looked at this"; it no longer controls visibility.

The cost should be stated plainly: machine translations go straight to visitors. So we made it verifiable — in the queue you can filter by language, by status, and by "the translation still contains source-language characters", and the filtered rows can be edited directly.

Editable, and visitors see it immediately after the edit

Every row of translation can be edited by hand and committed. This path makes zero model calls: no re-translation, no paying again. After the edit, the visitor side gets the new content on the next read, with no need to republish the site.

The two actions are separate: re-queue (put this row back into the queue and wait for it to land) and re-run the model (actually spend another outbound call). Merging them into one button would make operators pay by mistake just to "have it translated again".

A row in the stale state cannot be edited directly — the source text has changed, and editing the translation would be patching a version that no longer matches. The correct action is re-translation.

External translation intake: a door left for "translating it ourselves"

Site translation does not have to go through the built-in model. The backend has an external translation intake, off by default, managed by a separate permission code; submitting translations requires another code, and the two do not imply each other.

The intake order is: read the group list → read a group's current fields and revision → submit the translation. On submission the server compares by source version + revision number before writing, so when two people edit the same group at the same time, one of them gets a 409 conflict instead of the later write silently overwriting the earlier one.

Before submission it goes through a quality criterion: placeholders, prescribed renderings, numbers, body structure. When it fails, the candidate is saved and audited but not committed, and the specific failing entries are returned to you — it does not pretend to succeed, and it does not throw your work away.

This path lets us translate an entire site without calling the model: the translations are written by people, and the system handles landing, projection and visibility.

An honest known boundary

Content custom fields are currently not per-language (the translation table has only three columns — title, body, summary — and custom fields live in the entity row). So on foreign-language pages, custom fields still hold the source-language value. That is the shape of the data layer, and we put it in the known limitations instead of hiding it.