* @return string HTML output
*/
public function formatHiddenCategories( $hiddencats) {
- global $wgUser;
+ global $wgUser, $wgLang;
wfProfileIn( __METHOD__ );
$sk = $wgUser->getSkin();
if ( count( $hiddencats ) > 0 ) {
# Construct the HTML
$outText = '<div class="mw-hiddenCategoriesExplanation">';
- $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ), count( $hiddencats ) );
+ $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ), $wgLang->formatnum( count( $hiddencats ) ) );
$outText .= '</div><ul>';
foreach ( $hiddencats as $titleObj ) {
'templatesusedsection' => 'Templates used in this section:',
'template-protected' => '(protected)',
'template-semiprotected' => '(semi-protected)',
-'hiddencategories' => '{{PLURAL:$1|Hidden category|Hidden categories}} this page is a member of:',
+'hiddencategories' => 'This page is a member of {{PLURAL:$1|1 hidden category|$1 hidden categories}}:',
'edittools' => '<!-- Text here will be shown below edit and upload forms. -->', # only translate this message to other languages if you have to change it
'nocreatetitle' => 'Page creation limited',
'nocreatetext' => '{{SITENAME}} has restricted the ability to create new pages.