diff --git a/includes/SkinVector.php b/includes/SkinVector.php index 2bd715d89..56ebdb2be 100644 --- a/includes/SkinVector.php +++ b/includes/SkinVector.php @@ -331,12 +331,13 @@ class SkinVector extends SkinMustache { * @return array enhanced $portletData */ private function createULSLanguageButton( $portletData ) { + $label = $this->msg( 'vector-language-button-label' ) + ->numParams( count( $this->getLanguagesCached() ) ) + ->escaped(); + $languageButtonData = [ 'id' => 'p-lang-btn', - 'label' => $this->msg( - 'vector-language-button-label', - count( $this->getLanguagesCached() ) - )->escaped(), + 'label' => $label, 'heading-class' => ' vector-menu-heading ' . ' mw-ui-icon ' .