[This task is out of scope for the "Improved Language Fallback (MUL)" initiative (see "Out of Scope" section in the epic T312097).]
Steps to reproduce:
- Look at the list of languages e.g on https://test.wikidata.org/wiki/Special:NewItem
What happens?
mul can be found at the very end of the list.
What should have happened instead?
mul should be found at the position defined by sorting by language code.
Notes:
- In T329626 we wanted the list of languages sorted alphabetically (including "multiple languages"). We decided to split this task out from the original task.
- Lucas started a patch https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/901555
Notes about the status quo:
The list is currently a union of MediaWikiContentLanguages and additional StaticContentLanguages
The list of term language codes is:
- all codes supported by MediaWiki core
MediaWiki ensures this list is sorted
only in production, this also includes agq, bag etc., via wmgExtraLanguageNames
*a hard-coded extra set of language codes: agq, bag, etc.
**this list is sorted in the source code
*mul, if enabled
So on production Wikidata, the second and third list item make no difference; on a default Wikibase, the third list item has no effect, but agq/bag/etc. will be after the regular language codes; on Test Wikidata, the second list item makes no difference (redundant), but the third list item adds an unsorted language code at the end.
Open questions:
- What Sorting do we want?
- Sarai wanted to sort the list alphabetically by the language name, originally.
- The dev team asks is sorting by language code would be good enough? It would have the advantage that it is only one order for all UI languages.
- Manuel sees some upsides for keeping the status quo: MUL is also sorted last in the termbox, so maybe this position is intuitive in the list as well.
Acceptance criteria:
- The languages are sorted alphabetically / by language code / as is (TBD).