User "Catrope" posted a comment on MediaWiki.r88513.
Full URL:
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:Code/MediaWiki/88513#c17424
Commit summary:
Adding mw.util.wikiScript + small fix in mediawiki.action.watch.ajax.js
* Moving wiki* functions together in mediawiki.util.js
* Adding Adding mw.util.wikiScript (like wfScript() in GlobalFunctions.php)
* Adding test suite for it
* Example to use it in mediawiki.action.watch.ajax.js
* (bug 29071) mediawiki.action.watch.ajax.js doesn't use uselang
Comment:
Yes, allmessages and parse handle it themselves, and other modules should not
be outputting i18ned messages ideally. Instead, they should output error codes
and any JS calling these modules should take care of i18ned error messages
itself.
I said this to Krinkle on IRC yesterday, and he pointed out this isn't quite
possible just yet, because we don't have support for
<nowiki>{{PAGENAME}}</nowiki> and <nowiki>[[Links|$1]]</nowiki> in JS messages
yet (but there's code in UploadWizard that supports this already and is slated
to be integrated with core).
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview