Skip to content

Fix Turkish glossary: sorting, language links, related terms, empty entries#666

Merged
LukasWallrich merged 3 commits intomasterfrom
fix/turkish-glossary-663
Feb 26, 2026
Merged

Fix Turkish glossary: sorting, language links, related terms, empty entries#666
LukasWallrich merged 3 commits intomasterfrom
fix/turkish-glossary-663

Conversation

@LukasWallrich
Copy link
Contributor

Fixes #663

What this fixes

✅ O/Ö sorting scrambled

Added a sort_key field to the generation script. For Turkish, special characters are mapped to ASCII equivalents that sort correctly (e.g. ö → oz, ç → cz) so Ö-terms appear between O and P in the TOC, not after Z. The template now sorts by sort_key in both desktop and mobile TOCs.

✅ "Also available in" links missing for same-named terms

BIZARRE, FORRT, Git, HARKing, etc. have the same title in Turkish and English (no [English] brackets). The language switcher now falls back to using the title directly when no brackets are found, so these terms correctly show their cross-language links.

✅ Related terms not linked

Turkish related_terms values use English term names (e.g. "Open access", "Paywall"). The template now falls back to the English glossary when no match is found in the current language, making these terms clickable.

✅ Entries without Turkish definitions appearing (WEIRD, Sherpa/RoMEO, OERs, etc.)

The generation script now skips entries with empty definitions for all languages. 11 existing empty-definition files were deleted (8 Turkish, 2 English, 1 Arabic).

✅ Turkish landing page updated

Text updated from the source GDoc: abbreviation style (örn.,), sentence punctuation, mentörlük spelling, en-dash in citation, and son-baskı versiyonu link text.

✅ Glossary regenerated

Script re-run to pick up all changes; 4 new Turkish entries added from the sheet, all files now include sort_key.

Not addressed in this PR

See issue comments for remaining items.

🤖 Generated with Claude Code

…pty entries

- Add sort_key to generation script so Turkish special chars (ö, ç, ğ,
  ı, ş, ü) sort correctly relative to their base letters instead of
  after 'z'; regenerate all glossary files with sort_key
- Fix language switcher to show "Also available in" for terms whose
  title is identical across languages (BIZARRE, FORRT, Git, HARKing,
  etc.) by falling back to the title itself when no [English] brackets
  are present
- Fix related terms in non-English glossaries to link to English entries
  when no translation-language page exists
- Skip entries with empty definitions in all languages; delete 11
  existing empty-definition files (8 Turkish, 2 English, 1 Arabic)
- Update Turkish landing page text from source GDoc (örn. abbreviation,
  sentence punctuation, mentörlük spelling, en-dash in citation,
  son-baskı versiyonu link text)

Closes #663

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LukasWallrich LukasWallrich requested a review from a team as a code owner February 25, 2026 17:44
@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

📝 Spell Check Results

Found 1 potential spelling issue(s) in this PR:

📄 content/glossary/english/open_material.md

Line Issue
17 Wit ==> With

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@LukasWallrich
Copy link
Contributor Author

LukasWallrich commented Feb 25, 2026

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-02-26 09:33:17 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

@github-actions
Copy link
Contributor

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

Copy link
Contributor

@richarddushime richarddushime left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Fingers Crossed

@LukasWallrich LukasWallrich merged commit d9bcb2e into master Feb 26, 2026
3 checks passed
@LukasWallrich LukasWallrich deleted the fix/turkish-glossary-663 branch February 26, 2026 20:29
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.

Issues in Turkish glossary

2 participants