dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6810e5a
)
Installer support for picking traditional Chinese (zh-tw) localization.
author
Brion Vibber
<brion@users.mediawiki.org>
Thu, 9 Sep 2004 06:31:19 +0000
(06:31 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Thu, 9 Sep 2004 06:31:19 +0000
(06:31 +0000)
config/index.php
patch
|
blob
|
history
diff --git
a/config/index.php
b/config/index.php
index
8a99a02
..
9d6b40b
100644
(file)
--- a/
config/index.php
+++ b/
config/index.php
@@
-979,8
+979,8
@@
function getLanguageList() {
$d = opendir( "../languages" );
while( false !== ($f = readdir( $d ) ) ) {
$d = opendir( "../languages" );
while( false !== ($f = readdir( $d ) ) ) {
- if( preg_match( '/Language([A-Z][a-z]+)\.php$/', $f, $m ) ) {
- $code = str
tolower( $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";
if( in_array( $code, $latin1 ) ) {
$codes[$code] = "$code - " . $wgLanguageNames[$code] . " - Unicode";
$codes[$code.'-latin1'] = "$code - " . $wgLanguageNames[$code] . " - Latin-1";