From: Brion Vibber Date: Thu, 9 Sep 2004 06:31:19 +0000 (+0000) Subject: Installer support for picking traditional Chinese (zh-tw) localization. X-Git-Tag: 1.5.0alpha1~2047 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=f7acc4464f203a78e89859919f8b9e5a73e2dcb4;p=lhc%2Fweb%2Fwiklou.git Installer support for picking traditional Chinese (zh-tw) localization. --- diff --git a/config/index.php b/config/index.php index 8a99a02450..9d6b40b7db 100644 --- a/config/index.php +++ b/config/index.php @@ -979,8 +979,8 @@ function getLanguageList() { $d = opendir( "../languages" ); while( false !== ($f = readdir( $d ) ) ) { - if( preg_match( '/Language([A-Z][a-z]+)\.php$/', $f, $m ) ) { - $code = strtolower( $m[1] ); + if( preg_match( '/Language([A-Z][a-z_]+)\.php$/', $f, $m ) ) { + $code = str_replace( '_', '-', strtolower( $m[1] ) ); if( in_array( $code, $latin1 ) ) { $codes[$code] = "$code - " . $wgLanguageNames[$code] . " - Unicode"; $codes[$code.'-latin1'] = "$code - " . $wgLanguageNames[$code] . " - Latin-1";