Index: branches/new-installer/phase3/includes/installer/WebInstaller.php |
— | — | @@ -855,11 +855,14 @@ |
856 | 856 | * Get a <select> for selecting languages |
857 | 857 | */ |
858 | 858 | function getLanguageSelector( $name, $label, $selectedCode ) { |
| 859 | + global $wgDummyLanguageCodes; |
859 | 860 | $s = Xml::openElement( 'select', array( 'id' => $name, 'name' => $name ) ) . "\n"; |
860 | 861 | |
861 | 862 | $languages = Language::getLanguageNames(); |
862 | 863 | ksort( $languages ); |
| 864 | + $dummies = array_flip( $wgDummyLanguageCodes ); |
863 | 865 | foreach ( $languages as $code => $name ) { |
| 866 | + if ( isset( $dummies[$code] ) ) continue; |
864 | 867 | $s .= "\n" . Xml::option( "$code - $name", $code, $code == $selectedCode ); |
865 | 868 | } |
866 | 869 | $s .= "\n</select>\n"; |