Skip to content

Deployed zh translation is stale: enum/use chapter shows English sentence #2029

Description

@IAMLEIzZ

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions