Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3416,6 +3416,7 @@ |
3417 | 3417 | 'comma-separator' => ', ', # only translate this message to other languages if you have to change it |
3418 | 3418 | 'colon-separator' => ': ', # only translate this message to other languages if you have to change it |
3419 | 3419 | 'autocomment-prefix' => '- ', # only translate this message to other languages if you have to change it |
| 3420 | +'pipe-separator' => ' | ', # only translate this message to other languages if you have to change it |
3420 | 3421 | |
3421 | 3422 | # Multipage image navigation |
3422 | 3423 | 'imgmultipageprev' => '← previous page', |
Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2549,6 +2549,7 @@ |
2550 | 2550 | 'comma-separator', |
2551 | 2551 | 'colon-separator', |
2552 | 2552 | 'autocomment-prefix', |
| 2553 | + 'pipe-separator', |
2553 | 2554 | ), |
2554 | 2555 | 'imgmulti' => array( |
2555 | 2556 | 'imgmultipageprev', |
Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -314,6 +314,7 @@ |
315 | 315 | 'comma-separator', |
316 | 316 | 'colon-separator', |
317 | 317 | 'autocomment-prefix', |
| 318 | + 'pipe-separator', |
318 | 319 | 'listgrouprights-right-display', |
319 | 320 | 'timezone-utc', |
320 | 321 | 'whatlinkshere-backlink', |
Index: trunk/phase3/skins/CologneBlue.php |
— | — | @@ -79,9 +79,10 @@ |
80 | 80 | } |
81 | 81 | $s .= "<td class='bottom' align='center' valign='top'>"; |
82 | 82 | |
| 83 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
83 | 84 | $s .= $this->bottomLinks(); |
84 | | - $s .= "\n<br />" . $this->makeKnownLinkObj( Title::newMainPage() ) . " | " |
85 | | - . $this->aboutLink() . " | " |
| 85 | + $s .= "\n<br />" . $this->makeKnownLinkObj( Title::newMainPage() ) . $separator |
| 86 | + . $this->aboutLink() . $separator |
86 | 87 | . $this->searchForm( wfMsg( "qbfind" ) ); |
87 | 88 | |
88 | 89 | $s .= "\n<br />" . $this->pageStats(); |
— | — | @@ -132,22 +133,19 @@ |
133 | 134 | $q = "returnto={$rt}"; |
134 | 135 | } |
135 | 136 | |
| 137 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
136 | 138 | $s = "" . |
137 | | - $this->mainPageLink() |
138 | | - . " | " . |
139 | | - $this->makeKnownLink( wfMsgForContent( "aboutpage" ), wfMsg( "about" ) ) |
140 | | - . " | " . |
141 | | - $this->makeKnownLink( wfMsgForContent( "helppage" ), wfMsg( "help" ) ) |
142 | | - . " | " . |
143 | | - $this->makeKnownLink( wfMsgForContent( "faqpage" ), wfMsg("faq") ) |
144 | | - . " | " . |
| 139 | + $this->mainPageLink(). $separator . |
| 140 | + $this->makeKnownLink( wfMsgForContent( "aboutpage" ), wfMsg( "about" ) ) . $separator . |
| 141 | + $this->makeKnownLink( wfMsgForContent( "helppage" ), wfMsg( "help" ) ) . $separator . |
| 142 | + $this->makeKnownLink( wfMsgForContent( "faqpage" ), wfMsg("faq") ) . $separator . |
145 | 143 | $this->specialLink( "specialpages" ); |
146 | 144 | |
147 | 145 | /* show links to different language variants */ |
148 | 146 | $s .= $this->variantLinks(); |
149 | 147 | $s .= $this->extensionTabLinks(); |
150 | 148 | |
151 | | - $s .= " | "; |
| 149 | + $s .= $separator; |
152 | 150 | if ( $wgUser->isLoggedIn() ) { |
153 | 151 | $s .= $this->makeKnownLink( $lo, wfMsg( "logout" ), $q ); |
154 | 152 | } else { |
Index: trunk/phase3/skins/Standard.php |
— | — | @@ -107,11 +107,13 @@ |
108 | 108 | $l = $wgContLang->isRTL() ? 'right' : 'left'; |
109 | 109 | $s .= "<td class='bottom' align='$l' valign='top'>"; |
110 | 110 | |
| 111 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 112 | + |
111 | 113 | $s .= $this->bottomLinks(); |
112 | 114 | $s .= "\n<br />" . $this->mainPageLink() |
113 | | - . ' | ' . $this->aboutLink() |
114 | | - . ' | ' . $this->specialLink( 'recentchanges' ) |
115 | | - . ' | ' . $this->searchForm() |
| 115 | + . $separator . $this->aboutLink() |
| 116 | + . $separator . $this->specialLink( 'recentchanges' ) |
| 117 | + . $separator . $this->searchForm() |
116 | 118 | . '<br /><span id="pagestats">' . $this->pageStats() . '</span>'; |
117 | 119 | |
118 | 120 | $s .= "</td>"; |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -926,10 +926,12 @@ |
927 | 927 | } else { |
928 | 928 | $nlink = '<a href="' . $title->escapeLocalUrl( $q ) . "\" class=\"mw-nextlink\">{$next}</a>"; |
929 | 929 | } |
930 | | - $nums = wfNumLink( $offset, 20, $title, $query ) . ' | ' . |
931 | | - wfNumLink( $offset, 50, $title, $query ) . ' | ' . |
932 | | - wfNumLink( $offset, 100, $title, $query ) . ' | ' . |
933 | | - wfNumLink( $offset, 250, $title, $query ) . ' | ' . |
| 930 | + |
| 931 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 932 | + $nums = wfNumLink( $offset, 20, $title, $query ) . $separator . |
| 933 | + wfNumLink( $offset, 50, $title, $query ) . $separator . |
| 934 | + wfNumLink( $offset, 100, $title, $query ) . $separator . |
| 935 | + wfNumLink( $offset, 250, $title, $query ) . $separator . |
934 | 936 | wfNumLink( $offset, 500, $title, $query ); |
935 | 937 | |
936 | 938 | return wfMsg( 'viewprevnext', $plink, $nlink, $nums ); |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -513,7 +513,8 @@ |
514 | 514 | |
515 | 515 | $pagingLinks = $this->getPagingLinks( $linkTexts ); |
516 | 516 | $limitLinks = $this->getLimitLinks(); |
517 | | - $limits = implode( ' | ', $limitLinks ); |
| 517 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 518 | + $limits = implode( $separator, $limitLinks ); |
518 | 519 | |
519 | 520 | $this->mNavigationBar = |
520 | 521 | "({$pagingLinks['first']} | {$pagingLinks['last']}) " . |
— | — | @@ -532,7 +533,7 @@ |
533 | 534 | if( $first ) { |
534 | 535 | $first = false; |
535 | 536 | } else { |
536 | | - $extra .= ' | '; |
| 537 | + $extra .= $separator; |
537 | 538 | } |
538 | 539 | |
539 | 540 | if( $order == $this->mOrderType ) { |
— | — | @@ -591,11 +592,12 @@ |
592 | 593 | 'last' => wfMsgHtml( 'histfirst' ) |
593 | 594 | ); |
594 | 595 | |
| 596 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
595 | 597 | $pagingLinks = $this->getPagingLinks( $linkTexts ); |
596 | 598 | $limitLinks = $this->getLimitLinks(); |
597 | | - $limits = implode( ' | ', $limitLinks ); |
| 599 | + $limits = implode( $separator, $limitLinks ); |
598 | 600 | |
599 | | - $this->mNavigationBar = "({$pagingLinks['first']} | {$pagingLinks['last']}) " . |
| 601 | + $this->mNavigationBar = "({$pagingLinks['first']}" . $separator . "{$pagingLinks['last']}) " . |
600 | 602 | wfMsgHtml("viewprevnext", $pagingLinks['prev'], $pagingLinks['next'], $limits); |
601 | 603 | return $this->mNavigationBar; |
602 | 604 | } |
Index: trunk/phase3/includes/PageHistory.php |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | } |
381 | 381 | |
382 | 382 | if( $tools ) { |
383 | | - $s .= ' (' . implode( ' | ', $tools ) . ')'; |
| 383 | + $s .= ' (' . implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $tools ) . ')'; |
384 | 384 | } |
385 | 385 | |
386 | 386 | wfRunHooks( 'PageHistoryLineEnding', array( $this, &$row , &$s ) ); |
Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -391,7 +391,7 @@ |
392 | 392 | } |
393 | 393 | return '<li>' |
394 | 394 | . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) |
395 | | - . $link . ' (' . implode( ' | ', $tools ) . ')' . '</li>'; |
| 395 | + . $link . ' (' . implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $tools ) . ')' . '</li>'; |
396 | 396 | } |
397 | 397 | |
398 | 398 | /** |
— | — | @@ -457,6 +457,6 @@ |
458 | 458 | foreach( $modes as $mode => $subpage ) { |
459 | 459 | $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Watchlist', $subpage ), wfMsgHtml( "watchlisttools-{$mode}" ) ); |
460 | 460 | } |
461 | | - return implode( ' | ', $tools ); |
| 461 | + return implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $tools ); |
462 | 462 | } |
463 | 463 | } |
Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -328,6 +328,8 @@ |
329 | 329 | } |
330 | 330 | } |
331 | 331 | |
| 332 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 333 | + |
332 | 334 | if ( $this->including() ) { |
333 | 335 | $out2 = ''; |
334 | 336 | } else { |
— | — | @@ -382,7 +384,7 @@ |
383 | 385 | . ( $namespace ? '&namespace=' . $namespace : '' ); |
384 | 386 | $prevLink = $sk->makeKnownLinkObj( $self, |
385 | 387 | wfMsgHTML( 'prevpage', htmlspecialchars( $pt ) ), $q ); |
386 | | - $out2 .= ' | ' . $prevLink; |
| 388 | + $out2 .= $separator . $prevLink; |
387 | 389 | } |
388 | 390 | |
389 | 391 | if( $n == $this->maxPerPage && $s = $res->fetchObject() ) { |
— | — | @@ -392,7 +394,7 @@ |
393 | 395 | . ( $namespace ? '&namespace=' . $namespace : '' ); |
394 | 396 | $nextLink = $sk->makeKnownLinkObj( $self, |
395 | 397 | wfMsgHtml( 'nextpage', htmlspecialchars( $t->getText() ) ), $q ); |
396 | | - $out2 .= ' | ' . $nextLink; |
| 398 | + $out2 .= $separator . $nextLink; |
397 | 399 | } |
398 | 400 | $out2 .= "</td></tr></table><hr />"; |
399 | 401 | } |
— | — | @@ -404,7 +406,7 @@ |
405 | 407 | $wgOut->addHTML( $prevLink ); |
406 | 408 | } |
407 | 409 | if( isset( $prevLink ) && isset( $nextLink ) ) { |
408 | | - $wgOut->addHTML( ' | ' ); |
| 410 | + $wgOut->addHTML( $separator ); |
409 | 411 | } |
410 | 412 | if( isset( $nextLink ) ) { |
411 | 413 | $wgOut->addHTML( $nextLink ); |
Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -634,7 +634,7 @@ |
635 | 635 | $this->tableRow( |
636 | 636 | wfMsgExt( 'prefs-memberingroups', array( 'parseinline' ), count( $userEffectiveGroupsArray ) ), |
637 | 637 | implode( wfMsg( 'comma-separator' ), $userEffectiveGroupsArray ) . |
638 | | - '<br />(' . implode( ' | ', $toolLinks ) . ')' |
| 638 | + '<br />(' . implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $toolLinks ) . ')' |
639 | 639 | ) . |
640 | 640 | |
641 | 641 | $this->tableRow( |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -271,7 +271,7 @@ |
272 | 272 | # Namespace filter and put the whole form together. |
273 | 273 | $form .= $wlInfo; |
274 | 274 | $form .= $cutofflinks; |
275 | | - $form .= implode( ' | ', $links ); |
| 275 | + $form .= implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $links ); |
276 | 276 | $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) ); |
277 | 277 | $form .= '<p>'; |
278 | 278 | $form .= Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' '; |
— | — | @@ -382,10 +382,11 @@ |
383 | 383 | foreach( $days as $d ) { |
384 | 384 | $days[$i++] = wlDaysLink( $d, $page, $options ); |
385 | 385 | } |
| 386 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
386 | 387 | return wfMsgExt('wlshowlast', |
387 | 388 | array('parseinline', 'replaceafter'), |
388 | | - implode(' | ', $hours), |
389 | | - implode(' | ', $days), |
| 389 | + implode( $separator, $hours ), |
| 390 | + implode( $separator, $days ), |
390 | 391 | wlDaysLink( 0, $page, $options ) ); |
391 | 392 | } |
392 | 393 | |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | $links[$key] = wfMsgHtml( $msg, $link ); |
150 | 150 | } |
151 | 151 | |
152 | | - return implode( ' | ', $links ); |
| 152 | + return implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $links ); |
153 | 153 | } |
154 | 154 | |
155 | 155 | protected function form() { |
Index: trunk/phase3/includes/specials/SpecialPrefixindex.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | wfMsg ( 'allpages' ) ); |
177 | 177 | if( isset( $res ) && $res && ( $n == $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) { |
178 | 178 | $namespaceparam = $namespace ? "&namespace=$namespace" : ""; |
179 | | - $out2 .= " | " . $sk->makeKnownLinkObj( |
| 179 | + $out2 .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . $sk->makeKnownLinkObj( |
180 | 180 | $self, |
181 | 181 | wfMsgHtml( 'nextpage', htmlspecialchars( $s->page_title ) ), |
182 | 182 | "from=" . wfUrlEncode( $s->page_title ) . |
Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -457,7 +457,7 @@ |
458 | 458 | $links[] = $skin->makeLink ( 'MediaWiki:Ipbreason-dropdown', wfMsgHtml( 'ipb-edit-dropdown' ) ); |
459 | 459 | $links[] = $this->getUnblockLink( $skin ); |
460 | 460 | $links[] = $this->getBlockListLink( $skin ); |
461 | | - return '<p class="mw-ipb-conveniencelinks">' . implode( ' | ', $links ) . '</p>'; |
| 461 | + return '<p class="mw-ipb-conveniencelinks">' . implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $links ) . '</p>'; |
462 | 462 | } |
463 | 463 | |
464 | 464 | /** |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -970,7 +970,7 @@ |
971 | 971 | $links[] = $this->makeLanguageSelectorLink( $parts[0], $parts[1] ); |
972 | 972 | } |
973 | 973 | } |
974 | | - return count( $links ) > 0 ? wfMsgHtml( 'loginlanguagelabel', implode( ' | ', $links ) ) : ''; |
| 974 | + return count( $links ) > 0 ? wfMsgHtml( 'loginlanguagelabel', implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $links ) ) : ''; |
975 | 975 | } else { |
976 | 976 | return ''; |
977 | 977 | } |
Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -340,7 +340,7 @@ |
341 | 341 | $limitLinks[] = $this->makeSelfLink( $prettyLimit, wfArrayToCGI( $overrides, $changed ) ); |
342 | 342 | } |
343 | 343 | |
344 | | - $nums = implode ( ' | ', $limitLinks ); |
| 344 | + $nums = implode ( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $limitLinks ); |
345 | 345 | |
346 | 346 | return wfMsgHtml( 'viewprevnext', $prev, $next, $nums ); |
347 | 347 | } |
— | — | @@ -403,6 +403,6 @@ |
404 | 404 | $overrides = array( $type => !$chosen ); |
405 | 405 | $links[] = $this->makeSelfLink( $msg, wfArrayToCGI( $overrides, $changed ) ); |
406 | 406 | } |
407 | | - return Xml::fieldset( wfMsg( 'whatlinkshere-filters' ), implode( ' | ', $links ) ); |
| 407 | + return Xml::fieldset( wfMsg( 'whatlinkshere-filters' ), implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $links ) ); |
408 | 408 | } |
409 | 409 | } |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -618,14 +618,16 @@ |
619 | 619 | $cl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ), |
620 | 620 | array( 'limit' => $value ), $nondefaults, $value == $options['limit'] ) ; |
621 | 621 | } |
622 | | - $cl = implode( ' | ', $cl ); |
623 | 622 | |
| 623 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 624 | + $cl = implode( $separator, $cl ); |
| 625 | + |
624 | 626 | // day links, reset 'from' to none |
625 | 627 | foreach( $wgRCLinkDays as $value ) { |
626 | 628 | $dl[] = $this->makeOptionsLink( $wgLang->formatNum( $value ), |
627 | 629 | array( 'days' => $value, 'from' => '' ), $nondefaults, $value == $options['days'] ) ; |
628 | 630 | } |
629 | | - $dl = implode( ' | ', $dl ); |
| 631 | + $dl = implode( $separator, $dl ); |
630 | 632 | |
631 | 633 | |
632 | 634 | // show/hide links |
— | — | @@ -650,7 +652,7 @@ |
651 | 653 | if( $wgUser->useRCPatrol() ) |
652 | 654 | $links[] = wfMsgHtml( 'rcshowhidepatr', $patrLink ); |
653 | 655 | $links[] = wfMsgHtml( 'rcshowhidemine', $myselfLink ); |
654 | | - $hl = implode( ' | ', $links ); |
| 656 | + $hl = implode( $separator, $links ); |
655 | 657 | |
656 | 658 | // show from this onward link |
657 | 659 | $now = $wgLang->timeanddate( wfTimestampNow(), true ); |
Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -45,7 +45,8 @@ |
46 | 46 | $wgOut->addScriptFile( 'allmessages.js' ); |
47 | 47 | if ( $ot == 'php' ) { |
48 | 48 | $navText .= wfAllMessagesMakePhp( $messages ); |
49 | | - $wgOut->addHTML( 'PHP | <a href="' . $wgTitle->escapeLocalUrl( 'ot=html' ) . '">HTML</a> | ' . |
| 49 | + $wgOut->addHTML( 'PHP | <a href="' . $wgTitle->escapeLocalUrl( 'ot=html' ) . '">HTML</a>' . |
| 50 | + wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . |
50 | 51 | '<a href="' . $wgTitle->escapeLocalUrl( 'ot=xml' ) . '">XML</a>' . |
51 | 52 | '<pre>' . htmlspecialchars( $navText ) . '</pre>' ); |
52 | 53 | } else if ( $ot == 'xml' ) { |
— | — | @@ -53,8 +54,9 @@ |
54 | 55 | header( 'Content-type: text/xml' ); |
55 | 56 | echo wfAllMessagesMakeXml( $messages ); |
56 | 57 | } else { |
57 | | - $wgOut->addHTML( '<a href="' . $wgTitle->escapeLocalUrl( 'ot=php' ) . '">PHP</a> | ' . |
58 | | - 'HTML | <a href="' . $wgTitle->escapeLocalUrl( 'ot=xml' ) . '">XML</a>' ); |
| 58 | + $wgOut->addHTML( '<a href="' . $wgTitle->escapeLocalUrl( 'ot=php' ) . '">PHP</a>' . |
| 59 | + wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . |
| 60 | + 'HTML' . wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . '<a href="' . $wgTitle->escapeLocalUrl( 'ot=xml' ) . '">XML</a>' ); |
59 | 61 | $wgOut->addWikiText( $navText ); |
60 | 62 | $wgOut->addHTML( wfAllMessagesMakeHTMLText( $messages ) ); |
61 | 63 | } |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -338,7 +338,7 @@ |
339 | 339 | |
340 | 340 | wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) ); |
341 | 341 | |
342 | | - $links = implode( ' | ', $tools ); |
| 342 | + $links = implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $tools ); |
343 | 343 | } |
344 | 344 | |
345 | 345 | // Old message 'contribsub' had one parameter, but that doesn't work for |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -913,14 +913,15 @@ |
914 | 914 | $diff = $wgRequest->getVal( 'diff' ); |
915 | 915 | $action = $wgRequest->getText( 'action' ); |
916 | 916 | |
| 917 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
917 | 918 | $s = $this->printableLink(); |
918 | 919 | $disclaimer = $this->disclaimerLink(); # may be empty |
919 | 920 | if( $disclaimer ) { |
920 | | - $s .= ' | ' . $disclaimer; |
| 921 | + $s .= $separator . $disclaimer; |
921 | 922 | } |
922 | 923 | $privacy = $this->privacyLink(); # may be empty too |
923 | 924 | if( $privacy ) { |
924 | | - $s .= ' | ' . $privacy; |
| 925 | + $s .= $separator . $privacy; |
925 | 926 | } |
926 | 927 | |
927 | 928 | if ( $wgOut->isArticleRelated() ) { |
— | — | @@ -930,12 +931,12 @@ |
931 | 932 | if( $image ) { |
932 | 933 | $link = htmlspecialchars( $image->getURL() ); |
933 | 934 | $style = $this->getInternalLinkAttributes( $link, $name ); |
934 | | - $s .= " | <a href=\"{$link}\"{$style}>{$name}</a>"; |
| 935 | + $s .= $separator . "<a href=\"{$link}\"{$style}>{$name}</a>"; |
935 | 936 | } |
936 | 937 | } |
937 | 938 | } |
938 | 939 | if ( 'history' == $action || isset( $diff ) || isset( $oldid ) ) { |
939 | | - $s .= ' | ' . $this->makeKnownLinkObj( $wgTitle, |
| 940 | + $s .= $separator . $this->makeKnownLinkObj( $wgTitle, |
940 | 941 | wfMsg( 'currentrev' ) ); |
941 | 942 | } |
942 | 943 | |
— | — | @@ -945,7 +946,7 @@ |
946 | 947 | if( !$wgTitle->equals( $wgUser->getTalkPage() ) ) { |
947 | 948 | $tl = $this->makeKnownLinkObj( $wgUser->getTalkPage(), wfMsgHtml( 'newmessageslink' ), 'redirect=no' ); |
948 | 949 | $dl = $this->makeKnownLinkObj( $wgUser->getTalkPage(), wfMsgHtml( 'newmessagesdifflink' ), 'diff=cur' ); |
949 | | - $s.= ' | <strong>'. wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>'; |
| 950 | + $s.= $separator . '<strong>'. wfMsg( 'youhavenewmessages', $tl, $dl ) . '</strong>'; |
950 | 951 | # disable caching |
951 | 952 | $wgOut->setSquidMaxage(0); |
952 | 953 | $wgOut->enableClientCache(false); |
— | — | @@ -954,7 +955,7 @@ |
955 | 956 | |
956 | 957 | $undelete = $this->getUndeleteLink(); |
957 | 958 | if( !empty( $undelete ) ) { |
958 | | - $s .= ' | '.$undelete; |
| 959 | + $s .= $separator . $undelete; |
959 | 960 | } |
960 | 961 | return $s; |
961 | 962 | } |
— | — | @@ -987,7 +988,7 @@ |
988 | 989 | if( $wgOut->isSyndicated() ) { |
989 | 990 | foreach( $wgFeedClasses as $format => $class ) { |
990 | 991 | $feedurl = $wgRequest->escapeAppendQuery( "feed=$format" ); |
991 | | - $s .= " | <a href=\"$feedurl\">{$format}</a>"; |
| 992 | + $s .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . "<a href=\"$feedurl\">{$format}</a>"; |
992 | 993 | } |
993 | 994 | } |
994 | 995 | return $s; |
— | — | @@ -1035,7 +1036,7 @@ |
1036 | 1037 | $getlink = $this->makeKnownLinkObj( $linkObj, htmlspecialchars( $display ) ); |
1037 | 1038 | $c++; |
1038 | 1039 | if ($c>1) { |
1039 | | - $subpages .= ' | '; |
| 1040 | + $subpages .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
1040 | 1041 | } else { |
1041 | 1042 | $subpages .= '< '; |
1042 | 1043 | } |
— | — | @@ -1102,9 +1103,9 @@ |
1103 | 1104 | SpecialPage::getTitleFor( 'Userlogout' ), wfMsg( 'logout' ), |
1104 | 1105 | array(), array( 'returnto' => $returnTo ) |
1105 | 1106 | ); |
1106 | | - $ret .= ' | ' . $this->specialLink( 'preferences' ); |
| 1107 | + $ret .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . $this->specialLink( 'preferences' ); |
1107 | 1108 | } |
1108 | | - $ret .= ' | ' . $this->link( |
| 1109 | + $ret .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . $this->link( |
1109 | 1110 | Title::newFromText( wfMsgForContent( 'helppage' ) ), |
1110 | 1111 | wfMsg( 'help' ) |
1111 | 1112 | ); |
— | — | @@ -1170,7 +1171,7 @@ |
1171 | 1172 | $s = ''; |
1172 | 1173 | wfRunHooks( 'SkinTemplateTabs', array( $this, &$tabs ) ); |
1173 | 1174 | foreach( $tabs as $tab ) { |
1174 | | - $s .= ' | ' . Xml::element( 'a', |
| 1175 | + $s .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . Xml::element( 'a', |
1175 | 1176 | array( 'href' => $tab['href'] ), |
1176 | 1177 | $tab['text'] ); |
1177 | 1178 | } |
— | — | @@ -1191,7 +1192,7 @@ |
1192 | 1193 | $varname = $wgContLang->getVariantname( $code ); |
1193 | 1194 | if( $varname == 'disable' ) |
1194 | 1195 | continue; |
1195 | | - $s .= ' | <a href="' . $wgTitle->escapeLocalUrl( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'; |
| 1196 | + $s .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . '<a href="' . $wgTitle->escapeLocalUrl( 'variant=' . $code ) . '">' . htmlspecialchars( $varname ) . '</a>'; |
1196 | 1197 | } |
1197 | 1198 | } |
1198 | 1199 | return $s; |
— | — | @@ -1622,7 +1623,7 @@ |
1623 | 1624 | $first = true; |
1624 | 1625 | if($wgContLang->isRTL()) $s .= '<span dir="LTR">'; |
1625 | 1626 | foreach( $a as $l ) { |
1626 | | - if ( ! $first ) { $s .= ' | '; } |
| 1627 | + if ( ! $first ) { $s .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); } |
1627 | 1628 | $first = false; |
1628 | 1629 | |
1629 | 1630 | $nt = Title::newFromText( $l ); |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1062,7 +1062,7 @@ |
1063 | 1063 | } |
1064 | 1064 | |
1065 | 1065 | if( $items ) { |
1066 | | - return ' (' . implode( ' | ', $items ) . ')'; |
| 1066 | + return ' (' . implode( wfMsgExt( 'pipe-separator' , 'escapenoentities' ), $items ) . ')'; |
1067 | 1067 | } else { |
1068 | 1068 | return ''; |
1069 | 1069 | } |