Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -316,12 +316,12 @@ |
317 | 317 | $props[] = $msgcache['isimage']; |
318 | 318 | |
319 | 319 | if ( count( $props ) ) { |
320 | | - $propsText = '(' . implode( $msgcache['semicolon-separator'], $props ) . ')'; |
| 320 | + $propsText = wfMessage( 'parentheses' )->rawParams( implode( $msgcache['semicolon-separator'], $props ) )->escaped(); |
321 | 321 | } |
322 | 322 | |
323 | 323 | # Space for utilities links, with a what-links-here link provided |
324 | 324 | $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); |
325 | | - $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); |
| 325 | + $wlh = Xml::wrapClass( wfMessage( 'parentheses' )->rawParams( $wlhLink )->escaped(), 'mw-whatlinkshere-tools' ); |
326 | 326 | |
327 | 327 | return $notClose ? |
328 | 328 | Xml::openElement( 'li' ) . "$link $propsText $dirmark $wlh\n" : |
Index: trunk/phase3/includes/specials/SpecialShortpages.php |
— | — | @@ -95,8 +95,10 @@ |
96 | 96 | : Linker::linkKnown( $title ); |
97 | 97 | $size = $this->msg( 'nbytes' )->numParams( $result->value )->escaped(); |
98 | 98 | |
| 99 | + $hlinkInParentheses = wfMessage( 'parentheses' )->rawParams( $hlink )->escaped(); |
| 100 | + |
99 | 101 | return $title->exists() |
100 | | - ? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]" |
101 | | - : "<del>({$hlink}) {$dm}{$plink} {$dm}[{$size}]</del>"; |
| 102 | + ? "${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]" |
| 103 | + : "<del>${hlinkInParentheses} {$dm}{$plink} {$dm}[{$size}]</del>"; |
102 | 104 | } |
103 | 105 | } |
Index: trunk/phase3/includes/specials/SpecialProtectedpages.php |
— | — | @@ -118,15 +118,15 @@ |
119 | 119 | |
120 | 120 | # Show a link to the change protection form for allowed users otherwise a link to the protection log |
121 | 121 | if( $this->getUser()->isAllowed( 'protect' ) ) { |
122 | | - $changeProtection = ' (' . Linker::linkKnown( |
| 122 | + $changeProtection = Linker::linkKnown( |
123 | 123 | $title, |
124 | 124 | wfMsgHtml( 'protect_change' ), |
125 | 125 | array(), |
126 | 126 | array( 'action' => 'unprotect' ) |
127 | | - ) . ')'; |
| 127 | + ); |
128 | 128 | } else { |
129 | 129 | $ltitle = SpecialPage::getTitleFor( 'Log' ); |
130 | | - $changeProtection = ' (' . Linker::linkKnown( |
| 130 | + $changeProtection = Linker::linkKnown( |
131 | 131 | $ltitle, |
132 | 132 | wfMsgHtml( 'protectlogpage' ), |
133 | 133 | array(), |
— | — | @@ -134,9 +134,11 @@ |
135 | 135 | 'type' => 'protect', |
136 | 136 | 'page' => $title->getPrefixedText() |
137 | 137 | ) |
138 | | - ) . ')'; |
| 138 | + ); |
139 | 139 | } |
140 | 140 | |
| 141 | + $changeProtection = ' ' . wfMessage( 'parentheses' )->rawParams( $changeProtection )->escaped(); |
| 142 | + |
141 | 143 | wfProfileOut( __METHOD__ ); |
142 | 144 | |
143 | 145 | return Html::rawElement( |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -679,11 +679,11 @@ |
680 | 680 | $limitLinks = $this->getLimitLinks(); |
681 | 681 | $limits = $lang->pipeList( $limitLinks ); |
682 | 682 | |
683 | | - $this->mNavigationBar = |
684 | | - "(" . $lang->pipeList( |
| 683 | + $this->mNavigationBar = wfMessage( 'parentheses' )->rawParams( |
| 684 | + $lang->pipeList( |
685 | 685 | array( $pagingLinks['first'], |
686 | 686 | $pagingLinks['last'] ) |
687 | | - ) . ") " . |
| 687 | + ) )->escaped() . " " . |
688 | 688 | wfMsgHtml( 'viewprevnext', $pagingLinks['prev'], |
689 | 689 | $pagingLinks['next'], $limits ); |
690 | 690 | |
— | — | @@ -713,7 +713,8 @@ |
714 | 714 | } |
715 | 715 | |
716 | 716 | if( $extra !== '' ) { |
717 | | - $this->mNavigationBar .= " ($extra)"; |
| 717 | + $extra = ' ' . wfMessage( 'parentheses' )->rawParams( $extra )->escaped(); |
| 718 | + $this->mNavigationBar .= $extra; |
718 | 719 | } |
719 | 720 | |
720 | 721 | return $this->mNavigationBar; |
Index: trunk/phase3/RELEASE-NOTES-1.20 |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | copy/paste on supporting browsers |
36 | 36 | * (bug 34428) Fixed incorrect hash mismatch errors in the DiffHistoryBlob |
37 | 37 | history compression method. |
38 | | -* (bug 34702) Special:Contributions now uses localised parentheses. |
| 38 | +* (bug 34702) Localised parentheses are now used in more special pages. |
39 | 39 | * (bug 34723) When editing a script page on a RTL wiki the textbox should be LTR. |
40 | 40 | |
41 | 41 | === API changes in 1.20 === |