Skip to content

docs: add zh_CN localization#35

Open
ChenMiaoi wants to merge 4 commits into
erofs:mainfrom
ChenMiaoi:codex/zh-cn-localization
Open

docs: add zh_CN localization#35
ChenMiaoi wants to merge 4 commits into
erofs:mainfrom
ChenMiaoi:codex/zh-cn-localization

Conversation

@ChenMiaoi

@ChenMiaoi ChenMiaoi commented Jul 5, 2026

Copy link
Copy Markdown

Summary

Add initial zh_CN localization support for the EROFS documentation.

This includes:

  • zh_CN gettext catalogs and Sphinx i18n configuration
  • Makefile targets for gettext, PO updates, English HTML, and Chinese HTML
  • a header language switcher that preserves the existing Sphinx Book Theme button layout
  • CI and Read the Docs changes to build both English and Chinese HTML outputs
  • fixes for localized homepage CTA rendering and existing roadmap anchors

Validation

  • make html-en SPHINXOPTS='-W --keep-going'
  • make html-zh SPHINXOPTS='-W --keep-going'
  • simulated Read the Docs root layout with English at the site root and Chinese under html_zh/

Assisted-by: OpenAI:GPT-5.5 [translation]

ChenMiaoi added 4 commits July 5, 2026 12:29
Signed-off-by: Chen Miao <chenmiao.ku@gmail.com>
Signed-off-by: Chen Miao <chenmiao.ku@gmail.com>
Signed-off-by: Chen Miao <chenmiao.ku@gmail.com>
Signed-off-by: Chen Miao <chenmiao.ku@gmail.com>
@ChenMiaoi ChenMiaoi marked this pull request as ready for review July 5, 2026 04:38
@hsiangkao

Copy link
Copy Markdown
Member

hi @ChenMiaoi , could you take a look at matrix channel first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants