diff options
author | Brian Evans <grknight@gentoo.org> | 2018-11-20 10:51:06 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-11-20 10:51:06 -0500 |
commit | 1ea74fa59d8d1c6c12d20be6c8e7d5ac7f370fdb (patch) | |
tree | ad113bd05db878a61b503938c05fe046eca25ee0 /MLEB/LocalisationUpdate/reader/JSONReader.php | |
parent | LinkAttributes: Update to v0.2 (diff) | |
download | extensions-1ea74fa59d8d1c6c12d20be6c8e7d5ac7f370fdb.tar.gz extensions-1ea74fa59d8d1c6c12d20be6c8e7d5ac7f370fdb.tar.bz2 extensions-1ea74fa59d8d1c6c12d20be6c8e7d5ac7f370fdb.zip |
Update to MediaWikiLanguageExtensionBundle-2018.10
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/LocalisationUpdate/reader/JSONReader.php')
-rw-r--r-- | MLEB/LocalisationUpdate/reader/JSONReader.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/MLEB/LocalisationUpdate/reader/JSONReader.php b/MLEB/LocalisationUpdate/reader/JSONReader.php deleted file mode 100644 index 636168c8..00000000 --- a/MLEB/LocalisationUpdate/reader/JSONReader.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php -/** - * @file - * @author Niklas Laxström - * @license GPL-2.0+ - */ - -/** - * Reads MediaWiki JSON i18n files. - */ -class LU_JSONReader implements LU_Reader { - /// @var string Language tag - protected $code; - - public function __construct( $code = null ) { - $this->code = $code; - } - - public function parse( $contents ) { - $messages = FormatJson::decode( $contents, true ); - unset( $messages['@metadata'] ); - - if ( $this->code ) { - return array( $this->code => $messages ); - } - - // Assuming that the array is keyed by language codes - return $messages; - } -} |