Kghbln has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/365560 )
Change subject: Do some maintenance * Remove I18n shim * Provide license lable to "Special:Version" * Bump version * Update links ...................................................................... Do some maintenance * Remove I18n shim * Provide license lable to "Special:Version" * Bump version * Update links Note: Breaks compatibility with MediaWiki 1.22.x and lower Bug:T123943 Bug:T168353 Change-Id: I8bd2baccdd446ab0702be130b4f0dccc12ffad07 --- D HashTables.i18n.php M HashTables.php 2 files changed, 10 insertions(+), 45 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HashTables refs/changes/60/365560/1 diff --git a/HashTables.i18n.php b/HashTables.i18n.php deleted file mode 100644 index c463931..0000000 --- a/HashTables.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( 'wfJsonI18nShim55f11d3fdee3037a' ) ) { - function wfJsonI18nShim55f11d3fdee3037a( $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'][] = 'wfJsonI18nShim55f11d3fdee3037a'; -} diff --git a/HashTables.php b/HashTables.php index c5a180d..6fc969d 100644 --- a/HashTables.php +++ b/HashTables.php @@ -7,9 +7,9 @@ * @author: Daniel Werner < danwe...@web.de > * @license: ISC license * - * Documentation: http://www.mediawiki.org/wiki/Extension:HashTables - * Support: http://www.mediawiki.org/wiki/Extension_talk:HashTables - * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/HashTables + * Documentation: https://www.mediawiki.org/wiki/Extension:HashTables + * Support: https://www.mediawiki.org/wiki/Extension_talk:HashTables + * Source code: https://gerrit.wikimedia.org/r/p/mediawiki/extensions/HashTables * * @file HashTables.php * @ingroup HashTables @@ -24,17 +24,17 @@ if( ! defined( 'MEDIAWIKI' ) ) { die(); } $wgExtensionCredits['parserhook'][] = array( - 'path' => __FILE__, - 'name' => 'HashTables', + 'path' => __FILE__, + 'name' => 'HashTables', 'descriptionmsg' => 'hashtables-desc', - 'version' => ExtHashTables::VERSION, - 'author' => '[http://www.mediawiki.org/wiki/User:Danwe Daniel Werner]', - 'url' => 'https://www.mediawiki.org/wiki/Extension:HashTables', + 'version' => ExtHashTables::VERSION, + 'author' => '[http://www.mediawiki.org/wiki/User:Danwe Daniel Werner]', + 'url' => 'https://www.mediawiki.org/wiki/Extension:HashTables', + 'license-name' => 'ISC' ); // language files: $wgMessagesDirs['HashTables'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['HashTables' ] = ExtHashTables::getDir() . '/HashTables.i18n.php'; $wgExtensionMessagesFiles['HashTablesMagic'] = ExtHashTables::getDir() . '/HashTables.i18n.magic.php'; // hooks registration: @@ -58,7 +58,7 @@ * * @var string */ - const VERSION = '1.1.0 alpha'; + const VERSION = '1.2.0'; /** * @since 0.1 -- To view, visit https://gerrit.wikimedia.org/r/365560 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8bd2baccdd446ab0702be130b4f0dccc12ffad07 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HashTables Gerrit-Branch: master Gerrit-Owner: Kghbln <mediaw...@kghoffmeyer.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits