Index: dumpInterwiki.inc =================================================================== --- dumpInterwiki.inc (revision 64219) +++ dumpInterwiki.inc (working copy) @@ -29,7 +29,7 @@ } function getRebuildInterwikiDump() { - global $langlist, $languageAliases, $prefixRewrites; + global $langlist, $languageAliases, $prefixRewrites, $wgContLang; # Multi-language sites # db suffix => db suffix, iw prefix, hostname @@ -102,7 +102,8 @@ # Global iterwiki map foreach ( $lines as $line ) { if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(.*?)\s*$/', $line, $matches ) ) { - $prefix = strtolower( $matches[1] ); + $prefix = $wgContLang->lc( $matches[1] ); + $prefix = str_replace( ' ', '_', $prefix ); $url = $matches[2]; if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks|wikimedia)\.org/', $url ) ) { $local = 1;