jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/369531 )
Change subject: Remove I18n php shim and bump version ...................................................................... Remove I18n php shim and bump version Note: This is breaking for MW 1.22.x and earlier. Bug:T168353 Change-Id: I13da638f2475264735c449d0efb3c357dab31401 --- D SemanticPageSeries.i18n.php M SemanticPageSeries.php 2 files changed, 2 insertions(+), 38 deletions(-) Approvals: Umherirrender: Looks good to me, approved jenkins-bot: Verified diff --git a/SemanticPageSeries.i18n.php b/SemanticPageSeries.i18n.php deleted file mode 100644 index aa04fff..0000000 --- a/SemanticPageSeries.i18n.php +++ /dev/null @@ -1,35 +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( 'wfJsonI18nShima687f0ed3ad61483' ) ) { - function wfJsonI18nShima687f0ed3ad61483( $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'][] = 'wfJsonI18nShima687f0ed3ad61483'; -} diff --git a/SemanticPageSeries.php b/SemanticPageSeries.php index e7e7398..302aa7b 100644 --- a/SemanticPageSeries.php +++ b/SemanticPageSeries.php @@ -30,7 +30,7 @@ } // Set the extension's version -define( 'SPS_VERSION', '0.3.0' ); +define( 'SPS_VERSION', '0.4.0' ); // register the extension $wgExtensionCredits['semantic'][] = array( @@ -48,7 +48,6 @@ // register message files $wgMessagesDirs['SemanticPageSeries'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['SemanticPageSeries'] = __DIR__ . '/SemanticPageSeries.i18n.php'; $wgExtensionMessagesFiles['SemanticPageSeriesMagic'] = __DIR__ . '/SemanticPageSeries.magic.php'; $wgExtensionMessagesFiles['SemanticPageSeriesAlias'] = __DIR__ . '/SemanticPageSeries.alias.php'; @@ -64,7 +63,7 @@ $wgAutoloadClasses['SPSPageIterator'] = __DIR__ . '/includes/iterators/SPSPageIterator.php'; // register Special page -$wgSpecialPages['SeriesEdit'] = 'SPSSpecialSeriesEdit'; # Tell MediaWiki about the new special page and its class name +$wgSpecialPages['SeriesEdit'] = 'SPSSpecialSeriesEdit'; // Tell MediaWiki about the new special page and its class name // register hook handlers -- To view, visit https://gerrit.wikimedia.org/r/369531 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I13da638f2475264735c449d0efb3c357dab31401 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticPageSeries Gerrit-Branch: master Gerrit-Owner: Kghbln <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: Umherirrender <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
