MarkTraceur has uploaded a new change for review. https://gerrit.wikimedia.org/r/95970
Change subject: Fix sitename use in section description ...................................................................... Fix sitename use in section description Fixes issue described on TWN - https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Betafeatures-section-desc/en Thanks, siebrand! Change-Id: Ib6db374c6b4a53e6f3670d43d68d4462b1a9bf95 --- M BetaFeatures.i18n.php M BetaFeaturesHooks.php 2 files changed, 2 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BetaFeatures refs/changes/70/95970/1 diff --git a/BetaFeatures.i18n.php b/BetaFeatures.i18n.php index 62a00b6..7fb5d15 100644 --- a/BetaFeatures.i18n.php +++ b/BetaFeatures.i18n.php @@ -41,7 +41,7 @@ 'betafeatures-toplink' => 'Beta', 'betafeatures-auto-enroll' => 'Automatically enable all new beta features', - 'betafeatures-section-desc' => 'Here {{PLURAL:$1|is a new feature|are some new features}} we\'re considering for $2. Please try {{PLURAL:$1|it|them}} out and give us your thoughts, so we can improve {{PLURAL:$1|it|them}} based on your feedback.', + 'betafeatures-section-desc' => 'Here {{PLURAL:$1|is a new feature|are some new features}} we\'re considering for {{SITENAME}}. Please try {{PLURAL:$1|it|them}} out and give us your thoughts, so we can improve {{PLURAL:$1|it|them}} based on your feedback.', // Test messages 'betafeatures-test-check-field' => 'blah blah blah', # do not translate or duplicate this message to other languages diff --git a/BetaFeaturesHooks.php b/BetaFeaturesHooks.php index ffa0f3e..0bf4829 100644 --- a/BetaFeaturesHooks.php +++ b/BetaFeaturesHooks.php @@ -144,8 +144,6 @@ * @throws BetaFeaturesMissingFieldException */ public static function getPreferences( User $user, array &$prefs ) { - global $wgSitename; - $betaPrefs = array(); $depHooks = array(); @@ -162,7 +160,7 @@ Html::rawElement( 'p', array(), - wfMessage( 'betafeatures-section-desc', count( $betaPrefs ), $wgSitename )->text() + wfMessage( 'betafeatures-section-desc', count( $betaPrefs ) )->text() ), Html::rawElement( 'p', array(), implode( ' | ', array( -- To view, visit https://gerrit.wikimedia.org/r/95970 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib6db374c6b4a53e6f3670d43d68d4462b1a9bf95 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BetaFeatures Gerrit-Branch: master Gerrit-Owner: MarkTraceur <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
