Steps to replicate the issue (include links if applicable):
- View interwiki links for a page with a link to tokwiki (e.g. https://en.wikipedia.org/wiki/Main_Page)
What happens?: The link is rendered as "Toki pona"
What should have happened instead?: The link should render as "toki pona" (fully uncapitalized).
This is because https://gerrit.wikimedia.org/g/mediawiki/core/+/67d057590125e69ac4fdb3f76f4e64768604d5d7/includes/Skin/Skin.php#1248 unconditionally applies ucfirst to interlanguage link titles. Old discussion in T39705 (bugzilla ticket 37705)
It's ultimately because of languages like French which spell their language name in lowercase but expect it to be capitalized in particular contexts like a list of languages. That would suggest the problem really is that the capitalization is done with the current user locale's capitalization rules, and we need to change that to use the native capitalization rules. But is it really correct for toki pona to redefine ucfirst as a noop? Would that break the world?