$s .= '<td class="top" nowrap="nowrap">';
$s .= '<a href="' . htmlspecialchars( $mainPageObj->getLocalURL() ) . '">';
- $s .= '<span id="sitetitle">' . $this->msg( 'sitetitle' )->text() . '</span></a>';
+ $s .= '<span id="sitetitle">' . wfMsg( 'sitetitle' ) . '</span></a>';
$s .= '</td><td class="top" id="top-syslinks" width="100%">';
$s .= $this->sysLinks();
$s .= '</td></tr><tr><td class="top-subheader">';
$s .= '<font size="-1"><span id="sitesub">';
- $s .= htmlspecialchars( $this->msg( 'sitesubtitle' )->text() ) . '</span></font>';
+ $s .= htmlspecialchars( wfMsg( 'sitesubtitle' ) ) . '</span></font>';
$s .= '</td><td class="top-linkcollection">';
$s .= '<font size="-1"><span id="langlinks">';
array( 'known', 'noclasses' )
),
$this->getSkin()->aboutLink(),
- $this->searchForm( $this->msg( 'qbfind' )->text() )
+ $this->searchForm( wfMsg( 'qbfind' ) )
) );
$s .= "\n<br />" . $this->pageStats();
$s = array(
$this->getSkin()->mainPageLink(),
Linker::linkKnown(
- Title::newFromText( $this->msg( 'aboutpage' )->inContentLanguage()->text() ),
- $this->msg( 'about' )->text()
+ Title::newFromText( wfMsgForContent( 'aboutpage' ) ),
+ wfMsg( 'about' )
),
Linker::linkKnown(
- Title::newFromText( $this->msg( 'helppage' )->inContentLanguage()->text() ),
- $this->msg( 'help' )->text()
+ Title::newFromText( wfMsgForContent( 'helppage' ) ),
+ wfMsg( 'help' )
),
Linker::linkKnown(
- Title::newFromText( $this->msg( 'faqpage' )->inContentLanguage()->text() ),
- $this->msg( 'faq' )->text()
+ Title::newFromText( wfMsgForContent( 'faqpage' ) ),
+ wfMsg( 'faq' )
),
Linker::specialLink( 'Specialpages' )
);
if ( $this->data['loggedin'] ) {
$s[] = Linker::linkKnown(
$lo,
- $this->msg( 'logout' )->text(),
+ wfMsg( 'logout' ),
array(),
$q
);
} else {
$s[] = Linker::linkKnown(
$li,
- $this->msg( 'login' )->text(),
+ wfMsg( 'login' ),
array(),
$q
);
$s .= '<strong>' . $this->editThisPage() . '</strong>';
$s .= $sep . Linker::linkKnown(
- Title::newFromText( $this->msg( 'edithelppage' )->inContentLanguage()->text() ),
- $this->msg( 'edithelp' )->text()
+ Title::newFromText( wfMsgForContent( 'edithelppage' ) ),
+ wfMsg( 'edithelp' )
);
if( $this->data['loggedin'] ) {
if ( $this->data['loggedin'] ) {
$tl = Linker::link(
$user->getTalkPage(),
- $this->msg( 'mytalk' )->text(),
+ wfMsg( 'mytalk' ),
array(),
array(),
array( 'known', 'noclasses' )
$s .= Linker::link(
$user->getUserPage(),
- $this->msg( 'mypage' )->text(),
+ wfMsg( 'mypage' ),
array(),
array(),
array( 'known', 'noclasses' )
. $sep .
Linker::link(
SpecialPage::getSafeTitleFor( 'Contributions', $user->getName() ),
- $this->msg( 'mycontris' )->text(),
+ wfMsg( 'mycontris' ),
array(),
array(),
array( 'known', 'noclasses' )
if( $wgSiteSupportPage ) {
$s .= $sep . '<a href="' . htmlspecialchars( $wgSiteSupportPage ) . '" class="internal">'
- . $this->msg( 'sitesupport' )->text() . '</a>';
+ . wfMsg( 'sitesupport' ) . '</a>';
}
$s .= $sep . Linker::link(
SpecialPage::getTitleFor( 'Specialpages' ),
- $this->msg( 'moredotdotdot' )->text(),
+ wfMsg( 'moredotdotdot' ),
array(),
array(),
array( 'known', 'noclasses' )
* @return string
*/
function menuHead( $key ) {
- $s = "\n<h6>" . $this->msg( $key )->text() . "</h6>";
+ $s = "\n<h6>" . wfMsg( $key ) . "</h6>";
return $s;
}
$s .= "<input type='text' id=\"searchInput{$this->searchboxes}\" class=\"mw-searchInput\" name=\"search\" size=\"14\" value=\""
. htmlspecialchars( substr( $search, 0, 256 ) ) . "\" /><br />"
- . "<input type='submit' id=\"searchGoButton{$this->searchboxes}\" class=\"searchButton\" name=\"go\" value=\"" . htmlspecialchars( wfMessage( 'searcharticle' )->text() ) . "\" />";
+ . "<input type='submit' id=\"searchGoButton{$this->searchboxes}\" class=\"searchButton\" name=\"go\" value=\"" . htmlspecialchars( wfMsg( 'searcharticle' ) ) . "\" />";
if( $wgUseTwoButtonsSearchForm ) {
- $s .= "<input type='submit' id=\"mw-searchButton{$this->searchboxes}\" class=\"searchButton\" name=\"fulltext\" value=\"" . htmlspecialchars( $this->msg( 'search' )->text() ) . "\" />\n";
+ $s .= "<input type='submit' id=\"mw-searchButton{$this->searchboxes}\" class=\"searchButton\" name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( 'search' ) ) . "\" />\n";
} else {
- $s .= '<div><a href="' . $action . '" rel="search">' . $this->msg( 'powersearch-legend' )->text() . "</a></div>\n";
+ $s .= '<div><a href="' . $action . '" rel="search">' . wfMsg( 'powersearch-legend' ) . "</a></div>\n";
}
$s .= '</form>';
} else {
/* show user page and user talk links */
$user = $this->getSkin()->getUser();
- $s .= $sep . Linker::link( $user->getUserPage(), $this->msg( 'mypage' )->escaped() );
- $s .= $sep . Linker::link( $user->getTalkPage(), $this->msg( 'mytalk' )->escaped() );
+ $s .= $sep . Linker::link( $user->getUserPage(), wfMsgHtml( 'mypage' ) );
+ $s .= $sep . Linker::link( $user->getTalkPage(), wfMsgHtml( 'mytalk' ) );
if ( $user->getNewtalk() ) {
$s .= ' *';
}
/* show my contributions link */
$s .= $sep . Linker::link(
SpecialPage::getSafeTitleFor( 'Contributions', $this->data['username'] ),
- $this->msg( 'mycontris' )->escaped() );
+ wfMsgHtml( 'mycontris' ) );
/* show my preferences link */
$s .= $sep . Linker::specialLink( 'Preferences' );
/* show upload file link */
$s.= Linker::specialLink( 'Watchlist' ) ;
$s .= $sep . Linker::linkKnown(
SpecialPage::getTitleFor( 'Contributions' ),
- $this->msg( 'mycontris' )->text(),
+ wfMsg( 'mycontris' ),
array(),
array( 'target' => $this->data['username'] )
);
case NS_TEMPLATE_TALK:
case NS_HELP_TALK:
case NS_CATEGORY_TALK:
- $text = $this->msg('viewtalkpage')->text();
+ $text = wfMsg('viewtalkpage');
break;
case NS_MAIN:
- $text = $this->msg( 'articlepage' )->text();
+ $text = wfMsg( 'articlepage' );
break;
case NS_USER:
- $text = $this->msg( 'userpage' )->text();
+ $text = wfMsg( 'userpage' );
break;
case NS_PROJECT:
- $text = $this->msg( 'projectpage' )->text();
+ $text = wfMsg( 'projectpage' );
break;
case NS_FILE:
- $text = $this->msg( 'imagepage' )->text();
+ $text = wfMsg( 'imagepage' );
break;
case NS_MEDIAWIKI:
- $text = $this->msg( 'mediawikipage' )->text();
+ $text = wfMsg( 'mediawikipage' );
break;
case NS_TEMPLATE:
- $text = $this->msg( 'templatepage' )->text();
+ $text = wfMsg( 'templatepage' );
break;
case NS_HELP:
- $text = $this->msg( 'viewhelppage' )->text();
+ $text = wfMsg( 'viewhelppage' );
break;
case NS_CATEGORY:
- $text = $this->msg( 'categorypage' )->text();
+ $text = wfMsg( 'categorypage' );
break;
default:
- $text = $this->msg( 'articlepage' )->text();
+ $text = wfMsg( 'articlepage' );
}
$link = $title->getText();
} elseif( $title->getNamespace() != NS_SPECIAL ) {
# we just throw in a "New page" text to tell the user that he's in edit mode,
# and to avoid messing with the separator that is prepended to the next item
- $s .= '<strong>' . $this->msg( 'newpage' )->text() . '</strong>';
+ $s .= '<strong>' . wfMsg( 'newpage' ) . '</strong>';
}
}
if( ( $title->isTalkPage() || $this->getSkin()->getOutput()->showNewSectionLink() ) && $action != 'edit' && !$wpPreview )
$s .= '<br />' . Linker::link(
$title,
- $this->msg( 'postcomment' )->text(),
+ wfMsg( 'postcomment' ),
array(),
array(
'action' => 'edit',
global $wgSiteSupportPage;
if( $wgSiteSupportPage ) {
$s .= "\n<br /><a href=\"" . htmlspecialchars( $wgSiteSupportPage ) .
- '" class="internal">' . $this->msg( 'sitesupport' )->text() . '</a>';
+ '" class="internal">' . wfMsg( 'sitesupport' ) . '</a>';
}
$s .= "\n<br /></div>\n";