Arabic glossary pages: Arabic labels and related-term names, isolated English text

Merged
LU
2d ago
+41-12

Stacked on #1118, which already moves the English name under the Arabic heading, isolates it in the breadcrumb and pager, and sets references left to right. Please merge #1118 first; this PR's base then becomes rebrand-doors.

This PR covers the page-level points from the Arabic glossary team's review of the Doors preview. The content points (titles, credits, related-term lists inside definitions) were fixed in the Glossary sheet and reach the site through the glossary regeneration PR.

Changes on Arabic term pages

  • Related-term chips name the Arabic page they link to, without its bracketed English name (for example الصِّدق الدَّاخلي instead of "Internal validity"). Terms with no Arabic page keep their English name. Other languages are unchanged.
  • The breadcrumb (الرئيسية / المسرد), the other-languages row (اللغات الأخرى: الصينية، الإنجليزية …) and the pager (السابق / التالي) are in Arabic.
  • Contributor names are separated by the Arabic comma "،". Each name is isolated in <bdi>, so Latin names keep their own order in right-to-left text, and no name is split across lines.
  • Breadcrumb steps and links inside the entry are isolated (unicode-bidi), so English names and URLs keep their order and their brackets.

"Last updated" label

  • The Arabic glossary hub's foot reads "آخر تحديث:" followed by the date in digits (an English month name would otherwise sit inside the Arabic line).
  • A root i18n/ar.yaml replaces the theme's misspelt "اخر تحيث في" with "آخر تحديث:", as the team asked; themes/academic/ is untouched.

Checks

  • I built this branch with the regenerated glossary content (Glossary sheet as of 12 November) and looked at the DOI, External Validity and English External Validity pages. The English page is unchanged.
  • scripts/check_seo_html.py reports no failures.

Confirmed by the Arabic glossary team: the Arabic labels الرئيسية, المسرد, اللغات الأخرى, السابق and التالي, and the Arabic language names.

Screenshots

Before is this branch's starting point on rebrand/style-rounds; after is this branch. Both use the glossary content committed on the branches, not the 12 November regeneration, so the Arabic text is the same in both and only this PR's changes differ. Desktop shots: before above, after below. Phone shots: before left, after right.

External Validity (الصّدق الخارجي): top of the page: breadcrumb and other-languages row in Arabic

Desktop

External Validity, top, desktop: before and after

Phone

External Validity, top, phone: before and after

External Validity: related terms, credits and pager: Arabic chip names, Arabic commas between isolated names, السابق / التالي

Desktop

External Validity, related terms and credits, desktop: before and after

Phone

External Validity, related terms and credits, phone: before and after

DOI (معرّف الكائن الرّقمي): top of the page: a page whose definition mixes English names and URLs into Arabic text

Desktop

DOI, top, desktop: before and after

Phone

DOI, top, phone: before and after

Arabic glossary hub: "last updated" line

Arabic glossary hub, last updated: before and after

🤖 Generated with Claude Code


Summary by cubic

Updates Arabic glossary pages with Arabic navigation and related-term names, and isolates English text so names and links display correctly in right-to-left layouts.

  • Localizes the breadcrumb (including its screen-reader label), language list, and pager labels.
  • Separates contributor names with the Arabic comma and keeps each name on one line.
  • Shows the glossary hub's last-updated date in digits and corrects its Arabic label.