8 parent::__construct( $params );
10 if ( $this->mParent instanceof
HTMLForm ) {
11 $config = $this->mParent->getConfig();
12 $languageCode = $config->get(
'LanguageCode' );
18 $languages = Language::fetchLanguageNames(
null,
'mw' );
22 if ( !array_key_exists( $languageCode,
$languages ) ) {
29 $this->mParams[
'options'][$code .
' - ' . $name] = $code;
32 if ( !array_key_exists(
'default', $params ) ) {
33 $this->mParams[
'default'] = $languageCode;