Add action=query&meta=languageinfo API module
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Thu, 16 May 2019 09:42:05 +0000 (11:42 +0200)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 3 Jun 2019 10:46:03 +0000 (12:46 +0200)
commit67b3cdc0047f43bc9ec6a7c367ddb3c3cdf5d7e4
tree9bfb1dbfed27c613ca3210640c69381db1258831
parenta7551dc3d0050a7890ce3c6864af0bcddfa96074
Add action=query&meta=languageinfo API module

This API module can be used to get information about all the languages
supported by this MediaWiki installation. Since parts of this
information, such as the fallback chain, are expensive to retrieve if
the localization cache is not populated, we apply continuation if the
request is taking too long (suggested by Anomie in T217239#4994301); we
don’t expect this to happen in Wikimedia production, though.

Bug: T74153
Bug: T220415
Change-Id: Ic66991cd85ed4439a47bfb1412dbe24c23bd9819
autoload.php
includes/api/ApiQuery.php
includes/api/ApiQueryLanguageinfo.php [new file with mode: 0644]
includes/api/i18n/en.json
includes/api/i18n/qqq.json
tests/phpunit/includes/api/ApiQueryLanguageinfoTest.php [new file with mode: 0644]