1 Dec 2004 02:22
phase3/config index.php,1.84,1.85
Brion Vibber <vibber <at> users.sourceforge.net>
2004-12-01 01:22:39 GMT
2004-12-01 01:22:39 GMT
Update of /cvsroot/wikipedia/phase3/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28980/config
Modified Files:
index.php
Log Message:
(bug 961) Treat languages without names more cleanly
Index: index.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/config/index.php,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** index.php 21 Nov 2004 02:09:31 -0000 1.84
--- index.php 1 Dec 2004 01:22:36 -0000 1.85
***************
*** 1045,1053 ****
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";
} else {
! $codes[$code] = "$code - " . $wgLanguageNames[$code];
}
}
--- 1045,1058 ----
if( preg_match( '/Language([A-Z][a-z_]+)\.php$/', $f, $m ) ) {
$code = str_replace( '_', '-', strtolower( $m[1] ) );
(Continue reading)
RSS Feed