);
}
+ if ( $title->inNamespace( NS_CATEGORY ) ) {
+ $category = Category::newFromTitle( $title );
+ $pageInfo['category-info'] = array(
+ array(
+ $this->msg( 'pageinfo-category-pages' ),
+ $lang->formatNum( $category->getPageCount() )
+ ),
+ array(
+ $this->msg( 'pageinfo-category-subcats' ),
+ $lang->formatNum( $category->getSubcatCount() )
+ ),
+ array(
+ $this->msg( 'pageinfo-category-files' ),
+ $lang->formatNum( $category->getFileCount() )
+ )
+ );
+ }
+
// Page protection
$pageInfo['header-restrictions'] = array();
'pageinfo-protect-cascading' => 'Protections are cascading from here',
'pageinfo-protect-cascading-yes' => 'Yes',
'pageinfo-protect-cascading-from' => 'Protections are cascading from',
+'pageinfo-category-info' => 'Category information',
+'pageinfo-category-pages' => 'Number of pages',
+'pageinfo-category-subcats' => 'Number of subcategories',
+'pageinfo-category-files' => 'Number of files',
# Skin names
'skinname-standard' => 'Classic', # only translate this message to other languages if you have to change it
*{{msg-mw|Pageinfo-protect-cascading}}
*{{msg-mw|Pageinfo-protect-cascading-yes}}',
'pageinfo-protect-cascading-from' => 'Key for a list of pages where protections are cascading from',
+'pageinfo-category-info' => 'Header for the category information section in InfoAction',
+'pageinfo-category-pages' => 'Label for the number of files in a category',
+'pageinfo-category-subcats' => 'Label for the number of subcategories in a category',
+'pageinfo-category-files' => 'Label for the number of files in a category',
# Skin names
'skinname-standard' => '{{optional}}
'pageinfo-protect-cascading',
'pageinfo-protect-cascading-yes',
'pageinfo-protect-cascading-from',
+ 'pageinfo-category-info',
+ 'pageinfo-category-pages',
+ 'pageinfo-category-subcats',
+ 'pageinfo-category-files'
),
'skin' => array(
'skinname-standard',