Page MenuHomePhabricator

Add ability to set category collation from the installer
Closed, DeclinedPublic5 Story Points

Description

The installer currently doesn't let you set the category collation for your wiki ($wgCategoryCollation). Under the "Advanced configuration" section of the installer, it should have a new option called "Category collation" which let's you choose between the different collation options. It should only present the UCA options if you have the PHP intl library installed (extension_loaded( 'intl' )), and if it is installed, suggest "UCA with numeric" (uca-default-u-kn) as the default choice. Otherwise, the default choice should be Uppercase (which is the current default in DefaultSettings.php).

Category collation:
🔘 Uppercase (case-insensitive sort by code point)
🔘 Numeric (same as uppercase, but with numeric sorting)
🔘 UCA (Unicode Collation Algorithm)
🔘 UCA with numeric

There should also be a "help" button with more information about collation. See https://www.mediawiki.org/wiki/Manual:$wgCategoryCollation for ideas.

Do no include language-specific options in this task. That will be handled in a follow-up task (probably T47611).

Event Timeline

kaldari created this task.Sep 20 2016, 10:24 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 20 2016, 10:24 PM
kaldari updated the task description. (Show Details)Sep 20 2016, 10:29 PM
kaldari updated the task description. (Show Details)
kaldari updated the task description. (Show Details)Sep 20 2016, 10:35 PM
kaldari updated the task description. (Show Details)Sep 20 2016, 11:16 PM
kaldari triaged this task as Low priority.Sep 20 2016, 11:19 PM
kaldari updated the task description. (Show Details)
kaldari updated the task description. (Show Details)Sep 21 2016, 1:30 AM
kaldari updated the task description. (Show Details)

@JeroenDeDauw, @demon: Any opinions on whether this is a good idea or not? Setting the category collation is generally something you want to set before you've actually created any pages, as otherwise you have to regenerate all the sort keys. My only hesitation is that maybe this is too obscure an option to include in the installer. Opinions?

Did you mean to ping someone else? I have no expertise or opinion on this.

kaldari updated the task description. (Show Details)Sep 22 2016, 4:22 AM
DannyH set the point value for this task to 5.Sep 22 2016, 5:36 PM
DannyH moved this task from To be estimated/discussed to Estimated on the Community-Tech board.

I think it is pretty obscure, I doubt many people know what "collation" means...can we just pick a good default in the Installer based on availability of intl and the language code without presenting it in the UI, and write it to LocalSettings?

kaldari closed this task as Declined.Dec 14 2016, 9:39 PM

Declining per Legoktm. Will look at just changing the default instead.

kaldari moved this task from Epic backlog to Archive on the Community-Tech board.Dec 14 2016, 9:39 PM

Er, we still need to modify the installer to *set* that default right? Like in LocalSettingsGenerator.php