jenkins-bot has submitted this change and it was merged. Change subject: Remove default NS_MEDIAWIKI from $wgTranslateMessageNamespaces ......................................................................
Remove default NS_MEDIAWIKI from $wgTranslateMessageNamespaces Bug: 57391 Change-Id: I7a7b0684172917d70274c2d126143339eb9c73eb --- M Translate.php M tests/phpunit/MessageGroupStatesUpdaterJobTest.php M tests/phpunit/TranslateHooksTest.php M tests/phpunit/TranslationFuzzyUpdaterTest.php M tests/phpunit/api/ApiTranslationReviewTest.php 5 files changed, 5 insertions(+), 1 deletion(-) Approvals: Siebrand: Looks good to me, approved jenkins-bot: Verified diff --git a/Translate.php b/Translate.php index 75bf2b0..848da20 100644 --- a/Translate.php +++ b/Translate.php @@ -438,7 +438,7 @@ * List of namespace that contain messages. No talk namespaces. * @see https://www.mediawiki.org/wiki/Help:Extension:Translate/Group_configuration */ -$wgTranslateMessageNamespaces = array( NS_MEDIAWIKI ); +$wgTranslateMessageNamespaces = array(); /** * CC = Custom classes. diff --git a/tests/phpunit/MessageGroupStatesUpdaterJobTest.php b/tests/phpunit/MessageGroupStatesUpdaterJobTest.php index 2c5ef6f..0cfbd5b 100644 --- a/tests/phpunit/MessageGroupStatesUpdaterJobTest.php +++ b/tests/phpunit/MessageGroupStatesUpdaterJobTest.php @@ -16,6 +16,7 @@ 'wgTranslateWorkflowStates' => false, 'wgTranslateGroupFiles' => array(), 'wgTranslateTranslationServices' => array(), + 'wgTranslateMessageNamespaces' => array( NS_MEDIAWIKI ), ) ); $wgHooks['TranslatePostInitGroups'] = array( array( $this, 'getTestGroups' ) ); MessageGroups::clearCache(); diff --git a/tests/phpunit/TranslateHooksTest.php b/tests/phpunit/TranslateHooksTest.php index 289f9ab..ce88491 100644 --- a/tests/phpunit/TranslateHooksTest.php +++ b/tests/phpunit/TranslateHooksTest.php @@ -26,6 +26,7 @@ 'wgTranslateGroupFiles' => array(), 'wgTranslateDocumentationLanguageCode' => 'qqq', 'wgTranslateTranslationServices' => array(), + 'wgTranslateMessageNamespaces' => array( NS_MEDIAWIKI ), ) ); $wgHooks['TranslatePostInitGroups'] = array( array( $this, 'getTestGroups' ) ); MessageGroups::clearCache(); diff --git a/tests/phpunit/TranslationFuzzyUpdaterTest.php b/tests/phpunit/TranslationFuzzyUpdaterTest.php index 99420f1..56ccb53 100644 --- a/tests/phpunit/TranslationFuzzyUpdaterTest.php +++ b/tests/phpunit/TranslationFuzzyUpdaterTest.php @@ -24,6 +24,7 @@ 'wgTranslateWorkflowStates' => false, 'wgTranslateGroupFiles' => array(), 'wgTranslateTranslationServices' => array(), + 'wgTranslateMessageNamespaces' => array( NS_MEDIAWIKI ), ) ); $wgHooks['TranslatePostInitGroups'] = array( array( $this, 'getTestGroups' ) ); MessageGroups::clearCache(); diff --git a/tests/phpunit/api/ApiTranslationReviewTest.php b/tests/phpunit/api/ApiTranslationReviewTest.php index 7e67228..aa0db2c 100644 --- a/tests/phpunit/api/ApiTranslationReviewTest.php +++ b/tests/phpunit/api/ApiTranslationReviewTest.php @@ -24,6 +24,7 @@ 'wgTranslateGroupFiles' => array(), 'wgGroupPermissions' => array(), 'wgTranslateTranslationServices' => array(), + 'wgTranslateMessageNamespaces' => array( NS_MEDIAWIKI ), ) ); $wgHooks['TranslatePostInitGroups'] = array( array( $this, 'getTestGroups' ) ); MessageGroups::clearCache(); -- To view, visit https://gerrit.wikimedia.org/r/97699 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7a7b0684172917d70274c2d126143339eb9c73eb Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Nikerabbit <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
