$wgOut->setPageTitle( wfMsg( 'whatlinkshere-title', $this->target->getPrefixedText() ) );
$wgOut->setSubtitle( wfMsg( 'linklistsub' ) );
- $wgOut->addHTML( wfMsg( 'whatlinkshere-barrow' ) . ' ' .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."<br />\n");
+ $wgOut->addHTML( wfMsgExt( 'whatlinkshere-barrow', array( 'escapenoentities') ) . ' ' .$this->skin->makeLinkObj($this->target, '', 'redirect=no' )."<br />\n");
$this->showIndirectLinks( 0, $this->target, $this->limit, $this->from, $this->back );
}
if ( $level == 0 ) {
$wgOut->addHTML( $this->whatlinkshereForm( $options ) );
$wgOut->addWikiText( wfMsg( 'linkshere', $this->target->getPrefixedText() ) );
- }
- $isredir = wfMsg( 'isredirect' );
- $istemplate = wfMsg( 'istemplate' );
- if( $level == 0 ) {
$prevnext = $this->getPrevNext( $limit, $prevId, $nextId, $options['namespace'] );
$wgOut->addHTML( $prevnext );
}
// Display properties (redirect or template)
$props = array();
if ( $row->page_is_redirect ) {
- $props[] = $isredir;
+ $props[] = wfMsgHtml( 'isredirect' );
}
if ( $row->is_template ) {
- $props[] = $istemplate;
+ $props[] = wfMsgHtml( 'istemplate' );
}
if ( count( $props ) ) {
- // FIXME? Cultural assumption, hard-coded punctuation
- $wgOut->addHTML( ' (' . implode( ', ', $props ) . ') ' );
+ $list = implode( wfMsgHtml( 'semicolon-separator' ), $props );
+ $wgOut->addHTML( " ($list) " );
}
# Space for utilities links, with a what-links-here link provided
wfMsgHtml( 'whatlinkshere-links' ),
'target=' . $nt->getPrefixedUrl()
);
- $wgOut->addHtml( ' <span class="mw-whatlinkshere-tools">(' . $wlh . ')</span>' );
+ $wgOut->addHtml( ' <span class="mw-whatlinkshere-tools">(' . $wlh . ')</span>' );
if ( $row->page_is_redirect ) {
if ( $level < 2 ) {
$this->numLink( 250, $prevId ) . ' | ' .
$this->numLink( 500, $prevId );
- return wfMsg( 'viewprevnext', $prevLink, $nextLink, $nums );
+ return wfMsgHtml( 'viewprevnext', $prevLink, $nextLink, $nums );
}
function numLink( $limit, $from, $ns = null ) {
'whatlinkshere-title' => 'Pages that link to $1',
'whatlinkshere-summary' => '', # only translate this message to other languages if you have to change it
'whatlinkshere-page' => 'Page:',
-'whatlinkshere-barrow' => '<', # only translate this message to other languages if you have to change it
+'whatlinkshere-barrow' => '>', # only translate this message to other languages if you have to change it
'linklistsub' => '(List of links)',
'linkshere' => "The following pages link to '''[[:$1]]''':",
'nolinkshere' => "No pages link to '''[[:$1]]'''.",