[Mediawiki-i18n] Sorting json files

2014-08-25 Thread Jon Robson
I want to use programatic scripts to work with the i18n files across MediaWiki. I wrote a script to allow me to add messages, and easily update message keys as well as scan for missing qqq codes [1] The problem I am running into is that an object is an unordered set of name/value pairs and in

Re: [Mediawiki-i18n] Bug in JS implementation of plural?

2014-08-25 Thread Roan Kattouw
On Mon, Aug 25, 2014 at 12:50 PM, Jon Robson jdlrob...@gmail.com wrote: I think I found a bug and wanted to check if I'm doing it wrong, or if it is indeed a bug and if so if there is somewhere I can track it? {{PLURAL:$1|$3 started this topic|A|0=B|2=C|3=$3}} mw.msg( flow-topic-participants,

Re: [Mediawiki-i18n] Bug in JS implementation of plural?

2014-08-25 Thread Jon Robson
I'm not sure when it got added but it's been documented and the given example [1] works in JS 'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs}}.' It just doesn't seem to work if I do 'Box has {{PLURAL:$1|one egg|$1 eggs|12=a dozen eggs belonging to $2}}.' I raised bug