From: Antoine Musso Date: Sat, 6 Jan 2007 23:12:50 +0000 (+0000) Subject: Language code and name used. It helps for support. X-Git-Tag: 1.31.0-rc.0~54634 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=18fce53d7fd94a3a1d940ef076c32b6a66070f99;p=lhc%2Fweb%2Fwiklou.git Language code and name used. It helps for support. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d017e67a14..2eccfbc686 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -472,6 +472,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8417) Handle EXIF unknown dates * (bug 8372) Return nothing on empty tags. * New maintenance script to show the cached statistics : showStats.php. +* Added language code and name in Special:Version next to MediaWiki version. == Languages updated == diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 512133e5e1..cd57dd92ea 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -48,6 +48,9 @@ class SpecialVersion { $version = self::getVersion(); $dbr =& wfGetDB( DB_SLAVE ); + global $wgLanguageNames, $wgLanguageCode; + $mwlang = $wgLanguageNames[$wgLanguageCode]; + $ret = "__NOTOC__ This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''', @@ -70,13 +73,13 @@ class SpecialVersion { Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. or [http://www.gnu.org/copyleft/gpl.html read it online] - * [http://www.mediawiki.org/ MediaWiki]: $version + * [http://www.mediawiki.org/ MediaWiki]: $version ($wgLanguageCode $mwlang) * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ") * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion(); return str_replace( "\t\t", '', $ret ); } - + public static function getVersion() { global $wgVersion, $IP; $svn = self::getSvnRevision( $IP );