<div dir="ltr">FYI<br><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Siebrand Mazeland</b><br>Date: Wed, Apr 2, 2014 at 12:09 AM<br>Subject: Implementation JSON based localisation format for MediaWiki nearly completed<br>
To: Wikimedia developers <<a href="mailto:wikitech-l@lists.wikimedia.org">wikitech-l@lists.wikimedia.org</a>><br><br><br><div dir="ltr"><div><div>Long! tl;dr is in the first two paragraphs.<br></div><div><br>With the merging of <a href="https://gerrit.wikimedia.org/r/#/c/122787/" target="_blank">https://gerrit.wikimedia.org/r/#/c/122787/</a> , probably the largest patch set for MediaWiki ever (+548314, -714438), MediaWiki core is now using JSON for localisation of interface messages, per a recently adopted RfC[1]. Thanks Krinkle/Timo for reviewing!<br>

<br>Please be aware that if you have open patch sets touching *.i18n.php 
messages files or MessagesXx.php files, you will have to update your patch sets to match the new file layout and format.<br><br></div>In December 2013, the first MediaWiki extensions have already been migrated to use the JSON format. Today, Antoine/hashar enabled a JSON linter on the jslint job that runs on many Gerrit repositories' patch sets.<br>

<br></div>Since last week I've started to migrate first all MediaWiki extensions that are used by WIkimedia to use JSON i18n. At this time, 1.23wmf20 has about 50% of its extensions using the updated format. Migration of two extensions is taking a little longer[2], but Matt Flaschen is helping with that, and I expect that to be resolved soon.<br>

<div><div><br></div><div>Migration of all extensions has been going very smoothly - it's about 80% done. With the help of reedy/Sam Reed, Raimond Spekking/Raymond, Niklas Laxström/Nikerabbit and Adam Wight, so far 427 patch sets related to this project have already been reviewed and merged[3], 40 await review and I expect some 90 more to be submitted for the project to be completed.<br>

<br></div><div>Thanks also go to Roan Kattouw/Catrope for implementation of parts of the RfC together with Niklas, to Niklas for rewriting LocalisationUpdate to support the JSON format and more, and all who helped draft the RfC, including James Forrester, Santhosh Thottingal, David Chan, Ed Sanders, Robert Thomas Moen, and those who deserve credit but I have forgotten to mention.<br>

</div><div><br></div><div>Once all migrations are complete, I'll be doing a full export from <a href="http://translatewiki.net" target="_blank">translatewiki.net</a>, which will cause a lot of JSON files to be touched, but will mostly update encoding (full UTF-8) and add a newline at enf of file where missing.<br>

</div><div><br></div><div>What's next? With this project almost completed, next order of business is creating an RfC on where to go with the data that now remains in the MessagesXx.php files (like date formatting, fallback, directionality, namespace names, special page names, etc.) and localisation for special page names, magic words and namespace names that are still being implemented using $wgExtensionMessagesDirs. Maybe this is something we could discuss and prototype during the hackathon. Please let me know if this is something you'd like to work on.<br>

</div><div><br></div><div>Again, thanks for the help, and apologies for the inconvenience these changes may have caused you!<br></div><div><br>[1] <a href="https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format" target="_blank">https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format</a><br>

[2] <a href="https://gerrit.wikimedia.org/r/#/q/status:open+topic:json-i18n-special,n,z" target="_blank">https://gerrit.wikimedia.org/r/#/q/status:open+topic:json-i18n-special,n,z</a><br>[3] <a href="https://gerrit.wikimedia.org/r/#/q/status:merged+topic:json-i18n,n,z" target="_blank">https://gerrit.wikimedia.org/r/#/q/status:merged+topic:json-i18n,n,z</a><br>

<br clear="all"><div>Cheers!<span class="HOEnZb"></span><br clear="all"></div></div></div></div></div><br>-- <br><div dir="ltr">Siebrand Mazeland<br>Kitano ICT<br><br>M: +31 6 50 69 1239<br>Skype: siebrand<br></div>
</div></div>