Skin: Convert number of languages to interface language

Bug: T283955
Change-Id: Ic601cf94907bdec329021a48101da13a979af106
This commit is contained in:
Sam Smith 2021-06-08 17:14:27 +01:00 committed by Bernard Wang
parent 0b65f84d40
commit 78929d58da

View file

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