Skip to content

docs: translate maturity assessment page to Chinese - #564

Merged
imbajin merged 3 commits into
apache:masterfrom
n24q02m:docs/cn-maturity-page-and-table-cleanup
Nov 16, 2026
Merged

imbajin merged 3 commits into
apache:masterfrom
n24q02m:docs/cn-maturity-page-and-table-cleanup

Conversation

@n24q02m

@n24q02m n24q02m commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Purpose of the PR

No issue; the Chinese site is missing a page the English site has.

What changed

  • Add content/cn/community/maturity.md, a Chinese translation of the Apache maturity assessment that already lives at content/en/community/maturity.md (moved there in feat: generate maturity to frontend #440). Same structure, same table IDs, same links, with internal links pointing to /cn/docs/... and /cn/community/....
  • Clean up the English page: every table row was padded with non-breaking spaces (966 characters across 18 lines), which inflated the source and made the tables awkward to diff or edit. They are now plain spaces.
  • Add the maturity page to HREFLANG_FALLBACKS in scripts/versioning.py and dist/validate-site-output.py so multi-version builds where older branches only carry the English maturity assessment resolve the fallback cleanly.

How verified

  • hugo 0.168.0 extended (pinned in hugo.yaml) with go 1.27.3 passes strict build (--panicOnWarning --printPathWarnings --gc --minify); both /community/maturity/ and /cn/community/maturity/ render.
  • scripts/validate-links.sh and pytest (290 passed, 1 skipped) pass.
  • grep confirms no U+00A0 remains in either page.

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: no. Summary: The Chinese page matches the English source row for row, and the English edit is whitespace-only. Three leftovers still send readers to English docs or mark the page as untranslated.

Comment thread content/cn/community/maturity.md Resolved
Comment thread content/cn/community/maturity.md Resolved
Comment thread content/cn/community/maturity.md Resolved

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: no. Score: 9/10. Summary: content/cn/community/maturity.md matches the English page row for row, and the English edit only replaces padding with plain spaces. The Chinese doc links, the 英文版 label and the HREFLANG_FALLBACKS entries from the earlier review are fixed at this head.

@imbajin imbajin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Score: 8.0/10 · Confidence: medium

Blocking: no

Summary

The Chinese community entry still opens the English assessment.

Evidence

The unchanged absolute link renders to the English URL on the live site; the PR changes the label but retains that link. The landing Markdown rendering path does not localize the URL.

Validation notes

The PR-head local build could not run with the installed older Hugo; historical multi-version assembly was inspected statically.

Comment thread data/landing/community/cn.yaml Resolved
- Use /cn/community/maturity/ in data/landing/community/cn.yaml.

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: no. Score: 9/10. Summary: content/cn/community/maturity.md translates all 34 rows of the English assessment and points every internal link at its /cn/ page, and the English edit only replaces non-breaking spaces. The PR description says it adds HREFLANG_FALLBACKS entries, but the diff removes the community/maturity/index.html entries, which is correct now that the Chinese page exists.

@imbajin
imbajin merged commit 446b4f3 into apache:master Nov 16, 2026
7 checks passed
@n24q02m
n24q02m deleted the docs/cn-maturity-page-and-table-cleanup branch November 17, 2026 13:44
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.

3 participants