compatibility
* Introduced 'ContributionsToolLinks' hook; see docs/hooks.txt for more
information
+* Add a message if category is empty
== Bugfixes since 1.10 ==
$this->getImageSection() .
$this->getCategoryBottom();
+ // Give a proper message if category is empty
+ if ( $r == '' ) {
+ $r = wfMsgExt( 'category-empty', array( 'parse' ) );
+ }
+
wfProfileOut( __METHOD__ );
return $r;
}
}
function getCategoryTop() {
- $r = "<br style=\"clear:both;\"/>\n";
+ $r = '';
if( $this->until != '' ) {
$r .= $this->pagingLinks( $this->title, $this->nextPage, $this->until, $this->limit );
} elseif( $this->nextPage != '' || $this->from != '' ) {
$r .= $this->pagingLinks( $this->title, $this->from, $this->nextPage, $this->limit );
}
- return $r;
+ return $r == ''
+ ? $r
+ : "<br style=\"clear:both;\"/>\n" . $r;
}
function getSubcategorySection() {
'category_header' => 'Seiten in der Kategorie „$1“',
'subcategories' => 'Unterkategorien',
'category-media-header' => 'Medien in der Kategorie „$1“',
+'category-empty' => "''Diese Kategorie enthält zur Zeit keine Artikel oder Medien.''",
'mainpagetext' => 'MediaWiki wurde erfolgreich installiert.',
'mainpagedocfooter' => 'Hilfe zur Benutzung und Konfiguration der Wiki Software finden Sie im [http://meta.wikimedia.org/wiki/Help:Contents Benutzerhandbuch].
'category_header' => 'Articles in category "$1"',
'subcategories' => 'Subcategories',
'category-media-header' => 'Media in category "$1"',
+'category-empty' => "''This category contains currently no articles or media.''",
'linkprefix' => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD', # only translate this message to other languages if you have to change it
'mainpagetext' => "<big>'''MediaWiki has been successfully installed.'''</big>",
'category_header',
'subcategories',
'category-media-header',
+ 'category-empty',
),
'mainpage' => array(
'linkprefix',