Remove I18n php shim and bump version

Note: This is breaking for MW 1.22.x and earlier.

Bug:T168353
Change-Id: I96915c8543e1e02c537b69dc895da170332b9e50
This commit is contained in:
Karsten Hoffmeyer 2017-07-19 10:41:55 +02:00
parent 1ec95f38c0
commit 86b41e3fa3
3 changed files with 11 additions and 38 deletions

View File

@ -6,6 +6,16 @@ editing mulitple pages at once.
This file documents the development changes.
### Version 8.3.0
Released on 2017-07-19
Compatible with MediaWiki 1.23 and later
- Removed I18n php shim
- Provide translations done by the community of translatewiki.net
### Version 8.2.0
Released on 2016-12-08

View File

@ -1,36 +0,0 @@
<?php
/**
* This is a backwards-compatibility shim, generated by:
* https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
*
* Beginning with MediaWiki 1.23, translation strings are stored in json files,
* and the EXTENSION.i18n.php file only exists to provide compatibility with
* older releases of MediaWiki. For more information about this migration, see:
* https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
*
* This shim maintains compatibility back to MediaWiki 1.17.
*/
$messages = array();
if ( !function_exists( 'wfJsonI18nShime651553115efb814' ) ) {
function wfJsonI18nShime651553115efb814( $cache, $code, &$cachedData ) {
$codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] );
foreach ( $codeSequence as $csCode ) {
$fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
if ( is_readable( $fileName ) ) {
$data = FormatJson::decode( file_get_contents( $fileName ), true );
foreach ( array_keys( $data ) as $key ) {
if ( $key === '' || $key[0] === '@' ) {
unset( $data[$key] );
}
}
$cachedData['messages'] = array_merge( $data, $cachedData['messages'] );
}
$cachedData['deps'][] = new FileDependency( $fileName );
}
return true;
}
$GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 'wfJsonI18nShime651553115efb814';
}

View File

@ -28,7 +28,7 @@ $wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'MassEditRegex',
'namemsg' => 'masseditregex-extensionname',
'version' => '8.2.0',
'version' => '8.3.0',
'author' => array(
'Adam Nielsen',
'...'
@ -40,7 +40,6 @@ $wgExtensionCredits['specialpage'][] = array(
// Register extension messages and other localisation
$wgMessagesDirs['MassEditRegex'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['MassEditRegex'] = __DIR__ . '/MassEditRegex.i18n.php';
$wgExtensionMessagesFiles['MassEditRegexAlias'] = __DIR__ . '/MassEditRegex.alias.php';
// Register extension classes