\$wgLocalInterwiki = \$wgSitename;
-\$wgLanguageCode = \"{$slconf['LanguageCode']}\";
+\$wgContLanguageCode = \"{$slconf['LanguageCode']}\";
\$wgUseLatin1 = " . ($conf->Latin1 ? 'true' : 'false') . ";\n
\$wgProxyKey = \"$proxyKey\";
function getLanguageList() {
global $wgLanguageNames;
if( !isset( $wgLanguageNames ) ) {
- $wgLanguageCode = "xxx";
+ $wgContLanguageCode = "xxx";
function wfLocalUrl( $x ) { return $x; }
function wfLocalUrlE( $x ) { return $x; }
require_once( "../languages/Names.php" );
wfProfileOut( $fname.'-User' );
wfProfileIn( $fname.'-language' );
-function setupLangObj($langclass, $langcode) {
+function setupLangObj(&$langclass, $langcode) {
global $wgUseLatin1;
return $lang;
}
-/* TODO: change the installation script so that
- wgContLanguageCode is set there instead of here
-*/
require_once( 'languages/Language.php' );
-$wgContLanguageCode = $wgLanguageCode;
+
$wgContLangClass = 'Language' . str_replace( '-', '_', ucfirst( $wgContLanguageCode ) );
+
$wgContLang = setupLangObj($wgContLangClass, $wgContLangClass);
+ $n = get_class($wgContLang);
// set default user option from content language
if(!$wgUser->mDataLoaded) { $wgUser->loadDefaultFromLanguage(); }
}
# This should fail gracefully if there's not a localization available
-@include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' );
+@include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgContLanguageCode ) ) . '.php' );
}
?>