On Mon, Jan 2, 2012 at 11:01 AM, Roan Kattouw roan.kattouw@gmail.comwrote:
On Mon, Jan 2, 2012 at 3:56 PM, Santhosh Thottingal santhosh.thottingal@gmail.com wrote:
[1] https://www.mediawiki.org/wiki/Special:Code/MediaWiki/107556
In that CR thread, Neil suggested moving message parsing to the server side, and I'm running with it. I'll play with it today and tomorrow and see if I can get it to work. If it works nicely, the JS code required to support PLURAL etc. will be minimal, so I'll integrate it into the main mw.msg library and this whole problem just won't exist anymore.
I would rather have real, working client-side processing support; among other things for offline behavior it's nice not to have to rely on preprocessing. (If the preprocessing is done during message loading, then probably less of a deal for MediaWiki itself, which still relies on a server to load up the messages in the first place.)
However we also use client-side JS localization for our Android application (soon to migrate to other platforms), which uses a pruned-down mediawiki.js for its localization framework. Having plural work there would be a plus.
-- brion