* Karun Dambietz
* Kim Hyun-Joon
* Lee Worden
+* Lejonel
* liangent
-* Lucas Garczewski
* Louperivois
+* Lucas Garczewski
* Luigi Corsaro
* Manuel Menal
* Marcin Cieślak
* (bug 23206) Add Special::Search hook for detecting successful "Go"
* When visiting a "red link" of a deleted file, a deletion and move log excerpt
is provided on the Upload form.
+* (bug 22647) Add category details in search results.
=== Bug fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive
$this->sk->formatSize( $byteSize ),
$wgLang->formatNum( $wordCount )
);
+
+ if( $t->getNamespace() == NS_CATEGORY ) {
+ $cat = Category::newFromTitle( $t );
+ $size = wfMsgExt(
+ 'search-result-category-size',
+ array( 'parsemag', 'escape' ),
+ $wgLang->formatNum( $cat->getPageCount() ),
+ $wgLang->formatNum( $cat->getSubcatCount() ),
+ $wgLang->formatNum( $cat->getFileCount() )
+ );
+ }
+
$date = $wgLang->timeanddate( $timestamp );
// link to related articles if supported
'searchprofile-everything-tooltip' => 'Search all of content (including talk pages)',
'searchprofile-advanced-tooltip' => 'Search in custom namespaces',
'search-result-size' => '$1 ({{PLURAL:$2|1 word|$2 words}})',
+'search-result-category-size' => '{{PLURAL:$1|1 member|$1 members}} ({{PLURAL:$2|1 subcategory|$2 subcategories}}, {{PLURAL:$3|1 file|$3 files}})',
'search-result-score' => 'Relevance: $1%',
'search-redirect' => '(redirect $1)',
'search-section' => '(section $1)',
'searchprofile-everything-tooltip',
'searchprofile-advanced-tooltip',
'search-result-size',
+ 'search-result-category-size',
'search-result-score',
'search-redirect',
'search-section',