You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use declaration can be used to avoid typing the full module path to access a name:
Everything else on the page is correctly translated to Chinese.
Investigation
The English source sentence was rewritten in a29d45a (2025-11-17, "enum_use.md: avoid an uncommon term"), which invalidated the previous zh translation for that sentence.
The updated Chinese translation was merged in PR Update Chinese translations in zh.po #2025 (commit 4d0f115, 2026-07-06, "docs(zh): update translations for 2026-07 upstream sync"). The entry in po/zh.po matches the current source exactly.
I verified locally with the same toolchain as CI (mdbook 0.5.1 + mdbook-i18n-helpers 0.4.0):
MDBOOK_BOOK__LANGUAGE=zh mdbook build
The built custom_types/enum/enum_use.html renders the sentence correctly in Chinese ("use 声明可以用来避免为访问某个名称而手动输入完整的模块路径:").
So the translation is complete on master; the deployed site just appears to be built from a commit before 2026-07-06.
Problem
On the deployed Chinese translation, one sentence in the "enum → use" chapter renders in English:
https://doc.rust-lang.org/rust-by-example/zh/custom_types/enum/enum_use.html
Everything else on the page is correctly translated to Chinese.
Investigation
zh.po#2025 (commit 4d0f115, 2026-07-06, "docs(zh): update translations for 2026-07 upstream sync"). The entry inpo/zh.pomatches the current source exactly.The built
custom_types/enum/enum_use.htmlrenders the sentence correctly in Chinese ("use 声明可以用来避免为访问某个名称而手动输入完整的模块路径:").So the translation is complete on
master; the deployed site just appears to be built from a commit before 2026-07-06.