API: Clean up and internationalize pretty-printed output
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 17 Sep 2014 19:43:31 +0000 (15:43 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 13 Oct 2014 23:17:37 +0000 (16:17 -0700)
commitd25cb99202789448c1074bbf50c037f16e4391b5
tree6d030666ea2ffc6061be06de50a4251ea2a616c2
parentaf0121f9c83b52ed5ba1eba082494ac7cd9c97b6
API: Clean up and internationalize pretty-printed output

The syntax highlighting applied to the XML format is not all that great,
and applying it to other formats is just wrong. Instead of doing it
ourselves, let's just add a hook and let Extension:SyntaxHighlight_GeSHi
do it for us.

But for that to work, we have to add RL support to the pretty-printed
output, which means OutputPage. At the same time, lets internationalize
the header.

Bug: 65403
Change-Id: I04b1a3842abdf1fb360c54aa7164fc7cd2e50f4b
20 files changed:
RELEASE-NOTES-1.25
docs/hooks.txt
includes/api/ApiFormatBase.php
includes/api/ApiFormatDbg.php
includes/api/ApiFormatDump.php
includes/api/ApiFormatJson.php
includes/api/ApiFormatNone.php
includes/api/ApiFormatPhp.php
includes/api/ApiFormatRaw.php
includes/api/ApiFormatTxt.php
includes/api/ApiFormatWddx.php
includes/api/ApiFormatXml.php
includes/api/ApiFormatYaml.php
includes/api/ApiHelp.php
includes/api/ApiMain.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki/mediawiki.apipretty.css [new file with mode: 0644]
tests/phpunit/includes/api/format/ApiFormatTestBase.php