Page MenuHomePhabricator

Implement lc, lcfirst, uc, and ucfirst magic words in jqueryMsg
Closed, ResolvedPublic


Implement the casing magic words (lc, lcfirst, uc, and ucfirst) in jqueryMsg.

Version: 1.21.x
Severity: enhancement

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:22 AM
bzimport set Reference to bz44495.
matmarex added a subscriber: matmarex.

This isn't trivial, but should be approachable enough. The implementation should be similar to {{ns:}} and {{int:}} magic words.

Change 259015 had a related patch set uploaded (by Scimonster):
Add case-changing magic words to mw.jqueryMsg

Change 259015 merged by jenkins-bot:
Add case-changing magic words to mw.jqueryMsg

matmarex assigned this task to Scimonster.
matmarex removed a project: Patch-For-Review.
matmarex set Security to None.
Krinkle added a subscriber: Nikerabbit.

As pointed out by @Nikerabbit on Gerrit, these implementations need to be moved to mw.language. And in addition we should probably also export their localised implementations to JavaScript. Similar to what we do with convertGrammar already.

MediaWiki does not currently support Turkish case conversion in PHP code, either. Feel free to implement that for both PHP and JS..