mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Skin: Convert number of languages to interface language
Bug: T283955 Change-Id: Ic601cf94907bdec329021a48101da13a979af106
This commit is contained in:
parent
0b65f84d40
commit
78929d58da
|
@ -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 ' .
|
||||||
|
|
Loading…
Reference in a new issue