[MediaWiki-commits] [Gerrit] mediawiki...Tooltip[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387394 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I8e974a4a9ed6d922c04136651e890267dba73060 --- D Tooltip.i18n.php M Tooltip.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Tooltip refs/changes/94/387394/1 diff --git a/Tooltip.i18n.php b/Tooltip.i18n.php deleted file mode 100644 index 8c71575..000 --- a/Tooltip.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim5340a6e7080276db' ) ) { - function wfJsonI18nShim5340a6e7080276db( $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'][] = 'wfJsonI18nShim5340a6e7080276db'; -} diff --git a/Tooltip.php b/Tooltip.php index 3deda2c..a7e13ba 100644 --- a/Tooltip.php +++ b/Tooltip.php @@ -10,7 +10,6 @@ ); $dir = dirname( __FILE__ ) . '/'; -$wgExtensionMessagesFiles['Tooltip'] = $dir . 'Tooltip.i18n.php'; $wgMessagesDirs['Tooltip'] = $dir . 'i18n'; $wgExtensionMessagesFiles['TooltipMagic'] = $dir . 'Tooltip.i18n.magic.php'; -- To view, visit https://gerrit.wikimedia.org/r/387394 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8e974a4a9ed6d922c04136651e890267dba73060 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Tooltip Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...TweetANew[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387397 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: If6eb979f4a4d69d0ab4034d3bf87087197f081ff --- D TweetANew.i18n.php M TweetANew.php 2 files changed, 1 insertion(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TweetANew refs/changes/97/387397/1 diff --git a/TweetANew.i18n.php b/TweetANew.i18n.php deleted file mode 100644 index b11d106..000 --- a/TweetANew.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim476697d6b20efa70' ) ) { - function wfJsonI18nShim476697d6b20efa70( $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'][] = 'wfJsonI18nShim476697d6b20efa70'; -} diff --git a/TweetANew.php b/TweetANew.php index 062c8ef..8f5eeed 100644 --- a/TweetANew.php +++ b/TweetANew.php @@ -26,7 +26,7 @@ *McDutchie, ChrisPtDe, Michawiki, Beta16, David1010, Priviet, Robby, Siebrand, Manuae, Borichètm, Dragonòt, SandroHc, *Ahmed-Najib-Biabani-Ibrahimkhel, Stelistcristi, Joetaras, Kalan, පසිඳු කාවින්ද, Rancher, WikiPhoenix, Shanmugamp7, Veeven, *AnakngAraw, Emperyan, Bilalokms, Ата, Hzy980512, Xiaomingyan, Yfdyh000, Justincheng12345, - *and others mentioned in TweetANew.i18n.php for translation work + *and others mentioned in i18n folder for translation work * */ @@ -184,7 +184,6 @@ $wgAutoloadClasses['tmhUtilities'] = $dir . 'lib/tmhUtilities.php'; $wgAutoloadClasses['GoogleURL'] = $dir . 'lib/GoogleURL.php'; $wgMessagesDirs['TweetANew'] = $dir . 'i18n'; -$wgExtensionMessagesFiles['TweetANew'] = $dir . 'TweetANew.i18n.php'; /** * Credits -- To view, visit https://gerrit.wikimedia.org/r/387397 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If6eb979f4a4d69d0ab4034d3bf87087197f081ff Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TweetANew Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...TwitterCards[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387398 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I90cb09901ebbd705ee9e960ef7ed6b6991944f6f --- D TwitterCards.i18n.php M TwitterCards.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwitterCards refs/changes/98/387398/1 diff --git a/TwitterCards.i18n.php b/TwitterCards.i18n.php deleted file mode 100644 index 05080b2..000 --- a/TwitterCards.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim067087cae6c569d0' ) ) { - function wfJsonI18nShim067087cae6c569d0( $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'][] = 'wfJsonI18nShim067087cae6c569d0'; -} diff --git a/TwitterCards.php b/TwitterCards.php index fe9fc43..7d444e9 100644 --- a/TwitterCards.php +++ b/TwitterCards.php @@ -45,7 +45,6 @@ $wgExtensionMessagesFiles['TwitterCardsMagic'] = __DIR__ . '/TwitterCards.magic.php'; $wgMessagesDirs['TwitterCards'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['TwitterCards'] = __DIR__ . '/TwitterCards.i18n.php'; $wgAutoloadClasses['TwitterCardsHooks'] = __DIR__ . '/TwitterCards.hooks.php'; $wgHooks['BeforePageDisplay'][] = 'TwitterCardsHooks::onBeforePageDisplay'; -- To view, visit https://gerrit.wikimedia.org/r/387398 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I90cb09901ebbd705ee9e960ef7ed6b6991944f6f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TwitterCards Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...TranslateSvg[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387395 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ib47bca6c7e149b49dc6612dede1469dffef4bc97 --- D TranslateSvg.i18n.php M TranslateSvg.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TranslateSvg refs/changes/95/387395/1 diff --git a/TranslateSvg.i18n.php b/TranslateSvg.i18n.php deleted file mode 100644 index d08eca1..000 --- a/TranslateSvg.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimce1b12948dcd4875' ) ) { - function wfJsonI18nShimce1b12948dcd4875( $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'][] = 'wfJsonI18nShimce1b12948dcd4875'; -} diff --git a/TranslateSvg.php b/TranslateSvg.php index 92e5de0..3ce4f44 100644 --- a/TranslateSvg.php +++ b/TranslateSvg.php @@ -32,7 +32,6 @@ } $wgMessagesDirs['TranslateSvg'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['TranslateSvg'] = $dir . 'TranslateSvg.i18n.php'; $wgExtensionMessagesFiles['TranslateSvgAlias'] = $dir . 'TranslateSvg.alias.php'; $wgResourceModules['jquery.colorpicker'] = array( -- To view, visit https://gerrit.wikimedia.org/r/387395 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib47bca6c7e149b49dc6612dede1469dffef4bc97 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TranslateSvg Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Transliterator[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387396 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I96cfea329b0890401d55a4ee56c719f300e16705 --- D Transliterator.i18n.php M Transliterator.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Transliterator refs/changes/96/387396/1 diff --git a/Transliterator.i18n.php b/Transliterator.i18n.php deleted file mode 100644 index 025fca4..000 --- a/Transliterator.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim1ddc1ba1cfbf1887' ) ) { - function wfJsonI18nShim1ddc1ba1cfbf1887( $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'][] = 'wfJsonI18nShim1ddc1ba1cfbf1887'; -} diff --git a/Transliterator.php b/Transliterator.php index c7ae296..0e1d59e 100644 --- a/Transliterator.php +++ b/Transliterator.php @@ -29,7 +29,6 @@ $wgAutoloadClasses['ExtTransliterator'] = dirname( __FILE__ ) . "/Transliterator_body.php"; $wgMessagesDirs['Transliterator'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Transliterator'] = dirname( __FILE__ ) . '/Transliterator.i18n.php'; $wgExtensionMessagesFiles['TransliteratorMagic'] = dirname( __FILE__ ) . '/Transliterator.i18n.magic.php'; $wgParserTestFiles[] = dirname( __FILE__ ) . '/transliteratorParserTests.txt'; -- To view, visit https://gerrit.wikimedia.org/r/387396 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I96cfea329b0890401d55a4ee56c719f300e16705 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Transliterator Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...TemplateInfo[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387392 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I62a7c885e99e86ff6ef9e7328156be9c8920c337 --- D TemplateInfo.i18n.php M TemplateInfo.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TemplateInfo refs/changes/92/387392/1 diff --git a/TemplateInfo.i18n.php b/TemplateInfo.i18n.php deleted file mode 100644 index 829a0c2..000 --- a/TemplateInfo.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim872361f15ccec1e1' ) ) { - function wfJsonI18nShim872361f15ccec1e1( $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'][] = 'wfJsonI18nShim872361f15ccec1e1'; -} diff --git a/TemplateInfo.php b/TemplateInfo.php index 95a3aff..5c1649a 100644 --- a/TemplateInfo.php +++ b/TemplateInfo.php @@ -35,7 +35,6 @@ // Internationalization $wgMessagesDirs['TemplateInfo'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['TemplateInfo'] = $dir . 'TemplateInfo.i18n.php'; // Register auto load for the special page class $wgAutoloadClasses['TemplateInfoHooks'] = $dir . 'TemplateInfo.hooks.php'; -- To view, visit https://gerrit.wikimedia.org/r/387392 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I62a7c885e99e86ff6ef9e7328156be9c8920c337 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TemplateInfo Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...TimezoneSelector[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387393 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I2f1357dd47683e01be9dbf1eeb77cc72eebc595c --- D TimezoneSelector.i18n.php M TimezoneSelector.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimezoneSelector refs/changes/93/387393/1 diff --git a/TimezoneSelector.i18n.php b/TimezoneSelector.i18n.php deleted file mode 100644 index a3139a8..000 --- a/TimezoneSelector.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimc1edeb4ec22548b0' ) ) { - function wfJsonI18nShimc1edeb4ec22548b0( $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'][] = 'wfJsonI18nShimc1edeb4ec22548b0'; -} diff --git a/TimezoneSelector.php b/TimezoneSelector.php index 7b00223..fe4c3e6 100644 --- a/TimezoneSelector.php +++ b/TimezoneSelector.php @@ -32,7 +32,6 @@ ); $wgMessagesDirs['TimezoneSelector'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['TimezoneSelector'] = __DIR__ . '/TimezoneSelector.i18n.php'; $wgExtensionMessagesFiles['TimezoneSelectorAlias'] = __DIR__ . '/TimezoneSelector.alias.php'; $wgAutoloadClasses['TimezoneSelector'] = __DIR__ . '/TimezoneSelector.class.php'; -- To view, visit https://gerrit.wikimedia.org/r/387393 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2f1357dd47683e01be9dbf1eeb77cc72eebc595c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TimezoneSelector Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Tabs[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387390 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1264ada6f68c6ea315e830dfbf358fb2616ec918 --- D Tabs.i18n.php M Tabs.php 2 files changed, 0 insertions(+), 32 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Tabs refs/changes/90/387390/1 diff --git a/Tabs.i18n.php b/Tabs.i18n.php deleted file mode 100644 index 3dac8c8..000 --- a/Tabs.i18n.php +++ /dev/null @@ -1,31 +0,0 @@ -https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/generateJsonI18n.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(); -$GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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; -}; diff --git a/Tabs.php b/Tabs.php index bc7b666..c69f10f 100644 --- a/Tabs.php +++ b/Tabs.php @@ -37,7 +37,6 @@ $dir = __DIR__ . '/'; $wgMessagesDirs['Tabs'] = __DIR__ . '/i18n'; $wgAutoloadClasses['Tabs'] = $dir . 'Tabs.body.php'; -$wgExtensionMessagesFiles['Tabs'] = $dir . 'Tabs.i18n.php'; $wgExtensionMessagesFiles['TabsMagic'] = $dir . 'Tabs.i18n.magic.php'; $wgHooks['ParserFirstCallInit'][] = 'Tabs::init'; $wgResourceModules['ext.tabs'] = array( -- To view, visit https://gerrit.wikimedia.org/r/387390 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1264ada6f68c6ea315e830dfbf358fb2616ec918 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Tabs Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...YetAnotherKeywords[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387363 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia8708b557a07b8eeca8a4e7bb52f90c1c5cacaa0 --- D YetAnotherKeywords.i18n.php M YetAnotherKeywords.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/YetAnotherKeywords refs/changes/63/387363/1 diff --git a/YetAnotherKeywords.i18n.php b/YetAnotherKeywords.i18n.php deleted file mode 100644 index 15bd04b..000 --- a/YetAnotherKeywords.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimff0095e4e60e6d64' ) ) { - function wfJsonI18nShimff0095e4e60e6d64( $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'][] = 'wfJsonI18nShimff0095e4e60e6d64'; -} diff --git a/YetAnotherKeywords.php b/YetAnotherKeywords.php index d090f4e..03a8607 100644 --- a/YetAnotherKeywords.php +++ b/YetAnotherKeywords.php @@ -61,7 +61,6 @@ ); $wgMessagesDirs['YetAnotherKeywords'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['YetAnotherKeywords'] = __DIR__ . '/YetAnotherKeywords.i18n.php'; $wgExtensionFunctions[] = 'setupYetAnotherKeywordsParserHooks'; -- To view, visit https://gerrit.wikimedia.org/r/387363 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia8708b557a07b8eeca8a4e7bb52f90c1c5cacaa0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/YetAnotherKeywords Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...YotpoReviews[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387364 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ie7f9ef0a93ec329af6531b083405e6b71f6fa25e --- D YotpoReviews.i18n.php M YotpoReviews.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/YotpoReviews refs/changes/64/387364/1 diff --git a/YotpoReviews.i18n.php b/YotpoReviews.i18n.php deleted file mode 100644 index d35360b..000 --- a/YotpoReviews.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim17471567aeed60e6' ) ) { - function wfJsonI18nShim17471567aeed60e6( $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'][] = 'wfJsonI18nShim17471567aeed60e6'; -} diff --git a/YotpoReviews.php b/YotpoReviews.php index 88ff319..1215a35 100644 --- a/YotpoReviews.php +++ b/YotpoReviews.php @@ -12,7 +12,6 @@ ); $wgMessagesDirs['YotpoReviews'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['YotpoReviews'] = __DIR__ . '/YotpoReviews.i18n.php'; $wgAutoloadClasses['YotpoReviews'] = __DIR__ . '/YotpoReviews.body.php'; $wgHooks['ParserFirstCallInit'][] = 'YotpoReviews::onParserFirstCallInit'; -- To view, visit https://gerrit.wikimedia.org/r/387364 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie7f9ef0a93ec329af6531b083405e6b71f6fa25e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/YotpoReviews Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ViewFiles[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387362 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ifed50ebeacf86a8a60d251635e40c7e52a727cd3 --- D ViewFiles.i18n.php M ViewFiles.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ViewFiles refs/changes/62/387362/1 diff --git a/ViewFiles.i18n.php b/ViewFiles.i18n.php deleted file mode 100644 index e5b1356..000 --- a/ViewFiles.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimf409047feb23a1e3' ) ) { - function wfJsonI18nShimf409047feb23a1e3( $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'][] = 'wfJsonI18nShimf409047feb23a1e3'; -} diff --git a/ViewFiles.php b/ViewFiles.php index f39071b..27e2aa1 100644 --- a/ViewFiles.php +++ b/ViewFiles.php @@ -43,7 +43,6 @@ $wgAutoloadClasses['SpecialViewFiles'] = __DIR__ . '/SpecialViewFiles.php'; $wgMessagesDirs['ViewFiles'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['ViewFiles'] = __DIR__ . '/ViewFiles.i18n.php'; $wgExtensionMessagesFiles['ViewFilesAlias'] = __DIR__ . '/ViewFiles.alias.php'; $wgSpecialPages['ViewFiles'] = 'SpecialViewFiles'; -- To view, visit https://gerrit.wikimedia.org/r/387362 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifed50ebeacf86a8a60d251635e40c7e52a727cd3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ViewFiles Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...RT[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387359 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1692b5ffb98325d34a85e7311948efadf793f23c --- D RT.i18n.php M RT.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RT refs/changes/59/387359/1 diff --git a/RT.i18n.php b/RT.i18n.php deleted file mode 100644 index 9d58301..000 --- a/RT.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/generateJsonI18n.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( 'wfJsonI18nShim7ed2cf62c7f105aa' ) ) { - function wfJsonI18nShim7ed2cf62c7f105aa( $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'][] = 'wfJsonI18nShim7ed2cf62c7f105aa'; -} diff --git a/RT.php b/RT.php index 0018a50..8714a42 100644 --- a/RT.php +++ b/RT.php @@ -62,7 +62,6 @@ // Pull in the Internationalization file and class $wgMessagesDirs['RT'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['RT'] = dirname( __FILE__ ) . '/RT.i18n.php'; $wgAutoloadClasses['RT'] = dirname( __FILE__ ) . '/RT_body.php'; // Register hook -- To view, visit https://gerrit.wikimedia.org/r/387359 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1692b5ffb98325d34a85e7311948efadf793f23c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RT Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...RegexFunctions[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387357 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1187f8c2ea78346e59b5b5e7d747dec06b1a6f8e --- D RegexFunctions.i18n.php M RegexFunctions.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RegexFunctions refs/changes/57/387357/1 diff --git a/RegexFunctions.i18n.php b/RegexFunctions.i18n.php deleted file mode 100644 index 6482874..000 --- a/RegexFunctions.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim002b8fe1be843f74' ) ) { - function wfJsonI18nShim002b8fe1be843f74( $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'][] = 'wfJsonI18nShim002b8fe1be843f74'; -} diff --git a/RegexFunctions.php b/RegexFunctions.php index 1fa3432..cabbfb0 100644 --- a/RegexFunctions.php +++ b/RegexFunctions.php @@ -26,7 +26,6 @@ $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['RegexFunctions'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['RegexFunctions'] = $dir . 'RegexFunctions.i18n.php'; $wgExtensionMessagesFiles['RegexFunctionsMagic'] = $dir . 'RegexFunctions.i18n.magic.php'; $wgHooks['ParserFirstCallInit'][] = 'ExtRegexFunctions::onParserFirstCallInit'; -- To view, visit https://gerrit.wikimedia.org/r/387357 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1187f8c2ea78346e59b5b5e7d747dec06b1a6f8e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RegexFunctions Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...RevisionCommentSupplement[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387358 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I2dde242aff6d57c9e0f8d6d5762ec38c74ae97cb --- D RevisionCommentSupplement.i18n.php M RevisionCommentSupplement.php M special/SpecialRevisionCommentSupplement.php M special/SpecialRevisionCommentSupplementList.php M special/ViewRevisionCommentSupplementList.php 5 files changed, 0 insertions(+), 75 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RevisionCommentSupplement refs/changes/58/387358/1 diff --git a/RevisionCommentSupplement.i18n.php b/RevisionCommentSupplement.i18n.php deleted file mode 100644 index 2ffdc2f..000 --- a/RevisionCommentSupplement.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimd7219da8f4aaee55' ) ) { - function wfJsonI18nShimd7219da8f4aaee55( $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'][] = 'wfJsonI18nShimd7219da8f4aaee55'; -} diff --git a/RevisionCommentSupplement.php b/RevisionCommentSupplement.php index 16fadac..e5722bd 100644 --- a/RevisionCommentSupplement.php +++ b/RevisionCommentSupplement.php @@ -39,7 +39,6 @@ $wgGroupPermissions['sysop']['supplementcomment'] = true; $wgMessagesDirs['RevisionCommentSupplement'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['RevisionCommentSupplement'] = __DIR__ . '/RevisionCommentSupplement.i18n.php'; $wgExtensionMessagesFiles['RevisionCommentSupplementAlias'] = __DIR__ . '/RevisionCommentSupplement.alias.php'; $wgAutoloadClasses['RevisionCommentSupplementSetting'] = __DIR__ . '/RevisionCommentSupplementSetting.php'; diff --git a/special/SpecialRevisionCommentSupplement.php b/special/SpecialRevisionCommentSupplement.php index 151acda..9260351 100644 --- a/special/SpecialRevisionCommentSupplement.php +++ b/special/SpecialRevisionCommentSupplement.php @@ -94,19 +94,6 @@ $v->show(); } - function loadMessages() { - static $messagesLoaded = false; - global $wgMessageCache; - if ( $messagesLoaded ) return; - $messagesLoaded = true; - - require( __DIR__ . '/../RevisionCommentSupplement.i18n.php' ); - foreach ( $allMessages as $lang => $langMessages ) { - $wgMessageCache->addMessages( $langMessages, $lang ); - } - return true; - } - /** * @param int $revId: revision id * @return string HTML diff --git a/special/SpecialRevisionCommentSupplementList.php b/special/SpecialRevisionCommentSupplementList.php index bf23353..bc576d4 100644 --- a/special/SpecialRevisionCommentSupplementList.php +++ b/special/SpecialRevisionCommentSupplementList.php @@ -71,19 +71,6 @@ $v->show(); } - function loadMessages() { - static $messagesLoaded = false; - global $wgMessageCache; - if ( $messagesLoaded ) return; - $messagesLoaded = true; - - require( __DIR__ . '/../RevisionCommentSupplement.i18n.php' ); - foreach ( $allMessages as $lang => $langMessages ) { - $wgMessageCache->addMessages( $langMessages, $lang ); - } - return true; -
[MediaWiki-commits] [Gerrit] mediawiki...ReassignEdits[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387356 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ic22e511781f09f37044a3dd48a7c44d31d712a5b --- D ReassignEdits.i18n.php M ReassignEdits.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ReassignEdits refs/changes/56/387356/1 diff --git a/ReassignEdits.i18n.php b/ReassignEdits.i18n.php deleted file mode 100644 index 7064531..000 --- a/ReassignEdits.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim76e700e4b2d4944e' ) ) { - function wfJsonI18nShim76e700e4b2d4944e( $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'][] = 'wfJsonI18nShim76e700e4b2d4944e'; -} diff --git a/ReassignEdits.php b/ReassignEdits.php index f804254..b02f9b1 100644 --- a/ReassignEdits.php +++ b/ReassignEdits.php @@ -31,7 +31,6 @@ // Internationalization files $dir = __DIR__ . '/'; $wgMessagesDirs['ReassignEdits'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['ReassignEdits'] = $dir . 'ReassignEdits.i18n.php'; $wgExtensionMessagesFiles['ReassignEditsAliases'] = $dir . 'ReassignEdits.alias.php'; // Special page classes -- To view, visit https://gerrit.wikimedia.org/r/387356 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic22e511781f09f37044a3dd48a7c44d31d712a5b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ReassignEdits Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...RandomInCategory[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387355 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: If7821a83b95a122b9ee54b0ddc23c91005d17651 --- D RandomInCategory.i18n.php M RandomInCategory.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RandomInCategory refs/changes/55/387355/1 diff --git a/RandomInCategory.i18n.php b/RandomInCategory.i18n.php deleted file mode 100644 index 3e027c5..000 --- a/RandomInCategory.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimca7a4a7133fe33c7' ) ) { - function wfJsonI18nShimca7a4a7133fe33c7( $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'][] = 'wfJsonI18nShimca7a4a7133fe33c7'; -} diff --git a/RandomInCategory.php b/RandomInCategory.php index a64aaf4..9780a7e 100644 --- a/RandomInCategory.php +++ b/RandomInCategory.php @@ -23,7 +23,6 @@ $dir = dirname(__FILE__) . '/'; $wgMessagesDirs['RandomInCategory'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['RandomInCategory'] = $dir . 'RandomInCategory.i18n.php'; $wgExtensionMessagesFiles['RandomInCategoryAlias'] = $dir . 'RandomInCategory.alias.php'; $wgSpecialPages['RandomPageInCategory'] = 'RandomPageInCategory'; -- To view, visit https://gerrit.wikimedia.org/r/387355 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If7821a83b95a122b9ee54b0ddc23c91005d17651 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/RandomInCategory Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...QuickResponse[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387354 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I6abf3d355e4517e317be9799860b87b1ea34345a --- D QuickResponse.i18n.php M QuickResponse.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/QuickResponse refs/changes/54/387354/1 diff --git a/QuickResponse.i18n.php b/QuickResponse.i18n.php deleted file mode 100644 index b111634..000 --- a/QuickResponse.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim799d03682bbfe86d' ) ) { - function wfJsonI18nShim799d03682bbfe86d( $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'][] = 'wfJsonI18nShim799d03682bbfe86d'; -} diff --git a/QuickResponse.php b/QuickResponse.php index 8317e86..7db7660 100644 --- a/QuickResponse.php +++ b/QuickResponse.php @@ -15,7 +15,6 @@ ); $wgMessagesDirs['QuickResponse'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles[ 'QuickResponse' ] = __DIR__ . '/QuickResponse.i18n.php'; $wgResourceModules[ 'QuickResponse' ] = array( 'scripts' => array('resources/qrcode.js', -- To view, visit https://gerrit.wikimedia.org/r/387354 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6abf3d355e4517e317be9799860b87b1ea34345a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/QuickResponse Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PushToWatch[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387345 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ib375bb9c8087d069d172e03c7f7cba7dc2b09c3f --- D PushToWatch.i18n.php M PushToWatch.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PushToWatch refs/changes/45/387345/1 diff --git a/PushToWatch.i18n.php b/PushToWatch.i18n.php deleted file mode 100644 index 3f65c47..000 --- a/PushToWatch.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim016d70806e182246' ) ) { - function wfJsonI18nShim016d70806e182246( $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'][] = 'wfJsonI18nShim016d70806e182246'; -} diff --git a/PushToWatch.php b/PushToWatch.php index 39235db..541feeb 100755 --- a/PushToWatch.php +++ b/PushToWatch.php @@ -26,7 +26,6 @@ ); $wgMessagesDirs['PushToWatch'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PushToWatch'] = dirname( __FILE__ ) . '/PushToWatch.i18n.php'; $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'PushToWatch::ListUsers'; -- To view, visit https://gerrit.wikimedia.org/r/387345 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib375bb9c8087d069d172e03c7f7cba7dc2b09c3f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PushToWatch Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Push[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387344 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ibc841474f2fd85e8e27bc182ed929b8f94c3d21e --- D Push.i18n.php M Push.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Push refs/changes/44/387344/1 diff --git a/Push.i18n.php b/Push.i18n.php deleted file mode 100644 index 37c7833..000 --- a/Push.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim50369e2729c28ff8' ) ) { - function wfJsonI18nShim50369e2729c28ff8( $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'][] = 'wfJsonI18nShim50369e2729c28ff8'; -} diff --git a/Push.php b/Push.php index bb49d06..203ac9a 100644 --- a/Push.php +++ b/Push.php @@ -42,7 +42,6 @@ unset( $useExtensionPath ); $wgMessagesDirs['Push'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Push'] = $egPushIP . '/Push.i18n.php'; $wgExtensionMessagesFiles['PushAlias'] = $egPushIP . '/Push.alias.php'; $wgAutoloadClasses['PushHooks']= $egPushIP . '/Push.hooks.php'; -- To view, visit https://gerrit.wikimedia.org/r/387344 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibc841474f2fd85e8e27bc182ed929b8f94c3d21e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Push Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PureWikiDeletion[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387343 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I6df3010cae2962a341ad6ab0c14818efdb878224 --- D PureWikiDeletion.i18n.php M PureWikiDeletion.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PureWikiDeletion refs/changes/43/387343/1 diff --git a/PureWikiDeletion.i18n.php b/PureWikiDeletion.i18n.php deleted file mode 100644 index 155481d..000 --- a/PureWikiDeletion.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim265b9354d52c69e3' ) ) { - function wfJsonI18nShim265b9354d52c69e3( $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'][] = 'wfJsonI18nShim265b9354d52c69e3'; -} diff --git a/PureWikiDeletion.php b/PureWikiDeletion.php index 133ca36..97ba49e 100644 --- a/PureWikiDeletion.php +++ b/PureWikiDeletion.php @@ -41,7 +41,6 @@ $wgAutoloadClasses['PureWikiDeletionHooks'] = "$dir/PureWikiDeletion.hooks.php"; $wgAutoloadClasses['RandomExcludeBlank'] = "$dir/SpecialPureWikiDeletion.php"; $wgAutoloadClasses['PopulateBlankedPagesTable'] = "$dir/SpecialPureWikiDeletion.php"; -$wgExtensionMessagesFiles['PureWikiDeletion'] = $dir . 'PureWikiDeletion.i18n.php'; $wgMessagesDirs['PureWikiDeletion'] = $dir . 'i18n'; $wgExtensionMessagesFiles['PureWikiDeletionAlias'] = $dir . 'PureWikiDeletion.alias.php'; $wgExtensionMessagesFiles['PureWikiDeletionMagic'] = $dir . 'PureWikiDeletion.i18n.magic.php'; -- To view, visit https://gerrit.wikimedia.org/r/387343 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6df3010cae2962a341ad6ab0c14818efdb878224 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PureWikiDeletion Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PubSubHubbub[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387342 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I5785182a5d21c3aa629c3844e4ff1b9358070d39 --- D PubSubHubbub.i18n.php M PubSubHubbub.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PubSubHubbub refs/changes/42/387342/1 diff --git a/PubSubHubbub.i18n.php b/PubSubHubbub.i18n.php deleted file mode 100644 index 4c25f7d..000 --- a/PubSubHubbub.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim22db6e31a3c8d09f' ) ) { - function wfJsonI18nShim22db6e31a3c8d09f( $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'][] = 'wfJsonI18nShim22db6e31a3c8d09f'; -} diff --git a/PubSubHubbub.php b/PubSubHubbub.php index 42ece18..7bb0dd0 100644 --- a/PubSubHubbub.php +++ b/PubSubHubbub.php @@ -42,7 +42,6 @@ $dir = __DIR__ . '/'; $wgMessagesDirs['PubSubHubbub'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PubSubHubbub'] = $dir . 'PubSubHubbub.i18n.php'; $wgExtensionMessagesFiles['PubSubHubbubAlias'] = $dir . 'PubSubHubbub.alias.php'; $wgAutoloadClasses['PubSubHubbub\\PubSubHubbub'] = $dir . 'PubSubHubbub.body.php'; -- To view, visit https://gerrit.wikimedia.org/r/387342 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5785182a5d21c3aa629c3844e4ff1b9358070d39 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PubSubHubbub Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PronunciationRecording[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387341 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I6d0bd7d81a641d105cd1ca3a11c4c3195a757866 --- D PronunciationRecording.i18n.php M PronunciationRecording.php 2 files changed, 0 insertions(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PronunciationRecording refs/changes/41/387341/1 diff --git a/PronunciationRecording.i18n.php b/PronunciationRecording.i18n.php deleted file mode 100644 index 5a2..000 --- a/PronunciationRecording.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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 = []; -if ( !function_exists( 'wfJsonI18nShimff4e87ecb165bd77' ) ) { - function wfJsonI18nShimff4e87ecb165bd77( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( [ $code ], $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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'][] = 'wfJsonI18nShimff4e87ecb165bd77'; -} diff --git a/PronunciationRecording.php b/PronunciationRecording.php index 7d1128d..307888b 100644 --- a/PronunciationRecording.php +++ b/PronunciationRecording.php @@ -18,8 +18,6 @@ ]; $wgMessagesDirs['PronunciationRecording'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles[ 'PronunciationRecording' ] = __DIR__ . - '/PronunciationRecording.i18n.php'; $wgExtensionMessagesFiles[ 'PronunciationRecordingAlias' ] = __DIR__ . '/PronunciationRecording.alias.php'; $wgSpecialPages[ 'PronunciationRecording' ] = 'SpecialPronunciationRecording'; -- To view, visit https://gerrit.wikimedia.org/r/387341 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6d0bd7d81a641d105cd1ca3a11c4c3195a757866 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PronunciationRecording Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Polyglot[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387339 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I32fd97db23aaf50bdbe4b92901eb0e0e4eb30196 --- D Polyglot.i18n.php M Polyglot.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Polyglot refs/changes/39/387339/1 diff --git a/Polyglot.i18n.php b/Polyglot.i18n.php deleted file mode 100644 index 44092b0..000 --- a/Polyglot.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim5fecbdc3c2f4ef9f' ) ) { - function wfJsonI18nShim5fecbdc3c2f4ef9f( $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'][] = 'wfJsonI18nShim5fecbdc3c2f4ef9f'; -} diff --git a/Polyglot.php b/Polyglot.php index 669a4bd..b811298 100644 --- a/Polyglot.php +++ b/Polyglot.php @@ -32,7 +32,6 @@ ); $wgMessagesDirs['Polyglot'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Polyglot'] = __DIR__ . '/Polyglot.i18n.php'; /** * Set languages with polyglot support; applies to negotiation of interface language, -- To view, visit https://gerrit.wikimedia.org/r/387339 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I32fd97db23aaf50bdbe4b92901eb0e0e4eb30196 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Polyglot Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Premoderation[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387340 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia6a57c33ef9dd84b31800b8932dca8f18d7d434b --- D Premoderation.i18n.php M Premoderation.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Premoderation refs/changes/40/387340/1 diff --git a/Premoderation.i18n.php b/Premoderation.i18n.php deleted file mode 100644 index 5544c42..000 --- a/Premoderation.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim155700666e2cbdaa' ) ) { - function wfJsonI18nShim155700666e2cbdaa( $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'][] = 'wfJsonI18nShim155700666e2cbdaa'; -} diff --git a/Premoderation.php b/Premoderation.php index f946295..7cb3f0d 100644 --- a/Premoderation.php +++ b/Premoderation.php @@ -14,7 +14,6 @@ $dir = dirname( __FILE__ ); $wgMessagesDirs['Premoderation'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Premoderation'] = "$dir/Premoderation.i18n.php"; $wgExtensionMessagesFiles['PremoderationAlias'] = "$dir/Premoderation.alias.php"; $wgAutoloadClasses['Premoderation'] = "$dir/Premoderation.class.php"; $wgAutoloadClasses['SpecialPremoderation'] = "$dir/SpecialPremoderation.php"; -- To view, visit https://gerrit.wikimedia.org/r/387340 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia6a57c33ef9dd84b31800b8932dca8f18d7d434b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Premoderation Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PHPExcel[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387338 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I79eb8ddc8f7dc146c863398cad73ddd7235bad00 --- D PHPExcel.i18n.php M PHPExcel.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PHPExcel refs/changes/38/387338/1 diff --git a/PHPExcel.i18n.php b/PHPExcel.i18n.php deleted file mode 100644 index 555fda5..000 --- a/PHPExcel.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim608c07b457ea1046' ) ) { - function wfJsonI18nShim608c07b457ea1046( $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'][] = 'wfJsonI18nShim608c07b457ea1046'; -} diff --git a/PHPExcel.php b/PHPExcel.php index de824d5..1c0ca4f 100644 --- a/PHPExcel.php +++ b/PHPExcel.php @@ -20,7 +20,6 @@ // Internationalization $wgMessagesDirs['PHPExcel'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PHPExcel'] = $dir . '/PHPExcel.i18n.php'; $wgExtensionCredits['other'][] = array( 'path' => __FILE__, -- To view, visit https://gerrit.wikimedia.org/r/387338 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I79eb8ddc8f7dc146c863398cad73ddd7235bad00 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PHPExcel Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PGFTikZ[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387337 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Iebf6cd81ed1ad91a2d3987b226ab615336d63145 --- D PGFTikZ.i18n.php M PGFTikZ.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PGFTikZ refs/changes/37/387337/1 diff --git a/PGFTikZ.i18n.php b/PGFTikZ.i18n.php deleted file mode 100644 index d8ba095..000 --- a/PGFTikZ.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimb1347cbe3b11618d' ) ) { - function wfJsonI18nShimb1347cbe3b11618d( $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'][] = 'wfJsonI18nShimb1347cbe3b11618d'; -} diff --git a/PGFTikZ.php b/PGFTikZ.php index 693a081..abb8022 100644 --- a/PGFTikZ.php +++ b/PGFTikZ.php @@ -51,7 +51,6 @@ * Internationalization */ $wgMessagesDirs['PGFTikZ'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PGFTikZ'] = dirname( __FILE__ ) . '/PGFTikZ.i18n.php'; /** * Parameters (modify in LocalSettings.php) -- To view, visit https://gerrit.wikimedia.org/r/387337 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iebf6cd81ed1ad91a2d3987b226ab615336d63145 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PGFTikZ Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PerPageLicense[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387336 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I832a0a33dacaea34fda7e061b2977fac976735df --- D PerPageLicense.i18n.php M PerPageLicense.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PerPageLicense refs/changes/36/387336/1 diff --git a/PerPageLicense.i18n.php b/PerPageLicense.i18n.php deleted file mode 100644 index 178ac65..000 --- a/PerPageLicense.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim4b5112861ecabdd8' ) ) { - function wfJsonI18nShim4b5112861ecabdd8( $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'][] = 'wfJsonI18nShim4b5112861ecabdd8'; -} diff --git a/PerPageLicense.php b/PerPageLicense.php index 0ccde49..aa318b8 100644 --- a/PerPageLicense.php +++ b/PerPageLicense.php @@ -42,7 +42,6 @@ ); $wgMessagesDirs['PerPageLicense'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PerPageLicense'] = dirname( __FILE__ ) . '/PerPageLicense.i18n.php'; $wgHooks['ParserBeforeStrip'][] = 'PerPageLicense::getLicense'; // Page from which to obtain templates and associated licenses. -- To view, visit https://gerrit.wikimedia.org/r/387336 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I832a0a33dacaea34fda7e061b2977fac976735df Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PerPageLicense Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PdfExport[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387335 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I530c8fa21b2e3a6a3f73ab03ad19f0f49e26ae85 --- D PdfExport.i18n.php M PdfExport.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PdfExport refs/changes/35/387335/1 diff --git a/PdfExport.i18n.php b/PdfExport.i18n.php deleted file mode 100755 index b3ac366..000 --- a/PdfExport.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimf4cc309e767eccc7' ) ) { - function wfJsonI18nShimf4cc309e767eccc7( $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'][] = 'wfJsonI18nShimf4cc309e767eccc7'; -} diff --git a/PdfExport.php b/PdfExport.php index 2e9062d..3e374cb 100755 --- a/PdfExport.php +++ b/PdfExport.php @@ -39,7 +39,6 @@ # Internationalisation file $wgMessagesDirs['PdfPrint'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PdfPrint'] = $dir.'PdfExport.i18n.php'; $wgExtensionMessagesFiles['PdfPrintAlias'] = $dir.'PdfExport.i18n.alias.php'; # Global variables -- To view, visit https://gerrit.wikimedia.org/r/387335 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I530c8fa21b2e3a6a3f73ab03ad19f0f49e26ae85 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PdfExport Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PanScroll[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387334 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I787fc9e9d382600b301dc49b7e5ae836367db6fa --- D PanScroll.i18n.php M PanScroll.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PanScroll refs/changes/34/387334/1 diff --git a/PanScroll.i18n.php b/PanScroll.i18n.php deleted file mode 100644 index 4720ee4..000 --- a/PanScroll.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShime2171b3617aad4bd' ) ) { - function wfJsonI18nShime2171b3617aad4bd( $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'][] = 'wfJsonI18nShime2171b3617aad4bd'; -} diff --git a/PanScroll.php b/PanScroll.php index 9242b9e..4bdb2db 100644 --- a/PanScroll.php +++ b/PanScroll.php @@ -20,7 +20,6 @@ $wgAutoloadClasses['PanScrollHooks'] = $dir . '/PanScroll.hooks.php'; $wgMessagesDirs['PanScroll'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PanScroll'] = $dir . '/PanScroll.i18n.php'; $wgResourceModules['ext.panscroll.core'] = array( 'scripts' => array( -- To view, visit https://gerrit.wikimedia.org/r/387334 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I787fc9e9d382600b301dc49b7e5ae836367db6fa Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PanScroll Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PageTools[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387333 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I890a76a58b91e97b551a71cd1df43c8fa9e628a3 --- D PageTools.i18n.php M PageTools.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageTools refs/changes/33/387333/1 diff --git a/PageTools.i18n.php b/PageTools.i18n.php deleted file mode 100644 index b691d08..000 --- a/PageTools.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim7ecdcfc953003fd7' ) ) { - function wfJsonI18nShim7ecdcfc953003fd7( $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'][] = 'wfJsonI18nShim7ecdcfc953003fd7'; -} diff --git a/PageTools.php b/PageTools.php index dfe27b0..1048624 100644 --- a/PageTools.php +++ b/PageTools.php @@ -76,7 +76,6 @@ ); $wgMessagesDirs[ 'PageTools' ] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles[ 'PageTools' ] = __DIR__ . '/PageTools.i18n.php'; $wgAutoloadClasses[ 'PageTools' ]= __DIR__ . '/PageTools.class.php'; // Specify the function that will initialize the parser functions -- To view, visit https://gerrit.wikimedia.org/r/387333 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I890a76a58b91e97b551a71cd1df43c8fa9e628a3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageTools Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PageSchemas[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387332 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: If281e2d9a76d0cbec28fb7f06905df3fae447327 --- D PageSchemas.i18n.php M PageSchemas.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageSchemas refs/changes/32/387332/1 diff --git a/PageSchemas.i18n.php b/PageSchemas.i18n.php deleted file mode 100644 index 1ed0e55..000 --- a/PageSchemas.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim2849e72ceee9861b' ) ) { - function wfJsonI18nShim2849e72ceee9861b( $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'][] = 'wfJsonI18nShim2849e72ceee9861b'; -} diff --git a/PageSchemas.php b/PageSchemas.php index 6f753f0..29733be 100644 --- a/PageSchemas.php +++ b/PageSchemas.php @@ -37,7 +37,6 @@ // Internationalization $wgMessagesDirs['PageSchemas'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PageSchemas'] = $dir . 'PageSchemas.i18n.php'; $wgExtensionMessagesFiles['PageSchemasAlias'] = $dir . 'PageSchemas.i18n.alias.php'; // Job classes -- To view, visit https://gerrit.wikimedia.org/r/387332 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If281e2d9a76d0cbec28fb7f06905df3fae447327 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageSchemas Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PageNotice[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387331 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ib81e922d8dffe6372f1f70c95838f6cc28a358a3 --- D PageNotice.i18n.php M PageNotice.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageNotice refs/changes/31/387331/1 diff --git a/PageNotice.i18n.php b/PageNotice.i18n.php deleted file mode 100644 index 96d7703..000 --- a/PageNotice.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim972fadb61d6da0f3' ) ) { - function wfJsonI18nShim972fadb61d6da0f3( $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'][] = 'wfJsonI18nShim972fadb61d6da0f3'; -} diff --git a/PageNotice.php b/PageNotice.php index 2fcd20a..9a40dad 100644 --- a/PageNotice.php +++ b/PageNotice.php @@ -34,7 +34,6 @@ $dir = __DIR__; $wgAutoloadClasses['PageNoticeHooks'] = $dir . '/PageNotice.hooks.php'; -$wgExtensionMessagesFiles['PageNotice'] = $dir . '/PageNotice.i18n.php'; $wgMessagesDirs['PageNotice'] = __DIR__ . '/i18n'; $wgHooks['ArticleViewHeader'][] = 'PageNoticeHooks::renderHeader'; $wgHooks['ArticleViewFooter'][] = 'PageNoticeHooks::renderFooter'; -- To view, visit https://gerrit.wikimedia.org/r/387331 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib81e922d8dffe6372f1f70c95838f6cc28a358a3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageNotice Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PageLanguage[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387330 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I6f286968c6542f73fb82143c022f35be51e10b4e --- D PageLanguage.i18n.php M PageLanguage.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageLanguage refs/changes/30/387330/1 diff --git a/PageLanguage.i18n.php b/PageLanguage.i18n.php deleted file mode 100644 index 8bc3e56..000 --- a/PageLanguage.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim3d38033f0b66d393' ) ) { - function wfJsonI18nShim3d38033f0b66d393( $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'][] = 'wfJsonI18nShim3d38033f0b66d393'; -} diff --git a/PageLanguage.php b/PageLanguage.php index 3646a7a..539326d 100644 --- a/PageLanguage.php +++ b/PageLanguage.php @@ -17,7 +17,6 @@ $wgAutoloadClasses['PageLanguage'] = "$dir/PageLanguage.body.php"; $wgMessagesDirs['PageLanguage'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PageLanguage'] = "$dir/PageLanguage.i18n.php"; $wgExtensionMessagesFiles['PageLanguageMagic'] = "$dir/PageLanguage.magic.php"; $wgHooks['PageContentLanguage'][] = 'PageLanguage::onPageContentLanguage'; -- To view, visit https://gerrit.wikimedia.org/r/387330 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6f286968c6542f73fb82143c022f35be51e10b4e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageLanguage Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...PageCreationNotif[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387326 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I52a5fe27c14fb51f47e8b2063369a87700067727 --- D PageCreationNotif.i18n.php M PageCreationNotif.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageCreationNotif refs/changes/26/387326/1 diff --git a/PageCreationNotif.i18n.php b/PageCreationNotif.i18n.php deleted file mode 100644 index 6c2e764..000 --- a/PageCreationNotif.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim4dc1c9e1b5a3c045' ) ) { - function wfJsonI18nShim4dc1c9e1b5a3c045( $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'][] = 'wfJsonI18nShim4dc1c9e1b5a3c045'; -} diff --git a/PageCreationNotif.php b/PageCreationNotif.php index 9858a65..fc99d93 100644 --- a/PageCreationNotif.php +++ b/PageCreationNotif.php @@ -27,7 +27,6 @@ // Translation $wgMessagesDirs['PageCreationNotif'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['PageCreationNotif'] = dirname(__FILE__) . '/PageCreationNotif.i18n.php'; // Autoloading classes $wgAutoloadClasses['PageCreationNotifHooks'] = dirname( __FILE__ ) . '/PageCreationNotif.hooks.php'; -- To view, visit https://gerrit.wikimedia.org/r/387326 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I52a5fe27c14fb51f47e8b2063369a87700067727 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/PageCreationNotif Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...OracleTextSearch[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387318 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I26f2ca4456d58bdb8addb2a29c5ed8251d7220a7 --- D OracleTextSearch.i18n.php M OracleTextSearch.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OracleTextSearch refs/changes/18/387318/1 diff --git a/OracleTextSearch.i18n.php b/OracleTextSearch.i18n.php deleted file mode 100644 index dd684ab..000 --- a/OracleTextSearch.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim8093f21a7fa2083c' ) ) { - function wfJsonI18nShim8093f21a7fa2083c( $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'][] = 'wfJsonI18nShim8093f21a7fa2083c'; -} diff --git a/OracleTextSearch.php b/OracleTextSearch.php index deece5b..a0b56b7 100644 --- a/OracleTextSearch.php +++ b/OracleTextSearch.php @@ -18,7 +18,6 @@ $dir = dirname(__FILE__) . '/'; $wgMessagesDirs['OracleTextSearch'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['OracleTextSearch'] = $dir . 'OracleTextSearch.i18n.php'; $wgAutoloadClasses['SearchOracleText'] = $dir . 'SearchOracleText.php'; $wgHooks['UploadComplete'][] = 'SearchOracleText::onUploadCompleteHook'; -- To view, visit https://gerrit.wikimedia.org/r/387318 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I26f2ca4456d58bdb8addb2a29c5ed8251d7220a7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OracleTextSearch Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...OpenID[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387317 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I5510e48457d608c5f3fa88b73904473b6fd4094d --- D OpenID.i18n.php M OpenID.php 2 files changed, 0 insertions(+), 32 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OpenID refs/changes/17/387317/1 diff --git a/OpenID.i18n.php b/OpenID.i18n.php deleted file mode 100644 index 3dac8c8..000 --- a/OpenID.i18n.php +++ /dev/null @@ -1,31 +0,0 @@ -https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/generateJsonI18n.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(); -$GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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; -}; diff --git a/OpenID.php b/OpenID.php index 900f4c2..d754078 100644 --- a/OpenID.php +++ b/OpenID.php @@ -391,7 +391,6 @@ $dir = $path . '/'; $wgMessagesDirs['OpenID'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['OpenID'] = $dir . 'OpenID.i18n.php'; $wgExtensionMessagesFiles['OpenIDAlias'] = $dir . 'OpenID.alias.php'; $wgAutoloadClasses['OpenIDHooks'] = $dir . 'OpenID.hooks.php'; -- To view, visit https://gerrit.wikimedia.org/r/387317 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5510e48457d608c5f3fa88b73904473b6fd4094d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OpenID Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...OnlyRecentRecentChanges[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387316 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I4f2cd033eb8771a348aa456fca5ee8fa04dfa869 --- D OnlyRecentRecentChanges.i18n.php M OnlyRecentRecentChanges.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OnlyRecentRecentChanges refs/changes/16/387316/1 diff --git a/OnlyRecentRecentChanges.i18n.php b/OnlyRecentRecentChanges.i18n.php deleted file mode 100644 index ae55401..000 --- a/OnlyRecentRecentChanges.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShime8980c044fef6a01' ) ) { - function wfJsonI18nShime8980c044fef6a01( $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'][] = 'wfJsonI18nShime8980c044fef6a01'; -} diff --git a/OnlyRecentRecentChanges.php b/OnlyRecentRecentChanges.php index 307f1ab..1010a27 100644 --- a/OnlyRecentRecentChanges.php +++ b/OnlyRecentRecentChanges.php @@ -47,7 +47,6 @@ $dir = dirname( __FILE__ ); $wgMessagesDirs['OnlyRecentRecentChanges'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['OnlyRecentRecentChanges'] = $dir . '/OnlyRecentRecentChanges.i18n.php'; $wgHooks['GetPreferences'][] = 'onGetPreferences'; $wgHooks['SpecialRecentChangesQuery'][] = 'onSpecialRecentChangesQuery'; -- To view, visit https://gerrit.wikimedia.org/r/387316 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4f2cd033eb8771a348aa456fca5ee8fa04dfa869 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OnlyRecentRecentChanges Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...OdbcDatabase[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387314 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I296f659cf424a3fbc8bddfdf1c1678b1831b605d --- D OdbcDatabase.i18n.php M OdbcDatabase.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OdbcDatabase refs/changes/14/387314/1 diff --git a/OdbcDatabase.i18n.php b/OdbcDatabase.i18n.php deleted file mode 100644 index 0445aef..000 --- a/OdbcDatabase.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim6e045cce68ed4007' ) ) { - function wfJsonI18nShim6e045cce68ed4007( $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'][] = 'wfJsonI18nShim6e045cce68ed4007'; -} diff --git a/OdbcDatabase.php b/OdbcDatabase.php index 4c6bec8..54e0da4 100644 --- a/OdbcDatabase.php +++ b/OdbcDatabase.php @@ -15,7 +15,6 @@ ); $wgMessagesDirs['OdbcDatabase'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['OdbcDatabase'] = __DIR__ . '/OdbcDatabase.i18n.php'; $wgExtensionMessagesFiles['OdbcDatabaseAlias'] = __DIR__ . '/OdbcDatabase.alias.php'; $wgAutoloadClasses['DatabaseOdbc'] = $wgAutoloadClasses['OdbcField'] -- To view, visit https://gerrit.wikimedia.org/r/387314 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I296f659cf424a3fbc8bddfdf1c1678b1831b605d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OdbcDatabase Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...OnlineStatusBar[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387315 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ifa385a8b175a11104f12c5ada10b36487b310811 --- D OnlineStatusBar.i18n.php M OnlineStatusBar.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OnlineStatusBar refs/changes/15/387315/1 diff --git a/OnlineStatusBar.i18n.php b/OnlineStatusBar.i18n.php deleted file mode 100644 index 32ebd8c..000 --- a/OnlineStatusBar.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim12d2ebdf289cc2ee' ) ) { - function wfJsonI18nShim12d2ebdf289cc2ee( $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'][] = 'wfJsonI18nShim12d2ebdf289cc2ee'; -} diff --git a/OnlineStatusBar.php b/OnlineStatusBar.php index 4f4d3e1..3ee1614 100644 --- a/OnlineStatusBar.php +++ b/OnlineStatusBar.php @@ -25,7 +25,6 @@ $dir = dirname( __FILE__ ); $wgMessagesDirs['OnlineStatusBar'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['OnlineStatusBar'] = "$dir/OnlineStatusBar.i18n.php"; $wgExtensionMessagesFiles['OnlineStatusBarMagic'] = "$dir/OnlineStatusBar.i18n.magic.php"; $wgResourceModules['ext.OnlineStatusBar'] = array( -- To view, visit https://gerrit.wikimedia.org/r/387315 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifa385a8b175a11104f12c5ada10b36487b310811 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OnlineStatusBar Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Numbertext[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387293 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I69d85beda08691001daa97e84c26029c66549ea3 --- D Numbertext.i18n.php M Numbertext.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Numbertext refs/changes/93/387293/1 diff --git a/Numbertext.i18n.php b/Numbertext.i18n.php deleted file mode 100644 index 383b11a..000 --- a/Numbertext.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim1f7688db5ecb79d0' ) ) { - function wfJsonI18nShim1f7688db5ecb79d0( $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'][] = 'wfJsonI18nShim1f7688db5ecb79d0'; -} diff --git a/Numbertext.php b/Numbertext.php index bc2f1bf..5546b97 100644 --- a/Numbertext.php +++ b/Numbertext.php @@ -31,7 +31,6 @@ // Allow translations for this extension $wgMessagesDirs['Numbertext'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Numbertext'] = $dir . '/Numbertext.i18n.php'; $wgExtensionMessagesFiles['NumbertextMagic'] = $dir . '/Numbertext.i18n.magic.php'; //Preparing classes for autoloading -- To view, visit https://gerrit.wikimedia.org/r/387293 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I69d85beda08691001daa97e84c26029c66549ea3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Numbertext Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NewUserNotif[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387290 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I30707a5d49b898f2aed3d1b3369db4c1844e24cf --- D NewUserNotif.i18n.php M NewUserNotif.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NewUserNotif refs/changes/90/387290/1 diff --git a/NewUserNotif.i18n.php b/NewUserNotif.i18n.php deleted file mode 100644 index f9a1654..000 --- a/NewUserNotif.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim93cd0cf710ec7863' ) ) { - function wfJsonI18nShim93cd0cf710ec7863( $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'][] = 'wfJsonI18nShim93cd0cf710ec7863'; -} diff --git a/NewUserNotif.php b/NewUserNotif.php index f80dd9e..dc75aaf 100644 --- a/NewUserNotif.php +++ b/NewUserNotif.php @@ -23,7 +23,6 @@ $dir = dirname(__FILE__) . '/'; $wgMessagesDirs['NewUserNotif'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NewUserNotif'] = $dir . 'NewUserNotif.i18n.php'; $wgAutoloadClasses['NewUserNotifier'] = $dir . 'NewUserNotif.class.php'; $wgExtensionFunctions[] = 'efNewUserNotifSetup'; -- To view, visit https://gerrit.wikimedia.org/r/387290 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I30707a5d49b898f2aed3d1b3369db4c1844e24cf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NewUserNotif Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NukeDPL[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387292 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I0f12f00ec8ebd120125f6aac77e3ec26b8fbe357 --- D NukeDPL.i18n.php M NukeDPL.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NukeDPL refs/changes/92/387292/1 diff --git a/NukeDPL.i18n.php b/NukeDPL.i18n.php deleted file mode 100644 index 3ed6b9b..000 --- a/NukeDPL.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShima031014c7b95e1cb' ) ) { - function wfJsonI18nShima031014c7b95e1cb( $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'][] = 'wfJsonI18nShima031014c7b95e1cb'; -} diff --git a/NukeDPL.php b/NukeDPL.php index 1d0c239..01c0e57 100644 --- a/NukeDPL.php +++ b/NukeDPL.php @@ -16,7 +16,6 @@ $wgSpecialPages['NukeDPL'] = 'SpecialNukeDPL'; $wgMessagesDirs['NukeDPL'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NukeDPL'] = __DIR__ . '/NukeDPL.i18n.php'; $wgExtensionMessagesFiles['NukeDPLAliases'] = __DIR__ . '/NukeDPL.alias.php'; $wgAutoloadClasses['SpecialNukeDPL'] = __DIR__ . '/SpecialNukeDPL.php'; -- To view, visit https://gerrit.wikimedia.org/r/387292 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0f12f00ec8ebd120125f6aac77e3ec26b8fbe357 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NukeDPL Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NaturalLanguageList[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387289 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Iaf5a66cc8955871bf4a68e0d42c1be519c537f86 --- D NaturalLanguageList.i18n.php M NaturalLanguageList.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NaturalLanguageList refs/changes/89/387289/1 diff --git a/NaturalLanguageList.i18n.php b/NaturalLanguageList.i18n.php deleted file mode 100644 index b51d827..000 --- a/NaturalLanguageList.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimdfa30e989a36de13' ) ) { - function wfJsonI18nShimdfa30e989a36de13( $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'][] = 'wfJsonI18nShimdfa30e989a36de13'; -} diff --git a/NaturalLanguageList.php b/NaturalLanguageList.php index 5a670e6..cce96a5 100644 --- a/NaturalLanguageList.php +++ b/NaturalLanguageList.php @@ -47,7 +47,6 @@ $dir = dirname(__FILE__); $wgMessagesDirs['NaturalLanguageList'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NaturalLanguageList'] = "$dir/NaturalLanguageList.i18n.php"; $wgExtensionMessagesFiles['NaturalLanguageListMagic'] = "$dir/NaturalLanguageList.i18n.magic.php"; $wgHooks['ParserFirstCallInit'][] = 'NaturalLanguageList::onParserFirstCallInit'; -- To view, visit https://gerrit.wikimedia.org/r/387289 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iaf5a66cc8955871bf4a68e0d42c1be519c537f86 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NaturalLanguageList Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...News[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387288 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I64e71ba5398c965f7214e96582784eb0573b2df9 --- D News.i18n.php M News.php 2 files changed, 0 insertions(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/News refs/changes/88/387288/1 diff --git a/News.i18n.php b/News.i18n.php deleted file mode 100644 index a9b62c5..000 --- a/News.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimf8fc58ddb78f0746' ) ) { - function wfJsonI18nShimf8fc58ddb78f0746( $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'][] = 'wfJsonI18nShimf8fc58ddb78f0746'; -} diff --git a/News.php b/News.php index f42ead2..da77343 100644 --- a/News.php +++ b/News.php @@ -23,9 +23,7 @@ 'descriptionmsg' => 'newsextension-desc', ); -$dir = dirname(__FILE__) . '/'; $wgMessagesDirs['NewsExtension'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NewsExtension'] = $dir . 'News.i18n.php'; $wgNewsFeedURLPattern = false; // pattern for feed-URLs; useful when using rewrites for canonical feed URLs $wgNewsFeedUserPattern = false; // pattern to use for the author-field in feed items. -- To view, visit https://gerrit.wikimedia.org/r/387288 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I64e71ba5398c965f7214e96582784eb0573b2df9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/News Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NetworkAuth[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387287 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I5a9dd717fd73161d450da5a6c751505da3c15b97 --- D NetworkAuth.i18n.php M NetworkAuth.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NetworkAuth refs/changes/87/387287/1 diff --git a/NetworkAuth.i18n.php b/NetworkAuth.i18n.php deleted file mode 100644 index 77acb4f..000 --- a/NetworkAuth.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim43514bf13c9e3f6d' ) ) { - function wfJsonI18nShim43514bf13c9e3f6d( $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'][] = 'wfJsonI18nShim43514bf13c9e3f6d'; -} diff --git a/NetworkAuth.php b/NetworkAuth.php index c85a29a..f51651d 100644 --- a/NetworkAuth.php +++ b/NetworkAuth.php @@ -35,7 +35,6 @@ $wgAutoloadClasses['NetworkAuth'] = __DIR__ . '/NetworkAuth.class.php'; $wgMessagesDirs['NetworkAuth'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NetworkAuth'] = __DIR__ . '/NetworkAuth.i18n.php'; // defaults if ( !isset( $wgNetworkAuthUsers ) ) $wgNetworkAuthUsers = array(); -- To view, visit https://gerrit.wikimedia.org/r/387287 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5a9dd717fd73161d450da5a6c751505da3c15b97 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NetworkAuth Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Negref[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387286 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I40d81e4ce03f58d1987e8f5c65d0358aad94 --- D Negref.i18n.php M Negref.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Negref refs/changes/86/387286/1 diff --git a/Negref.i18n.php b/Negref.i18n.php deleted file mode 100644 index 6343798..000 --- a/Negref.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim85bfd12aa10549bd' ) ) { - function wfJsonI18nShim85bfd12aa10549bd( $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'][] = 'wfJsonI18nShim85bfd12aa10549bd'; -} diff --git a/Negref.php b/Negref.php index 4342981..88a2295 100644 --- a/Negref.php +++ b/Negref.php @@ -22,7 +22,6 @@ $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['NegRef'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NegRef'] = $dir . 'Negref.i18n.php'; $wgExtensionMessagesFiles['NegRefMagic'] = $dir . 'Negref.i18n.magic.php'; $wgHooks['ParserFirstCallInit'][] = 'efNegrefRegisterParser'; -- To view, visit https://gerrit.wikimedia.org/r/387286 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I40d81e4ce03f58d1987e8f5c65d0358aad94 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Negref Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NamespacePaths[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387285 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I04e3c1502307f9128b053933a5124be5eb56926c --- D NamespacePaths.i18n.php M NamespacePaths.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NamespacePaths refs/changes/85/387285/1 diff --git a/NamespacePaths.i18n.php b/NamespacePaths.i18n.php deleted file mode 100644 index 873c894..000 --- a/NamespacePaths.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim8b87a51c6e5f94a9' ) ) { - function wfJsonI18nShim8b87a51c6e5f94a9( $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'][] = 'wfJsonI18nShim8b87a51c6e5f94a9'; -} diff --git a/NamespacePaths.php b/NamespacePaths.php index 6f6a7e9..04bec60 100644 --- a/NamespacePaths.php +++ b/NamespacePaths.php @@ -22,7 +22,6 @@ ); $wgMessagesDirs['NamespacePaths'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NamespacePaths'] = dirname( __FILE__ ) . '/NamespacePaths.i18n.php'; $wgHooks['WebRequestPathInfoRouter'][] = 'efNamepacePathRouter'; $wgHooks['GetLocalURL::Article'][] = 'efNamepacePathsGetURL'; -- To view, visit https://gerrit.wikimedia.org/r/387285 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I04e3c1502307f9128b053933a5124be5eb56926c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NamespacePaths Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NamespaceRelations[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387284 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia369880b57bb47b5f18017c6c74b73eb91b81e67 --- D NamespaceRelations.i18n.php M NamespaceRelations.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NamespaceRelations refs/changes/84/387284/1 diff --git a/NamespaceRelations.i18n.php b/NamespaceRelations.i18n.php deleted file mode 100644 index 04384eb..000 --- a/NamespaceRelations.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimd3f01b19d2525ba1' ) ) { - function wfJsonI18nShimd3f01b19d2525ba1( $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'][] = 'wfJsonI18nShimd3f01b19d2525ba1'; -} diff --git a/NamespaceRelations.php b/NamespaceRelations.php index c817587..e9cb793 100644 --- a/NamespaceRelations.php +++ b/NamespaceRelations.php @@ -11,7 +11,6 @@ // Internationalization $wgMessagesDirs['NamespaceRelations'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['NamespaceRelations'] = $dir . '/NamespaceRelations.i18n.php'; // Attaching to hooks $wgHooks['SkinTemplateNavigation'][] = function( $skinTemplate, &$navigation ) { -- To view, visit https://gerrit.wikimedia.org/r/387284 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia369880b57bb47b5f18017c6c74b73eb91b81e67 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NamespaceRelations Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...NamespaceHTML[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387283 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I4e63994e33a5138ea6392e739428a421b892960d --- D NamespaceHTML.i18n.php M NamespaceHTML.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NamespaceHTML refs/changes/83/387283/1 diff --git a/NamespaceHTML.i18n.php b/NamespaceHTML.i18n.php deleted file mode 100644 index 7d3111a..000 --- a/NamespaceHTML.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim5b6a5480d39a73b6' ) ) { - function wfJsonI18nShim5b6a5480d39a73b6( $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'][] = 'wfJsonI18nShim5b6a5480d39a73b6'; -} diff --git a/NamespaceHTML.php b/NamespaceHTML.php index efd0434..7b7e44b 100644 --- a/NamespaceHTML.php +++ b/NamespaceHTML.php @@ -28,7 +28,6 @@ ); $wgAutoloadClasses['NamespaceHTML'] = __DIR__ . '/NamespaceHTML.class.php'; -$wgExtensionMessagesFiles['NamespaceHTML'] = __DIR__ . '/NamespaceHTML.i18n.php'; $wgMessagesDirs['NamespaceHTML'] = __DIR__ . '/i18n'; # If raw HTML allowed wiki-wide, don't do anything. -- To view, visit https://gerrit.wikimedia.org/r/387283 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4e63994e33a5138ea6392e739428a421b892960d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NamespaceHTML Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MSSQLBackCompat[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387276 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1659ac1cb880a5ae56e5c0f610ac6be275411c4e --- D MSSQLBackCompat.i18n.php M MSSQLBackCompat.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MSSQLBackCompat refs/changes/76/387276/1 diff --git a/MSSQLBackCompat.i18n.php b/MSSQLBackCompat.i18n.php deleted file mode 100644 index f34afd3..000 --- a/MSSQLBackCompat.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim7e4f68d40ec6bc74' ) ) { - function wfJsonI18nShim7e4f68d40ec6bc74( $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'][] = 'wfJsonI18nShim7e4f68d40ec6bc74'; -} diff --git a/MSSQLBackCompat.php b/MSSQLBackCompat.php index 2fbfb94..dd9a344 100644 --- a/MSSQLBackCompat.php +++ b/MSSQLBackCompat.php @@ -10,6 +10,5 @@ $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['MSSQLBackCompat'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['MSSQLBackCompat'] = $dir . 'MSSQLBackCompat.i18n.php'; $wgAutoloadClasses['DatabaseMssqlold'] = $dir . 'DatabaseMssqlOld.php'; $wgAutoloadClasses['MSSQLOldField'] = $dir . 'DatabaseMssqlOld.php'; -- To view, visit https://gerrit.wikimedia.org/r/387276 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1659ac1cb880a5ae56e5c0f610ac6be275411c4e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MSSQLBackCompat Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MultiMaps[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387277 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I59543e34c90a63954d8834b7af0486264843fa8b --- D MultiMaps.i18n.php M MultiMaps.php 2 files changed, 0 insertions(+), 32 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultiMaps refs/changes/77/387277/1 diff --git a/MultiMaps.i18n.php b/MultiMaps.i18n.php deleted file mode 100644 index eeb2776..000 --- a/MultiMaps.i18n.php +++ /dev/null @@ -1,31 +0,0 @@ -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(); -$GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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; -}; diff --git a/MultiMaps.php b/MultiMaps.php index 86709e2..1869e86 100644 --- a/MultiMaps.php +++ b/MultiMaps.php @@ -34,7 +34,6 @@ // Allow translations for this extension $wgMessagesDirs['MultiMaps'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['MultiMaps'] = $dir . '/MultiMaps.i18n.php'; $wgExtensionMessagesFiles['MultiMapsMagic'] = $dir . '/MultiMaps.i18n.magic.php'; // Include the settings file. -- To view, visit https://gerrit.wikimedia.org/r/387277 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I59543e34c90a63954d8834b7af0486264843fa8b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MultiMaps Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MarkAsHelpful[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387272 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: If827e0f46d970ec81737965ed8ea2f184db80496 --- D MarkAsHelpful.i18n.php M MarkAsHelpful.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MarkAsHelpful refs/changes/72/387272/1 diff --git a/MarkAsHelpful.i18n.php b/MarkAsHelpful.i18n.php deleted file mode 100644 index 5af00d4..000 --- a/MarkAsHelpful.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimfe92b6912c2a20c6' ) ) { - function wfJsonI18nShimfe92b6912c2a20c6( $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'][] = 'wfJsonI18nShimfe92b6912c2a20c6'; -} diff --git a/MarkAsHelpful.php b/MarkAsHelpful.php index 592acea..87f57af 100644 --- a/MarkAsHelpful.php +++ b/MarkAsHelpful.php @@ -57,7 +57,6 @@ // Internationalisation $wgMessagesDirs['MarkAsHelpful'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['MarkAsHelpful'] = $dir . 'MarkAsHelpful.i18n.php'; // Resources $mahResourceTemplate = array( -- To view, visit https://gerrit.wikimedia.org/r/387272 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If827e0f46d970ec81737965ed8ea2f184db80496 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MarkAsHelpful Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Model[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387274 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I84eb5fd6aff50ca8935753625a3372023ccc9a04 --- D Model.i18n.php M Model.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Model refs/changes/74/387274/1 diff --git a/Model.i18n.php b/Model.i18n.php deleted file mode 100644 index 81466b2..000 --- a/Model.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim035631a1f50ae7c2' ) ) { - function wfJsonI18nShim035631a1f50ae7c2( $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'][] = 'wfJsonI18nShim035631a1f50ae7c2'; -} diff --git a/Model.php b/Model.php index 398e42e..05ce3c1 100644 --- a/Model.php +++ b/Model.php @@ -41,7 +41,6 @@ /* Message Files */ $wgMessagesDirs['Model'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Model'] = dirname( __FILE__ ) . '/Model.i18n.php'; /* Autoload classes */ $wgAutoloadClasses['Model'] = dirname( __FILE__ ) . '/Model.class.php'; -- To view, visit https://gerrit.wikimedia.org/r/387274 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I84eb5fd6aff50ca8935753625a3372023ccc9a04 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Model Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Mpdf[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387275 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I8e72ebe044e076fa5f74fd98bfd37c80207bfa53 --- D Mpdf.i18n.php M Mpdf.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Mpdf refs/changes/75/387275/1 diff --git a/Mpdf.i18n.php b/Mpdf.i18n.php deleted file mode 100644 index 6955916..000 --- a/Mpdf.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim9f5c1c793b1bb26c' ) ) { - function wfJsonI18nShim9f5c1c793b1bb26c( $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'][] = 'wfJsonI18nShim9f5c1c793b1bb26c'; -} diff --git a/Mpdf.php b/Mpdf.php index 24ae484..77a4e9e 100644 --- a/Mpdf.php +++ b/Mpdf.php @@ -24,7 +24,6 @@ $wgAutoloadClasses['MpdfHooks'] = __DIR__ . '/Mpdf.hooks.php'; $wgAutoloadClasses['mPDF'] = __DIR__ . '/mpdf/mpdf.php'; $wgMessagesDirs['Mpdf'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Mpdf'] =__DIR__ . '/Mpdf.i18n.php'; $wgExtensionMessagesFiles['MpdfMagic'] = __DIR__ . '/Mpdf.i18n.magic.php'; $wgExtensionCredits['parserhook'][] = array( -- To view, visit https://gerrit.wikimedia.org/r/387275 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8e72ebe044e076fa5f74fd98bfd37c80207bfa53 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Mpdf Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MobileDetect[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387273 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I354d610eea42570a641cc936e9243a15c35d1678 --- D MobileDetect.i18n.php M MobileDetect.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileDetect refs/changes/73/387273/1 diff --git a/MobileDetect.i18n.php b/MobileDetect.i18n.php deleted file mode 100644 index 3eaa541..000 --- a/MobileDetect.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim9f9518fdf44e8f14' ) ) { - function wfJsonI18nShim9f9518fdf44e8f14( $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'][] = 'wfJsonI18nShim9f9518fdf44e8f14'; -} diff --git a/MobileDetect.php b/MobileDetect.php index b8fd359..1cf67f9 100644 --- a/MobileDetect.php +++ b/MobileDetect.php @@ -9,7 +9,6 @@ 'url' => 'https://www.mediawiki.org/wiki/Extension:MobileDetect', ); -$wgExtensionMessagesFiles['MobileDetect'] = __DIR__ . '/MobileDetect.i18n.php'; $wgMessagesDirs['MobileDetect'] = __DIR__ . '/i18n'; $wgAutoloadClasses['MobileDetect'] = __DIR__ . '/MobileDetect.body.php'; -- To view, visit https://gerrit.wikimedia.org/r/387273 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I354d610eea42570a641cc936e9243a15c35d1678 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileDetect Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LogEntry[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387265 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I30ab6d03d1a40c9f61c3c230c7445ec283728f6f --- D LogEntry.i18n.php M LogEntry.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LogEntry refs/changes/65/387265/1 diff --git a/LogEntry.i18n.php b/LogEntry.i18n.php deleted file mode 100644 index 9c0f12c..000 --- a/LogEntry.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimeb7c07a56af3939b' ) ) { - function wfJsonI18nShimeb7c07a56af3939b( $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'][] = 'wfJsonI18nShimeb7c07a56af3939b'; -} diff --git a/LogEntry.php b/LogEntry.php index ce46bdf..e851790 100644 --- a/LogEntry.php +++ b/LogEntry.php @@ -50,7 +50,6 @@ // Internationalization $wgMessagesDirs['LogEntry'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['LogEntry'] = $dir . 'LogEntry.i18n.php'; $wgExtensionMessagesFiles['LogEntryAlias'] = $dir . 'LogEntry.alias.php'; // Register auto load for the special page class -- To view, visit https://gerrit.wikimedia.org/r/387265 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I30ab6d03d1a40c9f61c3c230c7445ec283728f6f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LogEntry Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LiveTranslate[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387264 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I4bda6fb537be2e1fafc69048eca1218449947fd6 --- D LiveTranslate.i18n.php M LiveTranslate.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiveTranslate refs/changes/64/387264/1 diff --git a/LiveTranslate.i18n.php b/LiveTranslate.i18n.php deleted file mode 100644 index 88f64ff..000 --- a/LiveTranslate.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim768593a9363afffc' ) ) { - function wfJsonI18nShim768593a9363afffc( $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'][] = 'wfJsonI18nShim768593a9363afffc'; -} diff --git a/LiveTranslate.php b/LiveTranslate.php index cff39c3..b914489 100644 --- a/LiveTranslate.php +++ b/LiveTranslate.php @@ -42,7 +42,6 @@ unset( $useExtensionPath ); $wgMessagesDirs['LiveTranslate'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['LiveTranslate'] = $egLiveTranslateIP . '/LiveTranslate.i18n.php'; $wgExtensionMessagesFiles['LiveTranslateAlias'] = $egLiveTranslateIP . '/LiveTranslate.i18n.alias.php'; $wgExtensionMessagesFiles['LiveTranslateMagic'] = $egLiveTranslateIP . '/LiveTranslate.i18n.magic.php'; -- To view, visit https://gerrit.wikimedia.org/r/387264 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4bda6fb537be2e1fafc69048eca1218449947fd6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LiveTranslate Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ListSignup[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387263 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I9e96b737ba17feb919599bfd9b3baeec98841938 --- D ListSignup.i18n.php M ListSignup.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ListSignup refs/changes/63/387263/1 diff --git a/ListSignup.i18n.php b/ListSignup.i18n.php deleted file mode 100644 index ea571c6..000 --- a/ListSignup.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim3b41375c7c75da82' ) ) { - function wfJsonI18nShim3b41375c7c75da82( $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'][] = 'wfJsonI18nShim3b41375c7c75da82'; -} diff --git a/ListSignup.php b/ListSignup.php index edcd51d..572d758 100644 --- a/ListSignup.php +++ b/ListSignup.php @@ -26,7 +26,6 @@ $wgAutoloadClasses['SpecialListSignupPurge'] = __DIR__ . '/specials/SpecialListSignupPurge.php'; $wgMessagesDirs['ListSignup'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['ListSignup'] = __DIR__ . '/ListSignup.i18n.php'; $wgExtensionMessagesFiles['ListSignupAlias'] = __DIR__ . '/ListSignup.alias.php'; $wgSpecialPages['ListSignup'] = 'SpecialListSignup'; -- To view, visit https://gerrit.wikimedia.org/r/387263 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9e96b737ba17feb919599bfd9b3baeec98841938 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ListSignup Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LifeWeb[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387262 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I062c1f3987384490d4d00b70ec76d067745335a8 --- D LifeWeb.i18n.php M LifeWeb.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LifeWeb refs/changes/62/387262/1 diff --git a/LifeWeb.i18n.php b/LifeWeb.i18n.php deleted file mode 100644 index 12c5645..000 --- a/LifeWeb.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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 = []; -if ( !function_exists( 'wfJsonI18nShim57ed52be82138dda' ) ) { - function wfJsonI18nShim57ed52be82138dda( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( [ $code ], $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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'][] = 'wfJsonI18nShim57ed52be82138dda'; -} diff --git a/LifeWeb.php b/LifeWeb.php index 0293247..1ece34e 100644 --- a/LifeWeb.php +++ b/LifeWeb.php @@ -27,7 +27,6 @@ # Location of the SpecialMyExtension class (Tell MediaWiki to load this file) $wgAutoloadClasses[ 'SpecialLifeWeb' ] = __DIR__ . '/SpecialLifeWeb.php'; $wgMessagesDirs['LifeWeb'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles[ 'LifeWeb' ] = __DIR__ . '/LifeWeb.i18n.php'; $wgExtensionMessagesFiles[ 'LifeWebAlias' ] = __DIR__ . '/LifeWeb.alias.php'; # Tell MediaWiki about the new special page and its class name $wgSpecialPages[ 'LifeWeb' ] = 'SpecialLifeWeb'; -- To view, visit https://gerrit.wikimedia.org/r/387262 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I062c1f3987384490d4d00b70ec76d067745335a8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LifeWeb Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LastModified[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387261 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia81f41bdc8b387b912c20eb49961d4d88c6c6a4d --- D LastModified.i18n.php M LastModified.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LastModified refs/changes/61/387261/1 diff --git a/LastModified.i18n.php b/LastModified.i18n.php deleted file mode 100644 index ed7c921..000 --- a/LastModified.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim167220cd64398e14' ) ) { - function wfJsonI18nShim167220cd64398e14( $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'][] = 'wfJsonI18nShim167220cd64398e14'; -} diff --git a/LastModified.php b/LastModified.php index 8841e87..594c05e 100644 --- a/LastModified.php +++ b/LastModified.php @@ -39,7 +39,6 @@ $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['LastModified'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['LastModified'] = $dir . 'LastModified.i18n.php'; /** * ADDITIONAL MAGICAL GLOBALS -- To view, visit https://gerrit.wikimedia.org/r/387261 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia81f41bdc8b387b912c20eb49961d4d88c6c6a4d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LastModified Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LanguageSelector[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387259 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I9f1f9b611314643cb90a94cdf2f9333f4c90f2c4 --- D LanguageSelector.i18n.php M LanguageSelector.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LanguageSelector refs/changes/59/387259/1 diff --git a/LanguageSelector.i18n.php b/LanguageSelector.i18n.php deleted file mode 100644 index 5189e18..000 --- a/LanguageSelector.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimeb0145ac2e4bf0b1' ) ) { - function wfJsonI18nShimeb0145ac2e4bf0b1( $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'][] = 'wfJsonI18nShimeb0145ac2e4bf0b1'; -} diff --git a/LanguageSelector.php b/LanguageSelector.php index ea9f99a..5284276 100644 --- a/LanguageSelector.php +++ b/LanguageSelector.php @@ -91,7 +91,6 @@ $dir = __DIR__ . '/'; $wgMessagesDirs['LanguageSelector'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['LanguageSelector'] = $dir . 'LanguageSelector.i18n.php'; $wgJSAutoloadClasses['LanguageSelector'] = 'extensions/LanguageSelector/LanguageSelector.js'; /** -- To view, visit https://gerrit.wikimedia.org/r/387259 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9f1f9b611314643cb90a94cdf2f9333f4c90f2c4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LanguageSelector Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...LanguageTag[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387260 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I2f0be5fb5cc7a6269ac83c817ddbee4c95737179 --- D LanguageTag.i18n.php M LanguageTag.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LanguageTag refs/changes/60/387260/1 diff --git a/LanguageTag.i18n.php b/LanguageTag.i18n.php deleted file mode 100644 index 93be061..000 --- a/LanguageTag.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim5032a84a24d85a7c' ) ) { - function wfJsonI18nShim5032a84a24d85a7c( $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'][] = 'wfJsonI18nShim5032a84a24d85a7c'; -} diff --git a/LanguageTag.php b/LanguageTag.php index 9c5ee4a..9371499 100644 --- a/LanguageTag.php +++ b/LanguageTag.php @@ -25,6 +25,5 @@ ); $wgMessagesDirs['LanguageTag'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['LanguageTag'] = __DIR__ . '/LanguageTag.i18n.php'; $wgAutoloadClasses['LanguageTag'] = __DIR__ . '/LanguageTag.body.php'; $wgHooks['ParserFirstCallInit'][] = 'LanguageTag::LanguageTagParserInit'; -- To view, visit https://gerrit.wikimedia.org/r/387260 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2f0be5fb5cc7a6269ac83c817ddbee4c95737179 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LanguageTag Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...InteractiveBlockMessage[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387253 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I771238ddafb81a9d3201d086728d55855ce2 --- D InteractiveBlockMessage.i18n.php M InteractiveBlockMessage.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/InteractiveBlockMessage refs/changes/53/387253/1 diff --git a/InteractiveBlockMessage.i18n.php b/InteractiveBlockMessage.i18n.php deleted file mode 100644 index 3ea848d..000 --- a/InteractiveBlockMessage.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimd1d9975b0a781c7c' ) ) { - function wfJsonI18nShimd1d9975b0a781c7c( $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'][] = 'wfJsonI18nShimd1d9975b0a781c7c'; -} diff --git a/InteractiveBlockMessage.php b/InteractiveBlockMessage.php index 32dbcc0..0f99ba5 100644 --- a/InteractiveBlockMessage.php +++ b/InteractiveBlockMessage.php @@ -28,7 +28,6 @@ $wgAutoloadClasses['InteractiveBlockMessageHooks'] = "$dir/InteractiveBlockMessageHooks.php"; $wgMessagesDirs['InteractiveBlockMessage'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['InteractiveBlockMessage'] = "$dir/InteractiveBlockMessage.i18n.php"; $wgExtensionMessagesFiles['InteractiveBlockMessageMagic'] = "$dir/InteractiveBlockMessage.i18n.magic.php"; $wgHooks['MagicWordwgVariableIDs'][] = 'InteractiveBlockMessageHooks::magicWordSet'; -- To view, visit https://gerrit.wikimedia.org/r/387253 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I771238ddafb81a9d3201d086728d55855ce2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/InteractiveBlockMessage Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...InlineCategorizer[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387252 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I7ff98ef62b848de0d34698fec0da43fc2066bb2a --- D InlineCategorizer.i18n.php M InlineCategorizer.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/InlineCategorizer refs/changes/52/387252/1 diff --git a/InlineCategorizer.i18n.php b/InlineCategorizer.i18n.php deleted file mode 100644 index 560350a..000 --- a/InlineCategorizer.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim2aa3e5870694fd83' ) ) { - function wfJsonI18nShim2aa3e5870694fd83( $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'][] = 'wfJsonI18nShim2aa3e5870694fd83'; -} diff --git a/InlineCategorizer.php b/InlineCategorizer.php index 252ec72..9a879b1 100644 --- a/InlineCategorizer.php +++ b/InlineCategorizer.php @@ -40,7 +40,6 @@ $dir = dirname( __FILE__ ) . '/'; $wgAutoloadClasses['InlineCategorizerHooks'] = $dir . 'InlineCategorizer.hooks.php'; $wgMessagesDirs['InlineCategorizer'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['InlineCategorizer'] = $dir . 'InlineCategorizer.i18n.php'; // Hooks $wgHooks['BeforePageDisplay'][] = 'InlineCategorizerHooks::beforePageDisplay'; -- To view, visit https://gerrit.wikimedia.org/r/387252 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7ff98ef62b848de0d34698fec0da43fc2066bb2a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/InlineCategorizer Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...IndexFunction[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387251 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: If2d0c9b58db12dd412611de6a5e31b880124e22d --- D IndexFunction.i18n.php M IndexFunction.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IndexFunction refs/changes/51/387251/1 diff --git a/IndexFunction.i18n.php b/IndexFunction.i18n.php deleted file mode 100644 index 1612dc8..000 --- a/IndexFunction.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimfd761845f07d4492' ) ) { - function wfJsonI18nShimfd761845f07d4492( $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'][] = 'wfJsonI18nShimfd761845f07d4492'; -} diff --git a/IndexFunction.php b/IndexFunction.php index 385f681..c0bcf0b 100644 --- a/IndexFunction.php +++ b/IndexFunction.php @@ -39,7 +39,6 @@ # i18n $wgExtensionMessagesFiles['IndexFunctionAlias'] = $dir . 'IndexFunction.alias.php'; $wgMessagesDirs['IndexFunction'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['IndexFunction'] = $dir . 'IndexFunction.i18n.php'; $wgExtensionMessagesFiles['IndexFunctionMagic'] = $dir . 'IndexFunction.i18n.magic.php'; # Register classes with the autoloader -- To view, visit https://gerrit.wikimedia.org/r/387251 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If2d0c9b58db12dd412611de6a5e31b880124e22d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/IndexFunction Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...IfTemplates[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387250 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I4a8b1d5486386e975217b901a53d089b408dc1c8 --- D IfTemplates.i18n.php M IfTemplates.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IfTemplates refs/changes/50/387250/1 diff --git a/IfTemplates.i18n.php b/IfTemplates.i18n.php deleted file mode 100644 index ab96852..000 --- a/IfTemplates.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim283d780681b8b57c' ) ) { - function wfJsonI18nShim283d780681b8b57c( $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'][] = 'wfJsonI18nShim283d780681b8b57c'; -} diff --git a/IfTemplates.php b/IfTemplates.php index 981a5b7..951e4c2 100644 --- a/IfTemplates.php +++ b/IfTemplates.php @@ -23,7 +23,6 @@ $wgAutoloadClasses['IfTemplates'] = __DIR__ . '/IfTemplates.class.php'; $wgHooks['ParserFirstCallInit'][] = 'ifTemplatesSetupParserFunction'; -$wgExtensionMessagesFiles['IfTemplates'] = __DIR__ . '/IfTemplates.i18n.php'; $wgExtensionMessagesFiles['IfTemplatesMagic'] = __DIR__ . '/IfTemplates.magic.php'; $wgMessagesDirs['IfTemplates'] = __DIR__ . '/i18n'; -- To view, visit https://gerrit.wikimedia.org/r/387250 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4a8b1d5486386e975217b901a53d089b408dc1c8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/IfTemplates Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Interlanguage[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387248 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1c0c3964542d332608ec03b95c0a52a6b3715f3e --- D Interlanguage.i18n.php M Interlanguage.php D InterlanguageCentral.i18n.php M InterlanguageCentral.php 4 files changed, 0 insertions(+), 72 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Interlanguage refs/changes/48/387248/1 diff --git a/Interlanguage.i18n.php b/Interlanguage.i18n.php deleted file mode 100644 index 0be6050..000 --- a/Interlanguage.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim4c09fa90b6e66b02' ) ) { - function wfJsonI18nShim4c09fa90b6e66b02( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = dirname( __FILE__ ) . "/i18n/interlanguage/$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'][] = 'wfJsonI18nShim4c09fa90b6e66b02'; -} diff --git a/Interlanguage.php b/Interlanguage.php index f15e1a9..06c000d 100644 --- a/Interlanguage.php +++ b/Interlanguage.php @@ -38,7 +38,6 @@ ); $wgMessagesDirs['Interlanguage'] = __DIR__ . '/i18n/interlanguage'; -$wgExtensionMessagesFiles['Interlanguage'] = dirname(__FILE__) . '/Interlanguage.i18n.php'; $wgExtensionMessagesFiles['InterlanguageMagic'] = dirname(__FILE__) . '/Interlanguage.i18n.magic.php'; $wgAutoloadClasses['InterlanguageExtension'] = dirname(__FILE__) . '/InterlanguageExtension.php'; $wgHooks['ParserFirstCallInit'][] = 'wfInterlanguageExtension'; diff --git a/InterlanguageCentral.i18n.php b/InterlanguageCentral.i18n.php deleted file mode 100644 index 7a3b27a..000 --- a/InterlanguageCentral.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim0cfb63709eabef49' ) ) { - function wfJsonI18nShim0cfb63709eabef49( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = dirname( __FILE__ ) . "/i18n/central/$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'][] = 'wfJsonI18nShim0cf
[MediaWiki-commits] [Gerrit] mediawiki...IframePage[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387247 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I9cc0688a78a8e8beca5e727140f72ed44e676536 --- D IframePage.i18n.php M IframePage.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IframePage refs/changes/47/387247/1 diff --git a/IframePage.i18n.php b/IframePage.i18n.php deleted file mode 100644 index ecb375d..000 --- a/IframePage.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimd39110c671025fc4' ) ) { - function wfJsonI18nShimd39110c671025fc4( $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'][] = 'wfJsonI18nShimd39110c671025fc4'; -} diff --git a/IframePage.php b/IframePage.php index d68b174..009fd31 100644 --- a/IframePage.php +++ b/IframePage.php @@ -37,7 +37,6 @@ $wgIframePageAllowPath = false; $wgAutoloadClasses['SpecialIframePage'] = __DIR__ . '/SpecialIframePage.php'; -$wgExtensionMessagesFiles['IframePage'] = __DIR__ . '/IframePage.i18n.php'; $wgExtensionMessagesFiles['IframePageAlias'] = __DIR__ . '/IframePage.alias.php'; $wgMessagesDirs['IframePage'] = __DIR__ . '/i18n'; $wgSpecialPages['IframePage'] = 'SpecialIframePage'; -- To view, visit https://gerrit.wikimedia.org/r/387247 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9cc0688a78a8e8beca5e727140f72ed44e676536 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/IframePage Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...HelpPages[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387100 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Iac67b3d1374445c530390b8158ef483a37e51144 --- D HelpPages.i18n.php M HelpPages.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HelpPages refs/changes/00/387100/1 diff --git a/HelpPages.i18n.php b/HelpPages.i18n.php deleted file mode 100644 index ab89ca5..000 --- a/HelpPages.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim9f18eee4e9e56396' ) ) { - function wfJsonI18nShim9f18eee4e9e56396( $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'][] = 'wfJsonI18nShim9f18eee4e9e56396'; -} diff --git a/HelpPages.php b/HelpPages.php index c174903..2c69e5b 100644 --- a/HelpPages.php +++ b/HelpPages.php @@ -38,7 +38,6 @@ $wgAutoloadClasses['HelpPagesHooks'] = $dir . '/HelpPages.hooks.php'; $wgMessagesDirs['HelpPages'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['HelpPages'] = "$dir/HelpPages.i18n.php"; $wgHooks['ShowMissingArticle'][] = 'HelpPagesHooks::onShowMissingArticle'; $wgHooks['SkinTemplateNavigation::Universal'][] = 'HelpPagesHooks::onSkinTemplateNavigationUniversal'; -- To view, visit https://gerrit.wikimedia.org/r/387100 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iac67b3d1374445c530390b8158ef483a37e51144 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HelpPages Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...HelpCommons[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387099 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I71286bdfcb8937a43adb82dadee04a8f35997be3 --- D HelpCommons.i18n.php M HelpCommons.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HelpCommons refs/changes/99/387099/1 diff --git a/HelpCommons.i18n.php b/HelpCommons.i18n.php deleted file mode 100644 index 3620a15..000 --- a/HelpCommons.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimad95807bb712ee2b' ) ) { - function wfJsonI18nShimad95807bb712ee2b( $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'][] = 'wfJsonI18nShimad95807bb712ee2b'; -} diff --git a/HelpCommons.php b/HelpCommons.php index 8463f15..4b4ba5a 100644 --- a/HelpCommons.php +++ b/HelpCommons.php @@ -29,7 +29,6 @@ // Internationalization $wgMessagesDirs['HelpCommons'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['HelpCommons'] = dirname( __FILE__ ) . '/HelpCommons.i18n.php'; // Help wiki(s) where the help namespace is fetched from // You only need to give a database if you use help pages from your own wiki family so help pages are not fetched for help wiki from help wiki -- To view, visit https://gerrit.wikimedia.org/r/387099 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I71286bdfcb8937a43adb82dadee04a8f35997be3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HelpCommons Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...HidePrefix[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387098 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I90e341bfb227bed11d884d3391a89b5c740af0d5 --- D HidePrefix.i18n.php M HidePrefix.php 2 files changed, 0 insertions(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HidePrefix refs/changes/98/387098/1 diff --git a/HidePrefix.i18n.php b/HidePrefix.i18n.php deleted file mode 100644 index 90bdf4c..000 --- a/HidePrefix.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim8bb739d4f3499a5c' ) ) { - function wfJsonI18nShim8bb739d4f3499a5c( $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'][] = 'wfJsonI18nShim8bb739d4f3499a5c'; -} diff --git a/HidePrefix.php b/HidePrefix.php index 21ff67c..a808a6c 100644 --- a/HidePrefix.php +++ b/HidePrefix.php @@ -33,8 +33,6 @@ global $wgMessagesDirs; $wgMessagesDirs['HidePrefix'] = __DIR__ . '/i18n'; -global $wgExtensionMessagesFiles; -$wgExtensionMessagesFiles[ 'HidePrefix' ] = $extHidePrefixDir . '/HidePrefix.i18n.php'; global $wgExtensionCredits; $wgExtensionCredits[ 'other' ][] = array( -- To view, visit https://gerrit.wikimedia.org/r/387098 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I90e341bfb227bed11d884d3391a89b5c740af0d5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HidePrefix Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...HTMLTags[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387097 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I4cdf26e9541aacc35694eb373fd45acdec408262 --- D HTMLTags.i18n.php M HTMLTags.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HTMLTags refs/changes/97/387097/1 diff --git a/HTMLTags.i18n.php b/HTMLTags.i18n.php deleted file mode 100644 index b8dfa47..000 --- a/HTMLTags.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim415efb0897f581fa' ) ) { - function wfJsonI18nShim415efb0897f581fa( $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'][] = 'wfJsonI18nShim415efb0897f581fa'; -} diff --git a/HTMLTags.php b/HTMLTags.php index 69c5543..928bbdf 100644 --- a/HTMLTags.php +++ b/HTMLTags.php @@ -33,7 +33,6 @@ // Internationalization $wgMessagesDirs['HTMLTags'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['HTMLTags'] = __DIR__ . '/HTMLTags.i18n.php'; // Register classes $wgAutoloadClasses['HTMLTags'] = __DIR__ . '/HTMLTags_body.php'; -- To view, visit https://gerrit.wikimedia.org/r/387097 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4cdf26e9541aacc35694eb373fd45acdec408262 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/HTMLTags Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GroupsSidebar[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387096 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia6c7c01fd7786e7a625530eabafbaa23d9e28e22 --- D GroupsSidebar.i18n.php M GroupsSidebar.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GroupsSidebar refs/changes/96/387096/1 diff --git a/GroupsSidebar.i18n.php b/GroupsSidebar.i18n.php deleted file mode 100644 index 9bb269f..000 --- a/GroupsSidebar.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimf8d77a1dc348853c' ) ) { - function wfJsonI18nShimf8d77a1dc348853c( $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'][] = 'wfJsonI18nShimf8d77a1dc348853c'; -} diff --git a/GroupsSidebar.php b/GroupsSidebar.php index 1c4d5cd..f2c15e0 100644 --- a/GroupsSidebar.php +++ b/GroupsSidebar.php @@ -18,4 +18,3 @@ $wgAutoloadClasses['GroupsSidebar'] = $dir . 'GroupsSidebar.body.php'; # Tell MediaWiki to load the extension body. $wgHooks['SkinBuildSidebar'][] = array(new GroupsSidebar(), 'efHideSidebar'); $wgMessagesDirs['GroupsSidebar'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['GroupsSidebar'] = $dir . 'GroupsSidebar.i18n.php'; -- To view, visit https://gerrit.wikimedia.org/r/387096 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia6c7c01fd7786e7a625530eabafbaa23d9e28e22 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GroupsSidebar Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GooglePlusOne[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387095 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I034b90b1d73eaaef64cea369d15a84591f5d25df --- D GooglePlusOne.i18n.php M GooglePlusOne.php 2 files changed, 0 insertions(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GooglePlusOne refs/changes/95/387095/1 diff --git a/GooglePlusOne.i18n.php b/GooglePlusOne.i18n.php deleted file mode 100644 index aff4dcb..000 --- a/GooglePlusOne.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimb4acd0647b410aef' ) ) { - function wfJsonI18nShimb4acd0647b410aef( $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'][] = 'wfJsonI18nShimb4acd0647b410aef'; -} diff --git a/GooglePlusOne.php b/GooglePlusOne.php index 9396f87..0b9c911 100644 --- a/GooglePlusOne.php +++ b/GooglePlusOne.php @@ -22,9 +22,7 @@ 'descriptionmsg' => 'googleplusone-desc' ); -$dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['GooglePlusOne'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['GooglePlusOne'] = $dir . 'GooglePlusOne.i18n.php'; $wgExtensionFunctions[] = "googlePlusOneExtension"; -- To view, visit https://gerrit.wikimedia.org/r/387095 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I034b90b1d73eaaef64cea369d15a84591f5d25df Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GooglePlusOne Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GoogleDocTag[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387094 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I42105e0feb0cc576f4e4537e4c7c22f2a5f32f63 --- D GoogleDocTag.i18n.php M GoogleDocTag.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleDocTag refs/changes/94/387094/1 diff --git a/GoogleDocTag.i18n.php b/GoogleDocTag.i18n.php deleted file mode 100755 index e3c2ed4..000 --- a/GoogleDocTag.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim445a856bf4337c58' ) ) { - function wfJsonI18nShim445a856bf4337c58( $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'][] = 'wfJsonI18nShim445a856bf4337c58'; -} diff --git a/GoogleDocTag.php b/GoogleDocTag.php index bfa4157..3e5635f 100755 --- a/GoogleDocTag.php +++ b/GoogleDocTag.php @@ -10,7 +10,6 @@ ); $wgMessagesDirs['GoogleDocTag'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['GoogleDocTag'] = __DIR__ . '/GoogleDocTag.i18n.php'; $wgAutoloadClasses['GoogleDocTag'] = __DIR__ . '/GoogleDocTag.body.php'; -- To view, visit https://gerrit.wikimedia.org/r/387094 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I42105e0feb0cc576f4e4537e4c7c22f2a5f32f63 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GoogleDocTag Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...googleAnalytics[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387092 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I44e85f436cbdd9374df5b433185be9917778a768 --- D googleAnalytics.i18n.php M googleAnalytics.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/googleAnalytics refs/changes/92/387092/1 diff --git a/googleAnalytics.i18n.php b/googleAnalytics.i18n.php deleted file mode 100644 index 7dc98da..000 --- a/googleAnalytics.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim28b7c9bc77b319b9' ) ) { - function wfJsonI18nShim28b7c9bc77b319b9( $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'][] = 'wfJsonI18nShim28b7c9bc77b319b9'; -} diff --git a/googleAnalytics.php b/googleAnalytics.php index cec3b64..6f5e33c 100644 --- a/googleAnalytics.php +++ b/googleAnalytics.php @@ -17,7 +17,6 @@ ); $wgMessagesDirs['googleAnalytics'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['googleAnalytics'] = __DIR__ . '/googleAnalytics.i18n.php'; /*** Default configuration ***/ -- To view, visit https://gerrit.wikimedia.org/r/387092 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I44e85f436cbdd9374df5b433185be9917778a768 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/googleAnalytics Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GoogleCustomWikiSearch[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387093 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ic5afdd59e08bccb014995d00bc7e726c16c4a976 --- D GoogleCustomWikiSearch.i18n.php M GoogleCustomWikiSearch.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleCustomWikiSearch refs/changes/93/387093/1 diff --git a/GoogleCustomWikiSearch.i18n.php b/GoogleCustomWikiSearch.i18n.php deleted file mode 100644 index 2605fa5..000 --- a/GoogleCustomWikiSearch.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim55ff1d77a03bc06a' ) ) { - function wfJsonI18nShim55ff1d77a03bc06a( $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'][] = 'wfJsonI18nShim55ff1d77a03bc06a'; -} diff --git a/GoogleCustomWikiSearch.php b/GoogleCustomWikiSearch.php index b342c2d..a855f46 100644 --- a/GoogleCustomWikiSearch.php +++ b/GoogleCustomWikiSearch.php @@ -22,7 +22,6 @@ $wgExtensionMessagesFiles['GoogleCustomWikiSearchAlias'] = $dir . 'SpecialGoogleCustomWikiSearch.alias.php'; $wgMessagesDirs['GoogleCustomWikiSearch'] = $dir . 'i18n'; -$wgExtensionMessagesFiles['GoogleCustomWikiSearch'] = $dir . 'GoogleCustomWikiSearch.i18n.php'; $wgSpecialPages['GoogleCustomWikiSearch'] = 'SpecialGoogleCustomWikiSearch'; -- To view, visit https://gerrit.wikimedia.org/r/387093 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic5afdd59e08bccb014995d00bc7e726c16c4a976 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GoogleCustomWikiSearch Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GeoGebra[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387091 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Iec0d6641fba4703f5774ce08cdbc3ecd3433576d --- D GeoGebra.i18n.php M GeoGebra.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GeoGebra refs/changes/91/387091/1 diff --git a/GeoGebra.i18n.php b/GeoGebra.i18n.php deleted file mode 100644 index 4485d31..000 --- a/GeoGebra.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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 = []; -if ( !function_exists( 'wfJsonI18nShim3e5b83981da0fb00' ) ) { - function wfJsonI18nShim3e5b83981da0fb00( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( [ $code ], $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = __DIR__ . "/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'][] = 'wfJsonI18nShim3e5b83981da0fb00'; -} diff --git a/GeoGebra.php b/GeoGebra.php index 7dc0f4e..62adc80 100644 --- a/GeoGebra.php +++ b/GeoGebra.php @@ -15,7 +15,6 @@ ]; $wgAutoloadClasses['ExtGeoGebra'] = __DIR__ . '/GeoGebra.body.php'; -$wgExtensionMessagesFiles['GeoGebra'] = __DIR__ . '/GeoGebra.i18n.php'; $wgMessagesDirs['GeoGebra'] = __DIR__ . '/i18n'; $wgHooks['ParserFirstCallInit'][] = 'wfGeoGebraInit'; -- To view, visit https://gerrit.wikimedia.org/r/387091 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iec0d6641fba4703f5774ce08cdbc3ecd3433576d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GeoGebra Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Genderize[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387090 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ie0823c87287b0ea56c40a4b29e84ec554a04ddfe --- D Genderize.i18n.php M Genderize.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Genderize refs/changes/90/387090/1 diff --git a/Genderize.i18n.php b/Genderize.i18n.php deleted file mode 100644 index 62fa8db..000 --- a/Genderize.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim815c863afc8d7327' ) ) { - function wfJsonI18nShim815c863afc8d7327( $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'][] = 'wfJsonI18nShim815c863afc8d7327'; -} diff --git a/Genderize.php b/Genderize.php index f8f1cc0..d626e1b 100644 --- a/Genderize.php +++ b/Genderize.php @@ -42,7 +42,6 @@ // Internationlization $wgMessagesDirs['Genderize'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles[ 'Genderize' ] = dirname(__FILE__) . '/Genderize.i18n.php'; // Default definitions $egGenderize = array( -- To view, visit https://gerrit.wikimedia.org/r/387090 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie0823c87287b0ea56c40a4b29e84ec554a04ddfe Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Genderize Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...FirstSteps[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387086 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I0b91b529b16dc115f974ea13bf14d58bb93423f7 --- D FirstSteps.i18n.php M FirstSteps.php 2 files changed, 1 insertion(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FirstSteps refs/changes/86/387086/1 diff --git a/FirstSteps.i18n.php b/FirstSteps.i18n.php deleted file mode 100644 index 6d22727..000 --- a/FirstSteps.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimef5bf629a51f0c75' ) ) { - function wfJsonI18nShimef5bf629a51f0c75( $cache, $code, &$cachedData ) { - $codeSequence = array_merge( array( $code ), $cachedData['fallbackSequence'] ); - foreach ( $codeSequence as $csCode ) { - $fileName = dirname( __FILE__ ) . "/i18n/firststeps/$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'][] = 'wfJsonI18nShimef5bf629a51f0c75'; -} diff --git a/FirstSteps.php b/FirstSteps.php index 5917ae0..3b44d53 100644 --- a/FirstSteps.php +++ b/FirstSteps.php @@ -40,8 +40,7 @@ $wgMessagesDirs['FirstSteps'] = __DIR__ . '/i18n'; -// Register extension messages and other localisation. -$wgExtensionMessagesFiles['FirstSteps'] = __DIR__ . '/FirstSteps.i18n.php'; +// Register other localisation. $wgExtensionMessagesFiles['FirstStepsAliases'] = __DIR__ . '/FirstSteps.alias.php'; $wgSpecialPages['FirstSteps'] = 'SpecialFirstSteps'; -- To view, visit https://gerrit.wikimedia.org/r/387086 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0b91b529b16dc115f974ea13bf14d58bb93423f7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FirstSteps Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...FormelApplet[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387088 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I9e340cf807b465235c031160346350c1a3e519da --- D FormelApplet.i18n.php M FormelApplet.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FormelApplet refs/changes/88/387088/1 diff --git a/FormelApplet.i18n.php b/FormelApplet.i18n.php deleted file mode 100644 index 529c657..000 --- a/FormelApplet.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimb13a585bdeecefbe' ) ) { - function wfJsonI18nShimb13a585bdeecefbe( $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'][] = 'wfJsonI18nShimb13a585bdeecefbe'; -} diff --git a/FormelApplet.php b/FormelApplet.php index c4feaa6..36de9cf 100644 --- a/FormelApplet.php +++ b/FormelApplet.php @@ -12,7 +12,6 @@ $wgHooks['ParserFirstCallInit'][] = 'fa_AppletSetup'; $wgMessagesDirs['FormelApplet'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['FormelApplet'] = dirname( __FILE__ ) . '/FormelApplet.i18n.php'; $wgExtensionCredits['parserhook'][] = array( 'path' => __FILE__, -- To view, visit https://gerrit.wikimedia.org/r/387088 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9e340cf807b465235c031160346350c1a3e519da Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FormelApplet Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...FlvHandler[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387087 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ic6b0482ede9bde31a56eb1b65240fecdc802de67 --- D FlvHandler.i18n.php M FlvHandler.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlvHandler refs/changes/87/387087/1 diff --git a/FlvHandler.i18n.php b/FlvHandler.i18n.php deleted file mode 100644 index 2cb1db7..000 --- a/FlvHandler.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimd9fb11a5e9f31960' ) ) { - function wfJsonI18nShimd9fb11a5e9f31960( $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'][] = 'wfJsonI18nShimd9fb11a5e9f31960'; -} diff --git a/FlvHandler.php b/FlvHandler.php index d8d9746..69a7609 100644 --- a/FlvHandler.php +++ b/FlvHandler.php @@ -29,7 +29,6 @@ // Register the media handler $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['FlvHandler'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['FlvHandler'] = $dir . 'FlvHandler.i18n.php'; $wgAutoloadClasses['FlvImageHandler'] = $dir . 'FlvImageHandler.php'; $wgMediaHandlers['video/x-flv'] = 'FlvImageHandler'; -- To view, visit https://gerrit.wikimedia.org/r/387087 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic6b0482ede9bde31a56eb1b65240fecdc802de67 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FlvHandler Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ExtTab[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387085 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I7a37f5a5edad2236d62d34bac06ff4c1d87b7daf --- M includes/ET_Initialize.php D languages/ExtTab.i18n.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExtTab refs/changes/85/387085/1 diff --git a/includes/ET_Initialize.php b/includes/ET_Initialize.php index fd2f637..1cc08b2 100644 --- a/includes/ET_Initialize.php +++ b/includes/ET_Initialize.php @@ -18,7 +18,6 @@ $wgExtensionFunctions[] = 'smwgExtTabSetupExtension'; $wgMessagesDirs['ExtTab'] = $smwgExtTabIP . '/languages/i18n'; -$wgExtensionMessagesFiles['ExtTab'] = $smwgExtTabIP . '/languages/ExtTab.i18n.php'; $wgExtensionMessagesFiles['ExtTabMagic'] = $smwgExtTabIP . '/languages/ExtTab.i18n.magic.php'; $wgAutoloadClasses['ETParserFunctions'] = $smwgExtTabIP . '/includes/ET_ParserFunctions.php'; diff --git a/languages/ExtTab.i18n.php b/languages/ExtTab.i18n.php deleted file mode 100644 index ac163d8..000 --- a/languages/ExtTab.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimcb283650984c7721' ) ) { - function wfJsonI18nShimcb283650984c7721( $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'][] = 'wfJsonI18nShimcb283650984c7721'; -} -- To view, visit https://gerrit.wikimedia.org/r/387085 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7a37f5a5edad2236d62d34bac06ff4c1d87b7daf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ExtTab Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...EtherpadLite[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387084 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I1440065a349328ef183b75d5addb97b749ce832b --- D EtherpadLite.i18n.php M EtherpadLite.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherpadLite refs/changes/84/387084/1 diff --git a/EtherpadLite.i18n.php b/EtherpadLite.i18n.php deleted file mode 100644 index 5f2ff3c..000 --- a/EtherpadLite.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimb85f73b58ded68d6' ) ) { - function wfJsonI18nShimb85f73b58ded68d6( $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'][] = 'wfJsonI18nShimb85f73b58ded68d6'; -} diff --git a/EtherpadLite.php b/EtherpadLite.php index 094840d..1d19065 100644 --- a/EtherpadLite.php +++ b/EtherpadLite.php @@ -71,7 +71,6 @@ $dir = dirname( __FILE__ ) . '/'; $wgMessagesDirs['EtherpadLite'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['EtherpadLite'] = $dir . 'EtherpadLite.i18n.php'; $wgAutoloadClasses['EtherpadLite'] = $dir . 'EtherpadLite_body.php'; $wgHooks['ParserFirstCallInit'][] = 'EtherpadLite::EtherpadLiteParserInit'; -- To view, visit https://gerrit.wikimedia.org/r/387084 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1440065a349328ef183b75d5addb97b749ce832b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/EtherpadLite Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...EtherEditor[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387083 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Id1c970ca3e59c027e1b3cf63fc488c05141a7dc6 --- D EtherEditor.i18n.php M EtherEditor.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherEditor refs/changes/83/387083/1 diff --git a/EtherEditor.i18n.php b/EtherEditor.i18n.php deleted file mode 100644 index 7df0ead..000 --- a/EtherEditor.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim00133c9fe78fa2bd' ) ) { - function wfJsonI18nShim00133c9fe78fa2bd( $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'][] = 'wfJsonI18nShim00133c9fe78fa2bd'; -} diff --git a/EtherEditor.php b/EtherEditor.php index b759c52..8043fc0 100644 --- a/EtherEditor.php +++ b/EtherEditor.php @@ -112,7 +112,6 @@ ); $wgMessagesDirs['EtherEditor'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['EtherEditor'] = $dir . '/EtherEditor.i18n.php'; $wgExtensionMessagesFiles['EtherEditorAlias'] = $dir . '/EtherEditor.alias.php'; $wgHooks['LoadExtensionSchemaUpdates'][] = 'EtherEditorHooks::onSchemaUpdate'; $wgHooks['EditPage::showEditForm:initial'][] = 'EtherEditorHooks::editPageShowEditFormInitial'; -- To view, visit https://gerrit.wikimedia.org/r/387083 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id1c970ca3e59c027e1b3cf63fc488c05141a7dc6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/EtherEditor Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...EmailCapture[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387082 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Id9a5b9bb10bbdb76ac5bdf9d3f8a737ef31efdcc --- D EmailCapture.i18n.php M EmailCapture.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EmailCapture refs/changes/82/387082/1 diff --git a/EmailCapture.i18n.php b/EmailCapture.i18n.php deleted file mode 100644 index bcaab91..000 --- a/EmailCapture.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim66b8e41ed7cf66d3' ) ) { - function wfJsonI18nShim66b8e41ed7cf66d3( $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'][] = 'wfJsonI18nShim66b8e41ed7cf66d3'; -} diff --git a/EmailCapture.php b/EmailCapture.php index 5a48e3d..597b33f 100644 --- a/EmailCapture.php +++ b/EmailCapture.php @@ -37,7 +37,6 @@ /* Setup */ $dir = __DIR__ . '/'; $wgMessagesDirs['EmailCapture'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['EmailCapture'] = $dir . 'EmailCapture.i18n.php'; $wgExtensionMessagesFiles['EmailCaptureAlias'] = $dir . 'EmailCapture.alias.php'; // API $wgAutoloadClasses['ApiEmailCapture'] = $dir . 'api/ApiEmailCapture.php'; -- To view, visit https://gerrit.wikimedia.org/r/387082 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id9a5b9bb10bbdb76ac5bdf9d3f8a737ef31efdcc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/EmailCapture Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...EditPageTracking[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387081 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I13498f61e614f76aeb65023d60471e391c770b25 --- D EditPageTracking.i18n.php M EditPageTracking.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EditPageTracking refs/changes/81/387081/1 diff --git a/EditPageTracking.i18n.php b/EditPageTracking.i18n.php deleted file mode 100644 index 8b22bd6..000 --- a/EditPageTracking.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim04c3ef1cbb70bcb2' ) ) { - function wfJsonI18nShim04c3ef1cbb70bcb2( $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'][] = 'wfJsonI18nShim04c3ef1cbb70bcb2'; -} diff --git a/EditPageTracking.php b/EditPageTracking.php index 2ca6d73..2086dc0 100644 --- a/EditPageTracking.php +++ b/EditPageTracking.php @@ -14,7 +14,6 @@ ); $wgMessagesDirs['EditPageTracking'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['EditPageTracking'] = __DIR__ . '/EditPageTracking.i18n.php'; $wgHooks['LoadExtensionSchemaUpdates'][] = 'EditPageTracking::doSchemaUpdates'; $wgHooks['EditPage::showEditForm:initial'][] = 'EditPageTracking::onEditForm'; -- To view, visit https://gerrit.wikimedia.org/r/387081 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I13498f61e614f76aeb65023d60471e391c770b25 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/EditPageTracking Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MetaMaster[master]: Add code-tags to description message
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387078 ) Change subject: Add code-tags to description message .. Add code-tags to description message Follow-Up: Ied1bdb374cc39f41f25dd137dde377f659d26b80 Change-Id: I65092f84e204a89906e9189cfe7450741348c748 --- M i18n/en.json 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MetaMaster refs/changes/78/387078/1 diff --git a/i18n/en.json b/i18n/en.json index 86baf0c..62fc55c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -4,5 +4,5 @@ "tosfos" ] }, - "metamaster-desc": "A parser function that allows adding HTML tags to the page header" + "metamaster-desc": "A parser function that allows adding HTML tags to the page header" } -- To view, visit https://gerrit.wikimedia.org/r/387078 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I65092f84e204a89906e9189cfe7450741348c748 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MetaMaster Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/extensions[master]: Archive Automatic Board Welcome
Umherirrender has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/387018 ) Change subject: Archive Automatic Board Welcome .. Archive Automatic Board Welcome Bug: T179196 Change-Id: I5c05c839f55fb55e08fe94dddb612555190c1469 --- M .gitmodules D AutomaticBoardWelcome 2 files changed, 0 insertions(+), 5 deletions(-) Approvals: Umherirrender: Verified; Looks good to me, approved SamanthaNguyen: Looks good to me, but someone else must approve diff --git a/.gitmodules b/.gitmodules index 41678bf..0dbe596 100644 --- a/.gitmodules +++ b/.gitmodules @@ -142,10 +142,6 @@ path = AutoProxyBlock url = https://gerrit.wikimedia.org/r/mediawiki/extensions/AutoProxyBlock branch = . -[submodule "AutomaticBoardWelcome"] - path = AutomaticBoardWelcome - url = https://gerrit.wikimedia.org/r/mediawiki/extensions/AutomaticBoardWelcome - branch = . [submodule "Awesomeness"] path = Awesomeness url = https://gerrit.wikimedia.org/r/mediawiki/extensions/Awesomeness diff --git a/AutomaticBoardWelcome b/AutomaticBoardWelcome deleted file mode 16 index 24a943e..000 --- a/AutomaticBoardWelcome +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 24a943e8e1aff017b479386ff66645f2c4f1843b -- To view, visit https://gerrit.wikimedia.org/r/387018 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5c05c839f55fb55e08fe94dddb612555190c1469 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions Gerrit-Branch: master Gerrit-Owner: Mainframe98 Gerrit-Reviewer: Chad Gerrit-Reviewer: Jack Phoenix Gerrit-Reviewer: SamanthaNguyen Gerrit-Reviewer: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Drafts[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387015 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Idd78c2bf6ea9bb5f82c4699e8797198433f9fbc2 --- D Drafts.i18n.php M Drafts.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Drafts refs/changes/15/387015/1 diff --git a/Drafts.i18n.php b/Drafts.i18n.php deleted file mode 100644 index ffd951b..000 --- a/Drafts.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimbcd148f50d502483' ) ) { - function wfJsonI18nShimbcd148f50d502483( $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'][] = 'wfJsonI18nShimbcd148f50d502483'; -} diff --git a/Drafts.php b/Drafts.php index 4f416a7..34e2e44 100644 --- a/Drafts.php +++ b/Drafts.php @@ -69,7 +69,6 @@ // Internationalization $wgMessagesDirs['Drafts'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Drafts'] = $dir . 'Drafts.i18n.php'; $wgExtensionMessagesFiles['DraftsAlias'] = $dir . 'Drafts.alias.php'; // Register the Drafts special page -- To view, visit https://gerrit.wikimedia.org/r/387015 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idd78c2bf6ea9bb5f82c4699e8797198433f9fbc2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Drafts Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Duplicator[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387016 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I9910802347b45004d14b55643371808d06d7b089 --- D Duplicator.i18n.php M Duplicator.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Duplicator refs/changes/16/387016/1 diff --git a/Duplicator.i18n.php b/Duplicator.i18n.php deleted file mode 100644 index 77a02ab..000 --- a/Duplicator.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimb18056b080e2e75a' ) ) { - function wfJsonI18nShimb18056b080e2e75a( $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'][] = 'wfJsonI18nShimb18056b080e2e75a'; -} diff --git a/Duplicator.php b/Duplicator.php index b743c5f..35851b8 100644 --- a/Duplicator.php +++ b/Duplicator.php @@ -36,7 +36,6 @@ $dir = dirname(__FILE__) . '/'; $wgMessagesDirs['Duplicator'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Duplicator'] = $dir . 'Duplicator.i18n.php'; $wgExtensionMessagesFiles['DuplicatorAlias'] = $dir . 'Duplicator.alias.php'; $wgAutoloadClasses['SpecialDuplicator'] = $dir . 'Duplicator.page.php'; $wgSpecialPages['Duplicator'] = 'SpecialDuplicator'; -- To view, visit https://gerrit.wikimedia.org/r/387016 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9910802347b45004d14b55643371808d06d7b089 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Duplicator Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DisqusTag[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387014 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I87d1c4fe2c1eeabb6449b0d92eb0e231cbcd5ad9 --- D DisqusTag.i18n.php M DisqusTag.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DisqusTag refs/changes/14/387014/1 diff --git a/DisqusTag.i18n.php b/DisqusTag.i18n.php deleted file mode 100644 index eddc9d4..000 --- a/DisqusTag.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim59b0529814e3600b' ) ) { - function wfJsonI18nShim59b0529814e3600b( $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'][] = 'wfJsonI18nShim59b0529814e3600b'; -} diff --git a/DisqusTag.php b/DisqusTag.php index 67ee108..7c30880 100644 --- a/DisqusTag.php +++ b/DisqusTag.php @@ -19,7 +19,6 @@ ); $wgMessagesDirs['DisqusTag'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['DisqusTag'] = __DIR__ . '/DisqusTag.i18n.php'; $wgAutoloadClasses['DisqusTag'] = __DIR__ . '/DisqusTag.body.php'; $wgHooks['BeforePageDisplay'][] = 'DisqusTag::addModule'; -- To view, visit https://gerrit.wikimedia.org/r/387014 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I87d1c4fe2c1eeabb6449b0d92eb0e231cbcd5ad9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DisqusTag Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Diagnosis[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387011 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ia46a5693c4235162e973ad9a936cd49bb7678cfa --- D Diagnosis.i18n.php M Diagnosis.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Diagnosis refs/changes/11/387011/1 diff --git a/Diagnosis.i18n.php b/Diagnosis.i18n.php deleted file mode 100644 index d514e15..000 --- a/Diagnosis.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim8c7e9e1b8dd76b0a' ) ) { - function wfJsonI18nShim8c7e9e1b8dd76b0a( $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'][] = 'wfJsonI18nShim8c7e9e1b8dd76b0a'; -} diff --git a/Diagnosis.php b/Diagnosis.php index 0c545e9..e75960b 100644 --- a/Diagnosis.php +++ b/Diagnosis.php @@ -24,6 +24,5 @@ $wgAutoloadClasses['SpecialDiagnosis'] = $dir . 'SpecialDiagnosis.php'; # Location of the SpecialMyExtension class (Tell MediaWiki to load this file) $wgMessagesDirs['Diagnosis'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['Diagnosis'] = $dir . 'Diagnosis.i18n.php'; $wgExtensionMessagesFiles['SpecialDiagnosis'] = $dir . 'Diagnosis.i18n.alias.php'; $wgSpecialPages['Diagnosis'] = 'SpecialDiagnosis'; # Tell MediaWiki about the new special page and its class name -- To view, visit https://gerrit.wikimedia.org/r/387011 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia46a5693c4235162e973ad9a936cd49bb7678cfa Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Diagnosis Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DidYouMean[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387013 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I42b4aa4b176dbe80bfa12eac249625a0f8499258 --- D DidYouMean.i18n.php M DidYouMean.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DidYouMean refs/changes/13/387013/1 diff --git a/DidYouMean.i18n.php b/DidYouMean.i18n.php deleted file mode 100644 index 75ffb96..000 --- a/DidYouMean.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShime0e81080822ece42' ) ) { - function wfJsonI18nShime0e81080822ece42( $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'][] = 'wfJsonI18nShime0e81080822ece42'; -} diff --git a/DidYouMean.php b/DidYouMean.php index 8858016..bd24a6c 100644 --- a/DidYouMean.php +++ b/DidYouMean.php @@ -15,7 +15,6 @@ ); $dir = dirname(__FILE__) . '/'; $wgMessagesDirs['DidYouMean'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['DidYouMean'] = $dir . 'DidYouMean.i18n.php'; $wgAutoloadClasses['DidYouMeanHooks'] = $dir . 'DidYouMean.hooks.php'; $wgAutoloadClasses['DidYouMean'] = $dir . 'DidYouMean_body.php'; -- To view, visit https://gerrit.wikimedia.org/r/387013 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I42b4aa4b176dbe80bfa12eac249625a0f8499258 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DidYouMean Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DataTransfer[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387010 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ife1601087b83aba3a05ee6bd4289ea3a090ec7a1 --- M DataTransfer.php D languages/DT_Messages.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataTransfer refs/changes/10/387010/1 diff --git a/DataTransfer.php b/DataTransfer.php index 16253c6..2989757 100644 --- a/DataTransfer.php +++ b/DataTransfer.php @@ -86,7 +86,6 @@ dtfInitContentLanguage($wgLanguageCode); $wgMessagesDirs['DataTransfer'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['DataTransfer'] = $dtgIP . '/languages/DT_Messages.php'; $wgExtensionMessagesFiles['DataTransferAlias'] = $dtgIP . '/languages/DT_Aliases.php'; /**/ diff --git a/languages/DT_Messages.php b/languages/DT_Messages.php deleted file mode 100644 index 4c12611..000 --- a/languages/DT_Messages.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim56bf2fe619bc5a44' ) ) { - function wfJsonI18nShim56bf2fe619bc5a44( $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'][] = 'wfJsonI18nShim56bf2fe619bc5a44'; -} -- To view, visit https://gerrit.wikimedia.org/r/387010 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ife1601087b83aba3a05ee6bd4289ea3a090ec7a1 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DataTransfer Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DidYouKnow[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387012 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I526651bfefc6e0f3ef70124878b676aadd03e469 --- D DidYouKnow.i18n.php M DidYouKnow.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DidYouKnow refs/changes/12/387012/1 diff --git a/DidYouKnow.i18n.php b/DidYouKnow.i18n.php deleted file mode 100644 index b273868..000 --- a/DidYouKnow.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim32d071f478c56b82' ) ) { - function wfJsonI18nShim32d071f478c56b82( $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'][] = 'wfJsonI18nShim32d071f478c56b82'; -} diff --git a/DidYouKnow.php b/DidYouKnow.php index 61c0c5c..2d3f9b6 100644 --- a/DidYouKnow.php +++ b/DidYouKnow.php @@ -43,7 +43,6 @@ // i18n $wgMessagesDirs['DidYouKnow'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['DidYouKnow']= __DIR__ . '/DidYouKnow.i18n.php'; // Autoloading $wgAutoloadClasses['DYKSettings'] = __DIR__ . '/DidYouKnow.settings.php'; -- To view, visit https://gerrit.wikimedia.org/r/387012 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I526651bfefc6e0f3ef70124878b676aadd03e469 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DidYouKnow Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...CryoKey[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387007 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: Ibcff46b0d65551de88cc8a70b62512bc5f57779c --- D CryoKey.i18n.php M CryoKey.php M README 3 files changed, 1 insertion(+), 37 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CryoKey refs/changes/07/387007/1 diff --git a/CryoKey.i18n.php b/CryoKey.i18n.php deleted file mode 100644 index 04e1b56..000 --- a/CryoKey.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim8b1fac33c390193b' ) ) { - function wfJsonI18nShim8b1fac33c390193b( $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'][] = 'wfJsonI18nShim8b1fac33c390193b'; -} diff --git a/CryoKey.php b/CryoKey.php index 98216bc..3986a71 100644 --- a/CryoKey.php +++ b/CryoKey.php @@ -15,7 +15,6 @@ // Define internationalizations $wgMessagesDirs['CryoKey'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['CryoKey'] = __DIR__ . '/CryoKey.i18n.php'; // Allow Auto-Registration behavior if "true". $wgCKAutoRegister = false; diff --git a/README b/README index 23a40eb..b45a195 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ This is the CryoKey example for MediaWiki. I tested it with MediaWiki v1.19.1 and v1.20.2. Install by copying the -"CryoKey.i18n.php", "cryokey.php", "cryokey.js", and +"cryokey.php", "cryokey.js", and "ckicon.png" files somewhere into the MediaWiki extensions directory. The files must all be in the same directory. Then, add a line to LocalSettings.php (using the actual path): -- To view, visit https://gerrit.wikimedia.org/r/387007 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibcff46b0d65551de88cc8a70b62512bc5f57779c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CryoKey Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...CreatePage[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387006 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I607ea297145f0e72afa0d46762126cdef03c89c8 --- D CreatePage.i18n.php M CreatePage.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CreatePage refs/changes/06/387006/1 diff --git a/CreatePage.i18n.php b/CreatePage.i18n.php deleted file mode 100644 index 3e9d93f..000 --- a/CreatePage.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShimecaed49a40084d79' ) ) { - function wfJsonI18nShimecaed49a40084d79( $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'][] = 'wfJsonI18nShimecaed49a40084d79'; -} diff --git a/CreatePage.php b/CreatePage.php index 88a2dbb..10f5a71 100644 --- a/CreatePage.php +++ b/CreatePage.php @@ -53,7 +53,6 @@ // i18n $wgMessagesDirs['CreatePage'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['CreatePage'] = __DIR__ . '/CreatePage.i18n.php'; $wgExtensionMessagesFiles['CreatePageAlias'] = __DIR__ . '/CreatePage.alias.php'; $wgExtensionMessagesFiles['CreatePageMagic'] = __DIR__ . '/CreatePage.magic.php'; -- To view, visit https://gerrit.wikimedia.org/r/387006 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I607ea297145f0e72afa0d46762126cdef03c89c8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CreatePage Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Convert2Wiki[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387004 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I6d9c4c6fcbef2c0ae2805be217164c053f531d08 --- D Convert2Wiki.i18n.php M Convert2Wiki.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Convert2Wiki refs/changes/04/387004/1 diff --git a/Convert2Wiki.i18n.php b/Convert2Wiki.i18n.php deleted file mode 100644 index 302f991..000 --- a/Convert2Wiki.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -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( 'wfJsonI18nShim495f78824955f89d' ) ) { - function wfJsonI18nShim495f78824955f89d( $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'][] = 'wfJsonI18nShim495f78824955f89d'; -} diff --git a/Convert2Wiki.php b/Convert2Wiki.php index 3d0b9a8..abe1c7e 100644 --- a/Convert2Wiki.php +++ b/Convert2Wiki.php @@ -51,7 +51,6 @@ ); $wgMessagesDirs['Convert2Wiki'] = __DIR__ . '/i18n'; - $wgExtensionMessagesFiles[ 'Convert2Wiki' ] = __DIR__ . '/Convert2Wiki.i18n.php'; $wgExtensionMessagesFiles[ 'Convert2WikiAlias' ] = __DIR__ . '/Convert2Wiki.alias.php'; $wgSpecialPages[ 'Convert2Wiki' ] = 'Convert2Wiki\Special\Convert2WikiSpecial'; -- To view, visit https://gerrit.wikimedia.org/r/387004 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6d9c4c6fcbef2c0ae2805be217164c053f531d08 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Convert2Wiki Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...CopyToClipboard[master]: Remove i18n php shim
Umherirrender has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/387005 ) Change subject: Remove i18n php shim .. Remove i18n php shim The i18n php shim was added to support version 1.22 and older. Bug: T168353 Change-Id: I76a8213363598df85fbcdfa413c941f3ca8412d4 --- D CopyToClipboard.i18n.php M CopyToClipboard.php 2 files changed, 0 insertions(+), 36 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CopyToClipboard refs/changes/05/387005/1 diff --git a/CopyToClipboard.i18n.php b/CopyToClipboard.i18n.php deleted file mode 100644 index 991cfee..000 --- a/CopyToClipboard.i18n.php +++ /dev/null @@ -1,35 +0,0 @@ -https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/generateJsonI18n.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( 'wfJsonI18nShim9d612286c4605692' ) ) { - function wfJsonI18nShim9d612286c4605692( $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'][] = 'wfJsonI18nShim9d612286c4605692'; -} diff --git a/CopyToClipboard.php b/CopyToClipboard.php index b91ac3f..ae56b1d 100644 --- a/CopyToClipboard.php +++ b/CopyToClipboard.php @@ -32,7 +32,6 @@ $wgClippy = "$wgScriptPath/extensions/CopyToClipboard/clippy.swf"; $wgMessagesDirs['CopyToClipboard'] = __DIR__ . '/i18n'; -$wgExtensionMessagesFiles['CopyToClipboard'] = dirname( __FILE__ ) . '/CopyToClipboard.i18n.php'; $wgHooks['ParserFirstCallInit'][] = 'wfCopyToClipboardInit'; -- To view, visit https://gerrit.wikimedia.org/r/387005 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I76a8213363598df85fbcdfa413c941f3ca8412d4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CopyToClipboard Gerrit-Branch: master Gerrit-Owner: Umherirrender ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits