From: Rob Church Date: Sun, 14 May 2006 04:04:21 +0000 (+0000) Subject: * (bug 5941) Use content language when getting the administrator page title for Speci... X-Git-Tag: 1.31.0-rc.0~57148 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=9ad83b63197fb51b5da55fcee0f2064a7ef5a436;p=lhc%2Fweb%2Fwiklou.git * (bug 5941) Use content language when getting the administrator page title for Special:Statistics * Make "administrators" look prettier when used --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f3dcc55532..e70e7d368c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -262,6 +262,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5937) Register links from gallery captions with the parent parser output object so that link tables receive those updates too * (bug 5845) Introduce BASEPAGENAME and BASEPAGENAMEE magic words +* (bug 5941) Use content language when getting the administrator page title for + Special:Statistics == Compatibility == diff --git a/includes/SpecialStatistics.php b/includes/SpecialStatistics.php index 6ff3338d4f..34351fb39f 100644 --- a/includes/SpecialStatistics.php +++ b/includes/SpecialStatistics.php @@ -75,7 +75,7 @@ function wfSpecialStatistics() { $text .= wfMsg( 'userstatstext', $wgLang->formatNum( $users ), $wgLang->formatNum( $admins ), - '[[' . wfMsg( 'administrators' ) . ']]', + '[[' . wfMsgForContent( 'administrators' ) . ']]', // should logically be after #admins, danm backwards compatability! $wgLang->formatNum( sprintf( '%.2f', $admins / $users * 100 ) ) ); diff --git a/languages/Messages.php b/languages/Messages.php index 26bfb6e290..4886cef0a6 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -213,7 +213,7 @@ parent class in order maintain consistency across languages. 'viewcount' => 'This page has been accessed {{plural:$1|one time|$1 times}}.', 'copyright' => 'Content is available under $1.', 'protectedpage' => 'Protected page', -'administrators' => 'Project:Administrators', +'administrators' => '{{ns:project}}:Administrators', 'jumpto' => 'Jump to:', 'jumptonavigation' => 'navigation', 'jumptosearch' => 'search',