Page MenuHomePhabricator

Add a suggestion for a backlink alphabet using CLDR
Closed, ResolvedPublic

Description

Write logic to test for CLDR alphabet being found and turn it into a whitespace-separated string.

Mockup

Backlinks_Page-mockup.png (1,440×1,091 px, 125 KB)
Backlinks_Variation-with-radiobuttons.png (716×795 px, 85 KB)

Open questions

  • Which UI works best?

Implementation

  • Get AlphabetsProvider from the service registry MediaWikiServices::getInstance()->getService( 'Cite.AlphabetsProvider' )
  • Use AlphabetsProvider::getIndexCharacters to get the Alphabet from CLDR
  • Use the content language as parameter
  • We then would probably want to forward that to the config page as JS

Outcome

Screenshot from 2025-02-06 15-21-23.png (967×855 px, 127 KB)

Event Timeline

Change #1117216 had a related patch set uploaded (by Svantje Lilienthal; author: Svantje Lilienthal):

[mediawiki/extensions/Cite@master] Check for cldr alphabet in cite community configuration

https://gerrit.wikimedia.org/r/1117216

WMDE-Fisch renamed this task from Check for CLDR alphabet to Add a suggestion for a backlink alphabet using CLDR.Feb 5 2025, 8:40 AM

Change #1117216 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Add backlink alphabet suggestion to CommunityConfiguration

https://gerrit.wikimedia.org/r/1117216

Change #1133392 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Cite@master] Fix double escaping on CommunityConfiguration Vue page

https://gerrit.wikimedia.org/r/1133392

Change #1133392 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Fix double escaping on CommunityConfiguration Vue page

https://gerrit.wikimedia.org/r/1133392