"NeilK" posted a comment on MediaWiki.r107556.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107556#c28809

Commit summary for MediaWiki.r107556:

Use jqueryMsg wikitext parser to parse interface messages at client side. 
Support for PLURAL in javascript.

NeilK's comment:

Oh, and here's the jsperf where I've been working on a hybrid strategy -- use 
regexes sometimes and use jQuery other times.

http://jsperf.com/jquerymsg-vs-msg-2

The thing is, this ruins much of the appeal of jQueryMsg, which is that you 
never need to escape things. The library already knows what kind of content you 
are targeting so it can use the appropriate escape. If we add a ".msgAttr" 
feature, then we can dispense with even more cruft when adding messages to 
attributes.

So possibly the entire jsperf effort was a bad idea, and all regex string 
hackery should die. This is why I haven't committed the changes yet.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to