Repository navigation
fix(website): correct mistranslated zh-CN catalog entries - #3856
Conversation
The zh-CN gettext catalog had not been reviewed. Terminology was taken from unrelated dictionary senses and several file names, version numbers and observed byte values were translated as if they were prose, so rendered pages showed content that did not match the English source or the recorded target identity. Rewrites 236 msgstr values across the catalog: - Terminology now uses one term per concept: mask -> 掩码, assembly -> 汇编, helper -> 辅助函数, source -> 源码, native -> 原生, oracle -> 校验基准, authenticator -> 身份验证器, agent -> 编程助手, and flag stays untranslated. - Literal values are preserved: MAIN.EXE, main/, Ghidra 12.1.x, 0x5b?, export.js, preload.js and npx rea-agents@latest setup are no longer translated. - Word-salad sentences are rewritten in natural Chinese, including "剂将它们转化为方程" -> "编程助手把它们转化为方程". - Step-marker separators damaged from "·" to "*" are restored. No msgid or msgctxt changes, so translations extract is not required and no entry becomes fuzzy or empty.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge, with one non-blocking translation error remaining in the TH04 details. SummaryCorrects Chinese terminology, prose, technical literals, and separators in the website translation catalog.
Reviews (2) · Last reviewed commit: "Update website/locales/zh-CN/messages.po" · Reviewed by Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
Thank you for the careful zh-CN catalog review, @kukinghan. The edits make technical terms consistent and preserve filenames, commands, versions, and observed byte values as literals across the translated pages. Welcome to REA. |
fix(website): correct mistranslated zh-CN catalog entries
The zh-CN gettext catalog had not been reviewed. Terminology was taken from
unrelated dictionary senses and several file names, version numbers and
observed byte values were translated as if they were prose, so rendered pages
showed content that did not match the English source or the recorded target
identity.
Rewrites 236 msgstr values across the catalog:
helper -> 辅助函数, source -> 源码, native -> 原生, oracle -> 校验基准,
authenticator -> 身份验证器, agent -> 编程助手, and flag stays untranslated.
export.js, preload.js and npx rea-agents@latest setup are no longer
translated.
"剂将它们转化为方程" -> "编程助手把它们转化为方程".
No msgid or msgctxt changes, so translations extract is not required and no
entry becomes fuzzy or empty.
Summary
No issue is linked: this is a review of the shipped zh-CN catalog rather than
a reported defect, and no tracking issue exists for it.
The zh-CN gettext catalog had not been reviewed. Terminology was taken from
unrelated dictionary senses and several file names, version numbers and observed
byte values were translated as if they were prose, so rendered pages showed
content that did not match the English source or the recorded target identity.
Problem and expected behavior
locales/zh-CN/messages.pohad not been reviewed. Two classes of defect werepresent.
Terminology was resolved from unrelated dictionary senses. A CTF page rendered
"读一个面具" for "Read one mask", "复制CTF装配" for "Copy CTF assembly",
"一个角色改变了" for "One character changed", and "剂将它们转化为方程" for
"The agent turns them into equations". The agent — the reader's AI coding
assistant — was rendered as 代理, 智能体, 剂, and in nine places left
untranslated in English inside Chinese prose.
Separately, literal values were translated as if they were prose, so the
rendered page contradicted the English source and the recorded target
identity:
Ghidra 12.1.xGhidra12.1。xGhidra 12.1.x0x5b? 0x5c?0x5b?0x5c?0x5b? 0x5c?MAIN.EXE主要。EXE文件MAIN.EXEmain/{ph0}主要/{ph0}main/{ph0}npx rea-agents@latest setupnpx rea-代理@最新设置site:rea.tools/zh-CNshould now show the same technical content as theEnglish edition, with one term per concept and with filenames, commands,
version numbers and observed values intact.
Change and scope
Rewrites 236 msgstr values. Four groups:
affected page: mask → 掩码, assembly → 汇编, helper → 辅助函数,
source → 源码, native → 原生, oracle → 校验基准, authenticator (Aegis) →
身份验证器, agent → 编程助手, flag stays untranslated, binary → 二进制,
closure → 闭包函数, figures → 图示, challenge → 挑战/题目.
oracleandauthenticatorpreviously both rendered 验证器; they are nowdistinct.
numbers, hex literals and counts are no longer translated.
orphaned comma splices, dangling infinitives and translated punctuation
fixed.
·to*restored.investigationstays 调查 site-wide: it is already consistent across everypage including hand-reviewed ones, so renaming it was out of scope.
Intentionally not included: the 244 obsolete (
#~) entries still containtranslated file names and commands. They never render, so they are left for a
separate catalog cleanup rather than mixed into this change.
Contract and boundary impact
msgstronly. No English source,
msgctxt, or source reference changed.provider or capability, and no target execution, injection, mutation or
protection recovery.
REA analysis behaviour is touched.
docs/public/product-catalog.json), package, or installation impact: not applicable.messages.pois the authored catalog;docs/public/product-catalog.jsonandskills/are unrelated generated outputs and were not touched.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
For evidence-bearing changes:
Evidence and regression coverage
/zh-CN/showcase/ctf/rendered读一个面具,复制CTF装配and一个角色改变了;/zh-CN/guides/native/rendered但需要现有的Ghidra12.1。x安装. After, each renders the corrected term.git diffshows the before/after pair for every changed entry.website.py checkgate did not complete here. It validatedthe catalogs and shared HTML (
Checked 1728 source messages for 19 translation catalogs./Checked shared HTML (0 pages changed).) and thenstopped at sharing-image generation, which needs native Cairo
(
Cannot prepare sharing image: No module named 'cairosvg'on first run;cairosvgthen installed but cannot loadlibcairo-2.dll). That step isenvironment-dependent and unrelated to this change.
/or/rea/root, inlight or dark theme, or at mobile width.
terminology set is internally consistent and each change was reviewed
against its English msgid, but stylistic quality is unverified beyond that.
review, not an exhaustive line-by-line read of all 1728 entries. Entries
outside the reported set are unreviewed.
Validation performed
Commands below were run against the edited file; results are observed.
python scripts/website.py translations check --language zh-CN—Checked 1728 source messages for 19 translation catalogs./zh-CN: 1728/1728 translated; 0 missing or fuzzy(exit 0). This is theproject gate that could not be run before;
polibis now installed, so itran.
python scripts/website.py check— partial pass, then exit 1 at sharing-imagegeneration. Observed output:
Checked 1728 source messages for 19 translation catalogs./Prepared 380 reading pages in 20 languages./Checked shared HTML (0 pages changed).All translation and HTML stagespassed; the failure is the Cairo-dependent image step, not this change.
both times; every quoted string parsed without error.
{phN}and named placeholders, multisetcompared against the original msgstr) — 0 failures.
msgid/msgctxtdrift against the pre-change file — 0 entries changed.changed; the diff is 1:1 line replacement (267 insertions, 267 deletions).
装配, 本机, 质询, 帮助程序, 陈列柜, 二元, 佣工, 智能体, 剂将) — 0 hits.
agentremaining in any msgstr — 1, and it iscorrect:
…选择 Agent 模式…is a product mode name (Windsurf / DevinDesktop / VS Code / GitHub Copilot), not the assistant noun.
Not run:
python scripts/website.py serveand any browser inspection.Compatibility, safety, and release
code changed.
Author readiness
Human owner:
Before merge
type(scope): outcome.