Only whitespace changes
[lhc/web/wiklou.git] / includes / specials / SpecialTags.php
index 0fb48bb..57feeae 100644 (file)
@@ -13,10 +13,10 @@ class SpecialTags extends SpecialPage {
                global $wgOut, $wgUser, $wgMessageCache;
 
                $wgMessageCache->loadAllMessages();
-               
+
                $sk = $wgUser->getSkin();
                $wgOut->setPageTitle( wfMsg( 'tags-title' ) );
-               $wgOut->addWikiMsg( 'tags-intro' );
+               $wgOut->wrapWikiMsg( "<div class='mw-tags-intro'>\n$1</div>", 'tags-intro' );
 
                // Write the headers
                $html = '';
@@ -36,9 +36,7 @@ class SpecialTags extends SpecialPage {
                        $html .= $this->doTagRow( $tag, 0 );
                }
 
-               $html = "<table style='width: 80%'><tbody>$html</tbody></table>";
-
-               $wgOut->addHTML( $html );
+               $wgOut->addHTML( Xml::tags( 'table', array( 'class' => 'wikitable mw-tags-table' ), $html ) );
        }
 
        function doTagRow( $tag, $hitcount ) {
@@ -51,21 +49,23 @@ class SpecialTags extends SpecialPage {
                if ( in_array( $tag, $doneTags ) ) {
                        return '';
                }
+
+               global $wgLang;
                
                $newRow = '';
                $newRow .= Xml::tags( 'td', null, Xml::element( 'tt', null, $tag ) );
 
                $disp = ChangeTags::tagDescription( $tag );
-               $disp .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag" ), wfMsg( 'tags-edit' ) ) . ')';
+               $disp .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag" ), wfMsgHtml( 'tags-edit' ) ) . ')';
                $newRow .= Xml::tags( 'td', null, $disp );
 
                $desc = wfMsgExt( "tag-$tag-description", 'parseinline' );
                $desc = wfEmptyMsg( "tag-$tag-description", $desc ) ? '' : $desc;
-               $desc .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag-description" ), wfMsg( 'tags-edit' ) ) . ')';
+               $desc .= ' (' . $sk->link( Title::makeTitle( NS_MEDIAWIKI, "Tag-$tag-description" ), wfMsgHtml( 'tags-edit' ) ) . ')';
                $newRow .= Xml::tags( 'td', null, $desc );
 
-               $hitcount = wfMsg( 'tags-hitcount', $hitcount );
-               $hitcount = $sk->link( SpecialPage::getTitleFor( 'RecentChanges' ), $hitcount, array(), array( 'tagfilter' => $tag ) );
+               $hitcount = wfMsgExt( 'tags-hitcount', array( 'parsemag' ), $wgLang->formatNum( $hitcount ) );
+               $hitcount = $sk->link( SpecialPage::getTitleFor( 'Recentchanges' ), $hitcount, array(), array( 'tagfilter' => $tag ) );
                $newRow .= Xml::tags( 'td', null, $hitcount );
 
                $doneTags[] = $tag;