Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | $this->extensionCredits() . |
35 | 35 | $this->wgHooks() |
36 | 36 | ); |
| 37 | + $wgOut->addHtml( self::getLanguageInfo() ); |
37 | 38 | $wgOut->addHTML( $this->IPInfo() ); |
38 | 39 | $wgOut->addHTML( '</div>' ); |
39 | 40 | } |
— | — | @@ -75,7 +76,7 @@ |
76 | 77 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
77 | 78 | or [http://www.gnu.org/copyleft/gpl.html read it online] |
78 | 79 | |
79 | | - * [http://www.mediawiki.org/ MediaWiki]: $version ($wgLanguageCode $mwlang) |
| 80 | + * [http://www.mediawiki.org/ MediaWiki]: $version |
80 | 81 | * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ") |
81 | 82 | * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion(); |
82 | 83 | |
— | — | @@ -290,6 +291,18 @@ |
291 | 292 | return intval( $content[3] ); |
292 | 293 | } |
293 | 294 | } |
| 295 | + |
| 296 | + /** |
| 297 | + * Get the content language name and code, for debugging/support purposes |
| 298 | + * |
| 299 | + * @return string |
| 300 | + */ |
| 301 | + private static function getLanguageInfo() { |
| 302 | + global $wgContLang; |
| 303 | + $code = $wgContLang->getCode(); |
| 304 | + $name = Language::getLanguageName( $code ); |
| 305 | + return '<!-- ' . htmlspecialchars( "Content Language: {$name} [{$code}]" ) . ' -->'; |
| 306 | + } |
294 | 307 | |
295 | 308 | /**#@-*/ |
296 | 309 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -470,7 +470,8 @@ |
471 | 471 | * (bug 8417) Handle EXIF unknown dates |
472 | 472 | * (bug 8372) Return nothing on empty <math> tags. |
473 | 473 | * New maintenance script to show the cached statistics : showStats.php. |
474 | | -* Added language code and name in Special:Version next to MediaWiki version. |
| 474 | +* Emit content language information in a comment in Special:Version, for |
| 475 | + debugging/support purposes |
475 | 476 | * New special page to list available interwikis [[Special:Listinterwikis]] |
476 | 477 | * Count deleted edits when regenerating total edits in maintenance/initStats.php |
477 | 478 | |