Jack Phoenix has uploaded a new change for review. https://gerrit.wikimedia.org/r/161404
Change subject: Removing legacy (PHP) i18n support ...................................................................... Removing legacy (PHP) i18n support Change-Id: I08664d25d0dd384bd984359d4b5ed57002d15027 --- D Blog.i18n.php M Blog.php 2 files changed, 1 insertion(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlogPage refs/changes/04/161404/1 diff --git a/Blog.i18n.php b/Blog.i18n.php deleted file mode 100644 index 44e7d33..0000000 --- a/Blog.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( 'wfJsonI18nShim1061fedd6af2862f' ) ) { - function wfJsonI18nShim1061fedd6af2862f( $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'][] = 'wfJsonI18nShim1061fedd6af2862f'; -} diff --git a/Blog.php b/Blog.php index 8795e20..f1c93aa 100644 --- a/Blog.php +++ b/Blog.php @@ -9,7 +9,7 @@ * @author David Pean <[email protected]> * @author Jack Phoenix <[email protected]> * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - * @link http://www.mediawiki.org/wiki/Extension:BlogPage Documentation + * @link https://www.mediawiki.org/wiki/Extension:BlogPage Documentation */ if ( !defined( 'MEDIAWIKI' ) ) { die(); @@ -104,7 +104,6 @@ // Set up everything $wgMessagesDirs['Blog'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Blog'] = __DIR__ . '/Blog.i18n.php'; $wgExtensionMessagesFiles['BlogAlias'] = __DIR__ . '/Blog.alias.php'; // Namespace translations $wgExtensionMessagesFiles['BlogNamespaces'] = __DIR__ . '/Blog.namespaces.php'; -- To view, visit https://gerrit.wikimedia.org/r/161404 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I08664d25d0dd384bd984359d4b5ed57002d15027 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlogPage Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
