From 8dd8cb63d7b3fb5ba027f1dce1599090a6b7114b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 1 Feb 2004 05:41:13 +0000 Subject: [PATCH] Add bg,ku to language list; drop useless Special:Debug; add Special:Version; record wgVersion in DefaultSettings.php (not to be confused with the old obsolete Version.php) --- includes/DefaultSettings.php | 2 ++ includes/SpecialVersion.php | 23 +++++++++++++++++++++++ languages/Language.php | 9 ++++++--- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 includes/SpecialVersion.php diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f1b8bf10a3..dce816f561 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -6,6 +6,8 @@ # like $wgScriptPath, you must also localize everything that # depends on it. +$wgVersion = "1.2.0beta"; + $wgSitename = "Wikipedia"; $wgMetaNamespace = FALSE; # will be same as you set $wgSitename diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php new file mode 100644 index 0000000000..23d6b3d2bd --- /dev/null +++ b/includes/SpecialVersion.php @@ -0,0 +1,23 @@ + $wgVersion, + "[http://www.php.net/ PHP]" => phpversion(), + "[http://www.mysql.com/ MySQL]" => mysql_get_server_info() + ); + + $out = ""; + foreach( $versions as $module => $ver ) { + $out .= ":$module: $ver\n"; + } + $wgOut->addWikiText( $out ); + + return; +} + +?> diff --git a/languages/Language.php b/languages/Language.php index 96255492ef..bdf0b84d92 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -67,7 +67,7 @@ if($wgMetaNamespace === FALSE) "skin" => 0, "math" => 1, "rcdays" => 7, "rclimit" => 50, "highlightbroken" => 1, "stubthreshold" => 0, "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1, - "showtoolbar"=>1, + "showtoolbar" =>1, "date" => 0 ); @@ -136,6 +136,7 @@ this (alternative: like this?).", "az" => "Азәрбајҹан (Azerbajan)", "ba" => "Башкорт (Bashkort)", "be" => "Беларуски", + "bg" => "Bulgarian", "bh" => "Bihara", "bi" => "Bislama", "bn" => "Bengali", @@ -190,6 +191,7 @@ this (alternative: like this?).", "kn" => "ಕನ್ನಡ (Kannada)", "ko" => "한국어 (Hangukeo)", "ks" => "Kashmiri", + "ku" => "Kurdî", "kw" => "Kernewek", "ky" => "Kirghiz", "la" => "Latina", @@ -354,6 +356,7 @@ this (alternative: like this?).", "Booksources" => "External book sources", # "Categories" => "Page categories", "Export" => "XML page export", + "Version" => "Show MediaWiki version", ); /* private */ $wgSysopSpecialPagesEn = array( @@ -364,8 +367,7 @@ this (alternative: like this?).", /* private */ $wgDeveloperSpecialPagesEn = array( "Lockdb" => "Make database read-only", - "Unlockdb" => "Restore DB write access", - "Debug" => "Debugging information" + "Unlockdb" => "Restore DB write access" ); #------------------------------------------------------------------- @@ -1034,6 +1036,7 @@ about books you are looking for. $wgSitename is not affiliated with any of these businesses, and this list should not be construed as an endorsement.", "alphaindexline" => "$1 to $2", +"version" => "Version", # Email this user # -- 2.20.1