Page MenuHomePhabricator

Messages with names starting with a capital letter appear in unexpected places in Special:AllMessages
Closed, ResolvedPublic

Description

The third message on https://en.wikipedia.org/wiki/Special:AllMessages is wikiLove.js, between the numbers and the messages starting with a. On the second and probably all other pages (https://en.wikipedia.org/w/index.php?title=Special:AllMessages&offset=Abusefilter-edit-builder-funcs-ccnorm) it is the first message. The same happens in de.wikipedia and probably other projects.

This has obviously something to do with the fact that in WikiLove/i18n/en.json (and the other localization files) WikiLove.js is defined with a capital letter.

Either at some place in core the first letter of a message key has to be transformed into lowercase, or (possible easier) that message should just be changed to wikiLove.js

Event Timeline

Schnark raised the priority of this task from to Needs Triage.
Schnark updated the task description. (Show Details)
Schnark subscribed.
Aklapper triaged this task as Lowest priority.Jan 8 2015, 1:43 PM

This seems like a core issue (specifically, the weird way WikiLove.js is at the top of the second and all later pages).

However, we can work around it by changing the name to wikiLove.js (due to the auto-capitalization of the initial character, MediaWiki:wikiLove.js and MediaWiki:WikiLove.js are the same anyway, just as https://en.wikipedia.org/wiki/MediaWiki:common.js and https://en.wikipedia.org/wiki/MediaWiki:Common.js are the same).

Looking at https://wikiapiary.com/wiki/Extension:WikiLove this behavior seems to be introduced with the conversion to JSON, http://cidian.jidutu.org/wiki/Special:%E6%89%80%E6%9C%89%E6%B6%88%E6%81%AF (which uses MW 1.22.6) is correct, while all wikis with 1.23 and newer show the described bug.

gerritbot subscribed.

Change 186584 had a related patch set uploaded (by Umherirrender):
Special:AllMessages: Ignore case of first letter when sorting

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

Patch-For-Review

Change 186584 merged by jenkins-bot:
Special:AllMessages: Ignore case of first letter when sorting

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