Skip to content

Glossary: Chinese term pages and the Arabic hub label themselves in their language - #1159

Open
LukasWallrich wants to merge 7 commits into
rebrand-doorsfrom
hc/glossary-labels
Open

LukasWallrich wants to merge 7 commits into
rebrand-doorsfrom
hc/glossary-labels

Conversation

@LukasWallrich

@LukasWallrich LukasWallrich commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Visitors to the Chinese glossary no longer meet English labels on each term page. The breadcrumb now reads 首页 / 术语表, the language links 其他语言版本: 阿拉伯语 英语 德语 土耳其语, and the pager 上一条 / 下一条. The Arabic term pages already had all of these. The Arabic glossary hub now has the heading المسرد and the breadcrumb الرئيسية / المسرد. Before, both were English ("Glossary", "Home"), and in a right-to-left line they read backwards as "Glossary / Home". The hubs' search count ("12 of 260 terms") is now in each glossary's language too, and the Chinese hub's "Last updated on …" line reads 最后更新: 2026-11-03.

  • layouts/glossary/single.html: the Chinese dictionary gains the labels the Arabic one already had.
  • layouts/partials/section_pager.html: Chinese Previous/Next, beside the Arabic ones.
  • layouts/glossary/list.html: the Arabic hub's name and every hub's count format. The Arabic _index.md is titled "Glossary" and ships from main in the data artifact (as the template's existing comment on the lede explains), so the name is set in the template.
  • layouts/partials/doors/crumbs.html: an optional home label for the first crumb. Every other page is unchanged.
  • assets/js/doors/site.js: the count reads its format from the page.
  • The filter beside each term ("1 term", "No matching terms.", "Clear") now speaks the page's language in all five glossaries: 1 个术语 / 没有匹配的术语。 / 清除, and the hub's existing wording for Arabic, German and Turkish. The strings come from the dictionary in layouts/glossary/single.html, through data attributes on the filter (layouts/partials/doors/glossary_terms.html).

At 390 px, a Chinese term page: breadcrumb and language links

Before:
before, 390 px

After:
after, 390 px

At 1440 px

Before:
before, 1440 px

After:
after, 1440 px

The Chinese pager, 390 px

Before:
before, 390 px

After:
after, 390 px

The Chinese pager, 1440 px

Before:
before, 1440 px

After:
after, 1440 px

The filter beside a Chinese term, searching "RIOT", 1440 px (on phones the same list sits in a "Find another term" disclosure)

Before:
before, 1440 px

After:
after, 1440 px

The Arabic hub's heading, 390 px

Before:
before, 390 px

After:
after, 390 px

The Arabic hub's heading, 1440 px

Before:
before, 1440 px

After:
after, 1440 px

Both glossary reviewers in the hillclimb round raised these (DESIGN.md §10).

Decisions to review

  • The new Chinese and Arabic wording needs a native speaker's check: 上一条 / 下一条, 其他语言版本, 首页, 导航路径 (the breadcrumb's accessible name, now also on the Chinese hub), 、 as the Chinese list separator, 最后更新:, "%s من %s مصطلحًا" for the Arabic count, and the term-page filter's Arabic plural forms (مصطلح واحد, مصطلحان, %d مصطلحات, %d مصطلحًا, %d مصطلح). المسرد and الرئيسية are the words the Arabic term pages already use.
  • The Arabic hub's browser title stays "Glossary | FORRT". Changing it means changing content/glossary/arabic/_index.md on main, because the data artifact ships that file from main.
  • Not done: marking English reference entries with lang="en" on Arabic and Chinese pages. References can be in any language, so a blanket attribute could be wrong.

Checks

  • python3 scripts/check_seo_html.py <build>: passed.
  • python3 -m unittest discover -s scripts/tests: 145 tests passed.
  • python3 scripts/rebrand/compare_builds.py against a build of rebrand-doors: OK (no SEO tag changes).
  • Hub search counts checked in a browser: "235 من 260 مصطلحًا", "14 / 262 个术语", "9 of 260 terms".

🤖 Generated with Claude Code


Summary by cubic

Chinese glossary term pages replace English breadcrumbs, language links, pager labels, and filter messages with Chinese; the Chinese hub’s last-updated label is localized too. The Arabic hub now uses Arabic for its heading and breadcrumb, and hub search counts use each hub’s language. Term filters are localized in all five languages, with Arabic plural forms selected by count. The Arabic hub’s browser title is unchanged.

Written for commit 8aba530. Summary will update on new commits.

View guided diff Turn on auto-fix

…heir language

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LukasWallrich
LukasWallrich requested a review from a team as a code owner November 16, 2026 12:04
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 6 changed file(s)! 🎉

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread layouts/glossary/single.html Resolved
Comment thread layouts/partials/doors/crumbs.html Resolved
LukasWallrich and others added 3 commits November 16, 2026 12:18
…heir language

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he page's language

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 3 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread layouts/glossary/single.html Resolved
…number

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LukasWallrich and others added 2 commits November 24, 2026 21:30
rebrand-doors already labels the Chinese, German and Turkish pagers, so its section_pager.html is kept; the hub keeps this PR's labels with the base's shorter English 'About' wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

👍 All content rules passed (WebP images/references and canonical doi.org links).

This branch has not been deployed

No deployments
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.

1 participant