copy/paste on supporting browsers
* (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob
history compression method.
-* (bug 34702) Special:Contributions now uses localised parentheses.
+* (bug 34702) Localised parentheses are now used in more special pages.
* (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR.
=== API changes in 1.20 ===
$limitLinks = $this->getLimitLinks();
$limits = $lang->pipeList( $limitLinks );
- $this->mNavigationBar =
- "(" . $lang->pipeList(
+ $this->mNavigationBar = wfMessage( 'parentheses' )->rawParams(
+ $lang->pipeList(
array( $pagingLinks['first'],
$pagingLinks['last'] )
- ) . ") " .
+ ) )->escaped() . " " .
wfMsgHtml( 'viewprevnext', $pagingLinks['prev'],
$pagingLinks['next'], $limits );
}
if( $extra !== '' ) {
- $this->mNavigationBar .= " ($extra)";
+ $extra = ' ' . wfMessage( 'parentheses' )->rawParams( $extra )->escaped();
+ $this->mNavigationBar .= $extra;
}
return $this->mNavigationBar;
# Show a link to the change protection form for allowed users otherwise a link to the protection log
if( $this->getUser()->isAllowed( 'protect' ) ) {
- $changeProtection = ' (' . Linker::linkKnown(
+ $changeProtection = Linker::linkKnown(
$title,
wfMsgHtml( 'protect_change' ),
array(),
array( 'action' => 'unprotect' )
- ) . ')';
+ );
} else {
$ltitle = SpecialPage::getTitleFor( 'Log' );
- $changeProtection = ' (' . Linker::linkKnown(
+ $changeProtection = Linker::linkKnown(
$ltitle,
wfMsgHtml( 'protectlogpage' ),
array(),
'type' => 'protect',
'page' => $title->getPrefixedText()
)
- ) . ')';
+ );
}
+ $changeProtection = ' ' . wfMessage( 'parentheses' )->rawParams( $changeProtection )->escaped();
+
wfProfileOut( __METHOD__ );
return Html::rawElement(
: Linker::linkKnown( $title );
$size = $this->msg( 'nbytes' )->numParams( $result->value )->escaped();
+ $hlinkInParentheses = wfMessage( 'parentheses' )->rawParams( $hlink )->escaped();
+
return $title->exists()
- ? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]"
- : "<del>({$hlink}) {$dm}{$plink} {$dm}[{$size}]</del>";
+ ? "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]"
+ : "<del>${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]</del>";
}
}
$props[] = $msgcache['isimage'];
if ( count( $props ) ) {
- $propsText = '(' . implode( $msgcache['semicolon-separator'], $props ) . ')';
+ $propsText = wfMessage( 'parentheses' )->rawParams( implode( $msgcache['semicolon-separator'], $props ) )->escaped();
}
# Space for utilities links, with a what-links-here link provided
$wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] );
- $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' );
+ $wlh = Xml::wrapClass( wfMessage( 'parentheses' )->rawParams( $wlhLink )->escaped(), 'mw-whatlinkshere-tools' );
return $notClose ?
Xml::openElement( 'li' ) . "$link $propsText $dirmark $wlh\n" :