MediaWiki
1.30.0
|
Reads MediaWiki JSON i18n files. More...
Public Member Functions | |
__construct ( $code=null) | |
parse ( $contents) | |
Returns a list of messages indexed by language code. More... | |
Protected Attributes | |
$code | |
Reads MediaWiki JSON i18n files.
Definition at line 13 of file JSONReader.php.
LocalisationUpdate\JSONReader::__construct | ( | $code = null | ) |
Definition at line 17 of file JSONReader.php.
LocalisationUpdate\JSONReader::parse | ( | $contents | ) |
Returns a list of messages indexed by language code.
Example array( 'en' => array( 'key' => 'value' ) );
string | $contents | File contents as a string. |
Implements LocalisationUpdate\Reader.
Definition at line 21 of file JSONReader.php.
References $messages, code, and FormatJson\decode().
|
protected |
Definition at line 15 of file JSONReader.php.