public function getLabel($locale = null)
    {
        $locale = null === $locale ? Yii::$app->language : $locale;

        return $this->provider->getLanguageLabel($locale);
    }
public function getLabel($locale = null)
    {
        $locale = null === $locale ? Yii::$app->language : $locale;

        return $this->provider->getLanguageLabel($locale);
    }
public function getLabel ( $ locale = null ) { $ locale = null === $ locale ? Yii :: $ app -> language : $ locale ; return $ this -> provider -> getLanguageLabel ( $ locale ) ; }
Returns language label.

@param null|string $locale By default uses current application language.

@return string
Returns language label .