Index: trunk/extensions/CodeBrowse/CodeBrowseRepoListView.php |
— | — | @@ -13,20 +13,20 @@ |
14 | 14 | |
15 | 15 | $text = ''; |
16 | 16 | foreach( $repos as $repo ){ |
| 17 | + global $wgLang; |
| 18 | + |
17 | 19 | $name = $repo->getName(); |
18 | 20 | $text .= "* '''[[Special:CodeBrowse/$name|$name]]''' ("; |
19 | | - $text .= "[[Special:Code/$name|".wfMsgHtml( 'code-log' )."]]"; |
20 | | - $text .= " | [[Special:Code/$name/comments|".wfMsgHtml( 'code-notes' )."]]"; |
21 | | - $text .= " | [[Special:Code/$name/tag|".wfMsgHtml( 'code-tags' )."]]"; |
22 | | - $text .= " | [[Special:Code/$name/author|".wfMsgHtml( 'code-authors' )."]]"; |
| 21 | + $links[] = "[[Special:Code/$name|" . wfMsgHtml( 'code-log' ) . "]]"; |
| 22 | + $links[] = "[[Special:Code/$name/comments|" . wfMsgHtml( 'code-notes' ) . "]]"; |
| 23 | + $links[] = "[[Special:Code/$name/tag|" . wfMsgHtml( 'code-tags' ) . "]]"; |
| 24 | + $links[] = "[[Special:Code/$name/author|" . wfMsgHtml( 'code-authors' ) . "]]"; |
| 25 | + $text .= $wgLang->pipeList( $links ); |
23 | 26 | $text .= ")\n"; |
24 | 27 | } |
25 | 28 | |
26 | 29 | return $text; |
27 | | - |
28 | 30 | } |
29 | | - |
30 | | - |
31 | 31 | } |
32 | 32 | |
33 | 33 | class CodeRepoListView { |
Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | * Override SpecialPage::execute() |
25 | 25 | */ |
26 | 26 | function execute( $param ) { |
27 | | - global $wgOut, $wgRequest, $wgRecordAdminUseNamespaces; |
| 27 | + global $wgOut, $wgRequest, $wgRecordAdminUseNamespaces, $wgLang; |
28 | 28 | $this->setHeaders(); |
29 | 29 | $type = $wgRequest->getText( 'wpType' ) or $type = $param; |
30 | 30 | $record = $wgRequest->getText( 'wpRecord' ); |
— | — | @@ -35,9 +35,10 @@ |
36 | 36 | if ( $wpTitle && !ereg( "^$type:.+$", $wpTitle ) ) $wpTitle = "$type:$wpTitle"; |
37 | 37 | } |
38 | 38 | |
39 | | - $wgOut->addHTML( "<div class='center'><a href='" . $title->getLocalURL() . "/$type'>" . wfMsg( 'recordadmin-newsearch', $type ) . "</a> | " |
40 | | - . "<a href='" . $title->getLocalURL() . "'>" . wfMsg( 'recordadmin-newrecord' ) . "</a></div><br>\n" |
41 | | - ); |
| 39 | + $wgOut->addHTML( $wgLang->pipeList( array( |
| 40 | + "<div class='center'><a href='" . $title->getLocalURL() . "/$type'>" . wfMsg( 'recordadmin-newsearch', $type ) . "</a>", |
| 41 | + "<a href='" . $title->getLocalURL() . "'>" . wfMsg( 'recordadmin-newrecord' ) . "</a></div><br>\n" |
| 42 | + ) ) ); |
42 | 43 | |
43 | 44 | # Get posted form values if any |
44 | 45 | $posted = array(); |
Index: trunk/extensions/LatexDoc/LatexDoc.php |
— | — | @@ -138,6 +138,7 @@ |
139 | 139 | 'action=latexdoc&ext=pdf' ); |
140 | 140 | $htmlLatex = nl2br( htmlspecialchars( $text ) ); |
141 | 141 | |
| 142 | + // FIXME: hard coded pipe-separator (use $wgLang->pipeList( array ) if possible. |
142 | 143 | $framedLatex = <<<ENDTEXT |
143 | 144 | $dviLink | $pdfLink |
144 | 145 | <hr /> |
Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | } |
7 | 7 | |
8 | 8 | function execute( $language = NULL ) { |
9 | | - global $wgRequest, $wgOut, $wgTitle; |
| 9 | + global $wgRequest, $wgOut, $wgTitle, $wgLang; |
10 | 10 | |
11 | 11 | if ( !preg_match( '/^[a-z-]+$/', $language ) ) { |
12 | 12 | $language = 'en'; |
— | — | @@ -75,7 +75,7 @@ |
76 | 76 | ); |
77 | 77 | $pagingDiv = Xml::openElement( 'div', |
78 | 78 | array( 'align' => 'right', 'style' => 'padding-bottom:20px' ) ) . |
79 | | - implode( " | ", $pagingLinks ) . |
| 79 | + $wgLang->pipeList( $pagingLinks ) . |
80 | 80 | Xml::closeElement( 'div' ); |
81 | 81 | $output .= $pagingDiv; |
82 | 82 | |
Index: trunk/extensions/DynamicPageList/DynamicPageList2.php |
— | — | @@ -3879,7 +3879,7 @@ |
3880 | 3880 | if($article->mUserLink != '') $rBody .= ' . . [[User:' . $article->mUser .'|'.$article->mUser.']]'; |
3881 | 3881 | if($article->mContributor != '')$rBody .= ' . . [[User:' . $article->mContributor .'|'.$article->mContributor." $article->mContrib]]"; |
3882 | 3882 | |
3883 | | - if( !empty($article->mCategoryLinks) ) $rBody .= ' . . <SMALL>' . wfMsg('categories') . ': ' . implode(' | ', $article->mCategoryLinks) . '</SMALL>'; |
| 3883 | + if( !empty($article->mCategoryLinks) ) $rBody .= ' . . <small>' . wfMsg('categories') . ': ' . $wgLang->pipeList( $article->mCategoryLinks ) . '</small>'; |
3884 | 3884 | } |
3885 | 3885 | |
3886 | 3886 | // add included contents |
— | — | @@ -4115,7 +4115,4 @@ |
4116 | 4116 | sort($paramoptions); |
4117 | 4117 | return $this->escapeMsg( $msgid, $paramvar, htmlspecialchars( $val ), ExtDynamicPageList2::$options[$paramvar]['default'], implode(' | ', $paramoptions )); |
4118 | 4118 | } |
4119 | | - |
4120 | 4119 | } |
4121 | | - |
4122 | | -?> |
\ No newline at end of file |
Index: trunk/extensions/EditUser/1.15/EditUser_body.php |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | $this->tableRow( |
697 | 697 | wfMsgExt( 'prefs-memberingroups', array( 'parseinline' ), count( $userEffectiveGroupsArray ) ), |
698 | 698 | $wgLang->commaList( $userEffectiveGroupsArray ) . |
699 | | - '<br />(' . implode( ' | ', $toolLinks ) . ')' |
| 699 | + '<br />(' . $wgLang->pipeList( $toolLinks ) . ')' |
700 | 700 | ) . |
701 | 701 | |
702 | 702 | $this->tableRow( |
Index: trunk/extensions/SpecialFileList/SpecialFilelist.php |
— | — | @@ -321,7 +321,7 @@ |
322 | 322 | $ret[] = $this->sk->makeKnownLinkObj( $titleObj, $wgLang->formatNum( $l ), $p ) ; |
323 | 323 | } |
324 | 324 | |
325 | | - $text = wfMsg( "showlast", implode ( " | " , $ret ), wfMsg('bydate') ); |
| 325 | + $text = wfMsg( "showlast", $wgLang->pipeList( $ret ), wfMsg('bydate') ); |
326 | 326 | return $text ; |
327 | 327 | } |
328 | 328 | |
— | — | @@ -329,6 +329,8 @@ |
330 | 330 | * Returns the option links |
331 | 331 | */ |
332 | 332 | function options ( &$params ) { |
| 333 | + global $wgLang; |
| 334 | + |
333 | 335 | $titleObj = Title::makeTitle( NS_SPECIAL, 'Filelist' ); |
334 | 336 | $ret = array () ; |
335 | 337 | |
— | — | @@ -342,7 +344,7 @@ |
343 | 345 | $bots = $params['gallery'] ? wfMsg('filelist-show-list') : wfMsg('filelist-show-gallery') ; |
344 | 346 | $ret[] = $this->sk->makeKnownLinkObj( $titleObj, $bots, $this->getURLparams ( $p2 ) ); |
345 | 347 | |
346 | | - return "<p>" . implode ( " | " , $ret ) . "</p>" ; |
| 348 | + return "<p>" . $wgLang->pipeList( $ret ) . "</p>" ; |
347 | 349 | } |
348 | 350 | |
349 | 351 | /** |
— | — | @@ -369,7 +371,7 @@ |
370 | 372 | $nextLink = $this->sk->makeKnownLinkObj( $titleObj, $nextLink, $this->getURLparams ( $p2 ) ); |
371 | 373 | } |
372 | 374 | |
373 | | - $out .= $prevLink . " | " . $nextLink ; |
| 375 | + $out .= $wgLang->pipeList( array( $prevLink, $nextLink ) ); |
374 | 376 | |
375 | 377 | return "<p>" . $out . "</p>" ; |
376 | 378 | } |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Tools.php |
— | — | @@ -128,8 +128,12 @@ |
129 | 129 | 'js_eval' => $this->js_eval ) ); |
130 | 130 | } |
131 | 131 | function render_menu() { |
132 | | - return '<a href="javascript:mv_tool_disp(\'stream_page\')">' . wfMsg( 'mv_stream_meta' ) . '</a>' . ' | ' . |
133 | | - '<a href="javascript:mv_tool_disp(\'menu\')">' . wfMsg( 'mv_stream_tool_heading' ) . '</a>'; |
| 132 | + global $wgLang; |
| 133 | + |
| 134 | + return $wgLang->pipeList( array( |
| 135 | + '<a href="javascript:mv_tool_disp(\'stream_page\')">' . wfMsg( 'mv_stream_meta' ) . '</a>', |
| 136 | + '<a href="javascript:mv_tool_disp(\'menu\')">' . wfMsg( 'mv_stream_tool_heading' ) . '</a>' |
| 137 | + ) ); |
134 | 138 | } |
135 | 139 | |
136 | 140 | /* |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php |
— | — | @@ -77,15 +77,19 @@ |
78 | 78 | </div>'; |
79 | 79 | } |
80 | 80 | function render_menu() { |
| 81 | + global $wgLang; |
| 82 | + |
81 | 83 | $base_title = ''; |
82 | 84 | // set the base title to the stream name: |
83 | 85 | if ( isset( $this->mv_interface->article->mvTitle ) ) { |
84 | 86 | $base_title = $this->mv_interface->article->mvTitle->getStreamName(); |
85 | 87 | } |
86 | 88 | // '<a title="'.wfMsg('mv_search_stream_title').'" href="javascript:mv_tool_disp(\'search\')">'.wfMsg('mv_search_stream').'</a>' |
87 | | - return '<a title="' . htmlspecialchars( wfMsg( 'mv_mang_layers_title' ) ) . '" href="javascript:mv_tool_disp(\'mang_layers\')">' . wfMsg( 'mv_mang_layers' ) . '</a>' . |
88 | | - ' | ' . '<a title="' . htmlspecialchars( wfMsg( 'mv_new_ht_en' ) ) . '" href="javascript:mv_disp_add_mvd(\'ht_en\')">' . wfMsg( 'mv_new_ht_en' ) . '</a>' . |
89 | | - ' | ' . '<a href="javascript:mv_disp_add_mvd(\'anno_en\')">' . wfMsg( 'mv_new_anno_en' ) . '</a>'; |
| 89 | + return $wgLang->pipeList( array( |
| 90 | + '<a title="' . htmlspecialchars( wfMsg( 'mv_mang_layers_title' ) ) . '" href="javascript:mv_tool_disp(\'mang_layers\')">' . wfMsg( 'mv_mang_layers' ) . '</a>', |
| 91 | + '<a title="' . htmlspecialchars( wfMsg( 'mv_new_ht_en' ) ) . '" href="javascript:mv_disp_add_mvd(\'ht_en\')">' . wfMsg( 'mv_new_ht_en' ) . '</a>', |
| 92 | + '<a href="javascript:mv_disp_add_mvd(\'anno_en\')">' . wfMsg( 'mv_new_anno_en' ) . '</a>' |
| 93 | + ) ); |
90 | 94 | } |
91 | 95 | /* output caption div links */ |
92 | 96 | function get_video_timeline() { |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -723,6 +723,7 @@ |
724 | 724 | |
725 | 725 | // $wgOut->addWikiText( $copywarn ); |
726 | 726 | $wgOut->addHTML( $this->editFormTextAfterWarn ); |
| 727 | + $separator = wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
727 | 728 | $wgOut->addHTML( " |
728 | 729 | {$metadata} |
729 | 730 | {$editsummary} |
— | — | @@ -734,7 +735,7 @@ |
735 | 736 | $wgOut->addHTML( |
736 | 737 | "<div class='editButtons'> |
737 | 738 | {$buttonshtml} |
738 | | - <span class='editHelp'>{$cancel} | {$edithelp}</span> |
| 739 | + <span class='editHelp'>{$cancel}{$separator}{$edithelp}</span> |
739 | 740 | </div><!-- editButtons --> |
740 | 741 | </div><!-- editOptions -->" ); |
741 | 742 | |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -816,6 +816,7 @@ |
817 | 817 | } else { |
818 | 818 | $nlink = '<a href="' . $title->escapeLocalUrl( $q ) . "\" class=\"mw-nextlink\">{$next}</a>"; |
819 | 819 | } |
| 820 | + // If ever re-enabled, remember to use pipe-separator / Language::pipeList |
820 | 821 | /*$nums = wfNumLink( $offset, 20, $title, $query ) . ' | ' . |
821 | 822 | wfNumLink( $offset, 50, $title, $query ) . ' | ' . |
822 | 823 | wfNumLink( $offset, 100, $title, $query ) ; |
Index: trunk/extensions/LookupUser/LookupUser.body.php |
— | — | @@ -111,7 +111,11 @@ |
112 | 112 | } else { |
113 | 113 | $registration = wfMsg( 'lookupuser-no-registration' ); |
114 | 114 | } |
115 | | - $wgOut->addWikiText( '*' . wfMsg( 'username' ) . ' [[User:' . $name . '|' . $name . ']] ([[User talk:' . $name . '|' . wfMsg( 'talkpagelinktext' ) . ']] | [[Special:Contributions/' . $name . '|' . wfMsg( 'contribslink' ) . ']])' ); |
| 115 | + $wgOut->addWikiText( '*' . wfMsg( 'username' ) . ' [[User:' . $name . '|' . $name . ']] (' . |
| 116 | + $wgLang->pipeList( array( |
| 117 | + '[[User talk:' . $name . '|' . wfMsg( 'talkpagelinktext' ) . ']]', |
| 118 | + '[[Special:Contributions/' . $name . '|' . wfMsg( 'contribslink' ) . ']])' |
| 119 | + ) ) ); |
116 | 120 | $wgOut->addWikiText( '*' . wfMsg( 'lookupuser-id', $user->getId() ) ); |
117 | 121 | $wgOut->addWikiText( '*' . wfMsg( 'lookupuser-email', $email, $name ) ); |
118 | 122 | $wgOut->addWikiText( '*' . wfMsg( 'lookupuser-realname', $user->getRealName() ) ); |
— | — | @@ -121,4 +125,4 @@ |
122 | 126 | $wgOut->addWikiText( '*' . wfMsg( 'lookupuser-useroptions' ) . '<br />' . $optionsString ); |
123 | 127 | } |
124 | 128 | } |
125 | | -} |
\ No newline at end of file |
| 129 | +} |
Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -113,6 +113,8 @@ |
114 | 114 | } |
115 | 115 | |
116 | 116 | protected function navigationLinks() { |
| 117 | + global $wgLang; |
| 118 | + |
117 | 119 | $rev = $this->mRev->getId(); |
118 | 120 | $prev = $this->mRev->getPrevious(); |
119 | 121 | $next = $this->mRev->getNext(); |
— | — | @@ -139,7 +141,7 @@ |
140 | 142 | $links[] = $this->mSkin->link( $nextTarget, "r$next" ) . ' >'; |
141 | 143 | } |
142 | 144 | |
143 | | - return implode( ' | ', $links ); |
| 145 | + return $wgLang->pipeList( $links ); |
144 | 146 | } |
145 | 147 | |
146 | 148 | protected function checkPostings() { |
Index: trunk/extensions/CodeReview/CodeRepoListView.php |
— | — | @@ -19,13 +19,15 @@ |
20 | 20 | } |
21 | 21 | |
22 | 22 | public static function getNavItem( $name ) { |
| 23 | + global $wgLang; |
| 24 | + |
23 | 25 | $text = "'''[[Special:Code/$name|$name]]''' ("; |
24 | | - $text .= "[[Special:Code/$name/comments|".wfMsgHtml( 'code-notes' )."]]"; |
25 | | - $text .= " | [[Special:Code/$name/status|".wfMsgHtml( 'code-status' )."]]"; |
26 | | - $text .= " | [[Special:Code/$name/tag|".wfMsgHtml( 'code-tags' )."]]"; |
27 | | - $text .= " | [[Special:Code/$name/author|".wfMsgHtml( 'code-authors' )."]]"; |
| 26 | + $links[] = "[[Special:Code/$name/comments|" . wfMsgHtml( 'code-notes' ) . "]]"; |
| 27 | + $links[] = "[[Special:Code/$name/status|" . wfMsgHtml( 'code-status' ) . "]]"; |
| 28 | + $links[] = "[[Special:Code/$name/tag|" . wfMsgHtml( 'code-tags' ) . "]]"; |
| 29 | + $links[] = "[[Special:Code/$name/author|" . wfMsgHtml( 'code-authors' ) . "]]"; |
| 30 | + $text .= $wgLang->pipeList( $links ); |
28 | 31 | $text .= ")"; |
29 | 32 | return $text; |
30 | 33 | } |
31 | 34 | } |
32 | | - |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGifts.php |
— | — | @@ -122,7 +122,8 @@ |
123 | 123 | <div class="g-actions"> |
124 | 124 | <a href="'.$give_gift_link->escapeFullURL('gift_id='.$gift['gift_id']).'">'.wfMsg('g-to-another').'</a>'; |
125 | 125 | if( $rel->user_name == $wgUser->getName() ) { |
126 | | - $output .= ' | <a href="'.$remove_gift_link->escapeFullURL('gift_id='.$gift['id']).'">'.wfMsg('g-remove-gift').'</a>'; |
| 126 | + $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 127 | + $output .= '<a href="' . $remove_gift_link->escapeFullURL( 'gift_id=' . $gift['id'] ) . '">' . wfMsg( 'g-remove-gift' ) . '</a>'; |
127 | 128 | } |
128 | 129 | $output .= '</div> |
129 | 130 | <div class="cleared"></div>'; |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGift.php |
— | — | @@ -82,7 +82,10 @@ |
83 | 83 | <div class=\"g-describe\">{$gift["description"]}</div> |
84 | 84 | <div class=\"g-actions\"> |
85 | 85 | <a href=\"".$give_gift_link->escapeFullURL('gift_id='.$gift['gift_id'])."\">".wfMsg('g-to-another')."</a>"; |
86 | | - if( $gift['user_name_to'] == $wgUser->getName() ) $output .= " | <a href=\"".$remove_gift_link->escapeFullURL('gift_id='.$gift['id'])."\">".wfMsg('g-remove-gift')."</a>"; |
| 86 | + if( $gift['user_name_to'] == $wgUser->getName() ) { |
| 87 | + $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
| 88 | + $output .= "<a href=\"" . $remove_gift_link->escapeFullURL( 'gift_id=' . $gift['id'] ) . "\">" . wfMsg( 'g-remove-gift' ) . "</a>"; |
| 89 | + } |
87 | 90 | $output .= '</div> |
88 | 91 | </div>'; |
89 | 92 | |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiftManagerLogo.php |
— | — | @@ -378,7 +378,7 @@ |
379 | 379 | * @access private |
380 | 380 | */ |
381 | 381 | function showSuccess( $status ) { |
382 | | - global $wgUser, $wgOut, $wgContLang, $wgDBname, $wgUploadPath, $wgScriptPath; |
| 382 | + global $wgUser, $wgOut, $wgContLang, $wgDBname, $wgUploadPath, $wgScriptPath, $wgLang; |
383 | 383 | wfLoadExtensionMessages('UserGifts'); |
384 | 384 | $ext = 'jpg'; |
385 | 385 | |
— | — | @@ -395,8 +395,11 @@ |
396 | 396 | $output .= '<tr><td valign="top" style="color:#666666;font-weight:800">'.wfMsg('g-small').'</td><td><img src="'.$wgUploadPath.'/awards/' . $this->gift_id . '_s.' . $ext . '?ts' . rand() . '"></td></tr>'; |
397 | 397 | $output .= '<tr><td><input type="button" onclick="javascript:history.go(-1)" value="'.wfMsg('g-go-back').'"></td></tr>'; |
398 | 398 | |
399 | | - $output .= '<tr><td><a href="'.$wgScriptPath.'/index.php?title=Special:GiftManager">'.wfMsg('g-back-gift-list').'</a> | '; |
400 | | - $output .= '<a href="'.$wgScriptPath.'/index.php?title=Special:GiftManager&id='. $this->gift_id .'">'.wfMsg('g-back-edit-gift').'</a></td></tr>'; |
| 399 | + // FIXME: contains very hard coded URLs |
| 400 | + $output .= $wgLang->pipeList( array( |
| 401 | + '<tr><td><a href="' . $wgScriptPath . '/index.php?title=Special:GiftManager">' . wfMsg( 'g-back-gift-list' ) . '</a>', |
| 402 | + '<a href="' . $wgScriptPath . '/index.php?title=Special:GiftManager&id=' . $this->gift_id . '">' . wfMsg( 'g-back-edit-gift' ) . '</a></td></tr>' |
| 403 | + ) ); |
401 | 404 | $output .= '</table>'; |
402 | 405 | $wgOut->addHTML($output); |
403 | 406 | } |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -409,7 +409,7 @@ |
410 | 410 | } |
411 | 411 | |
412 | 412 | function getProfileTop( $user_id, $user_name ) { |
413 | | - global $IP, $wgTitle, $wgUser, $wgMemc, $wgUploadPath; |
| 413 | + global $IP, $wgTitle, $wgUser, $wgMemc, $wgUploadPath, $wgLang; |
414 | 414 | |
415 | 415 | // Load messages, we're gonna need 'em |
416 | 416 | wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
— | — | @@ -482,25 +482,41 @@ |
483 | 483 | <div class="profile-actions">'; |
484 | 484 | |
485 | 485 | if ( $this->isOwner() ) { |
486 | | - $output .= ' |
487 | | - <a href="'.$update_profile->escapeFullURL().'">'.wfMsg('user-edit-profile').'</a> | |
488 | | - <a href="'.$upload_avatar->escapeFullURL().'">'.wfMsg('user-upload-avatar').'</a> | |
489 | | - <a href="'.$watchlist->escapeFullURL().'">'.wfMsg('user-watchlist').'</a> | |
490 | | - '; |
| 486 | + $output .= $wgLang->pipeList( array( |
| 487 | + '<a href="' . $update_profile->escapeFullURL() . '">' . wfMsg( 'user-edit-profile ') . '</a>', |
| 488 | + '<a href="' . $upload_avatar->escapeFullURL() . '">' . wfMsg( 'user-upload-avatar' ) . '</a>', |
| 489 | + '<a href="' . $watchlist->escapeFullURL() . '">' . wfMsg( 'user-watchlist' ) . '</a>', |
| 490 | + '' |
| 491 | + ) ); |
491 | 492 | } else if( $wgUser->isLoggedIn() ) { |
492 | 493 | if( $relationship == false ) { |
493 | | - $output .= '<a href="'.$add_relationship->escapeFullURL('user='.$user_safe.'&rel_type=1').'" rel="nofollow">'.wfMsg('user-add-friend').'</a> | |
494 | | - <a href="'.$add_relationship->escapeFullURL('user='.$user_safe.'&rel_type=2').'" rel="nofollow">'.wfMsg('user-add-foe').'</a> | '; |
| 494 | + $output .= $wgLang->pipeList( array( |
| 495 | + '<a href="'.$add_relationship->escapeFullURL('user='.$user_safe.'&rel_type=1').'" rel="nofollow">'.wfMsg('user-add-friend').'</a>', |
| 496 | + '<a href="'.$add_relationship->escapeFullURL('user='.$user_safe.'&rel_type=2').'" rel="nofollow">'.wfMsg('user-add-foe').'</a>', |
| 497 | + '' |
| 498 | + ) ); |
495 | 499 | } else { |
496 | | - if( $relationship == 1 ) $output .= '<a href="'.$remove_relationship->escapeFullURL('user='.$user_safe).'">'.wfMsg('user-remove-friend').'</a> | '; |
497 | | - if( $relationship == 2 ) $output .= '<a href="'.$remove_relationship->escapeFullURL('user='.$user_safe).'">'.wfMsg('user-remove-foe').'</a> | '; |
| 500 | + if( $relationship == 1 ) { |
| 501 | + $output .= $wgLang->pipeList( array( |
| 502 | + '<a href="' . $remove_relationship->escapeFullURL( 'user=' . $user_safe ) . '">' . wfMsg( 'user-remove-friend' ) . '</a>', |
| 503 | + '' |
| 504 | + ) ); |
| 505 | + } |
| 506 | + if( $relationship == 2 ) { |
| 507 | + $output .= $wgLang->pipeList( array( |
| 508 | + '<a href="' . $remove_relationship->escapeFullURL( 'user=' . $user_safe ) . '">' . wfMsg( 'user-remove-foe' ) . '</a>', |
| 509 | + '' |
| 510 | + ) ); |
| 511 | + } |
498 | 512 | } |
499 | 513 | |
500 | 514 | global $wgUserBoard; |
501 | 515 | if( $wgUserBoard ){ |
502 | | - $output .= '<a href="'.$send_message->escapeFullURL('user='.$wgUser->getName().'&conv='.$user_safe).'" rel="nofollow">'.wfMsg('user-send-message').'</a> | '; |
| 516 | + $output .= '<a href="'.$send_message->escapeFullURL('user='.$wgUser->getName().'&conv='.$user_safe).'" rel="nofollow">'.wfMsg('user-send-message').'</a>'; |
| 517 | + $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
503 | 518 | } |
504 | | - $output .= '<a href="'.$give_gift->escapeFullURL('user='.$user_safe).'" rel="nofollow">'.wfMsg('user-send-gift').'</a> |'; |
| 519 | + $output .= '<a href="'.$give_gift->escapeFullURL('user='.$user_safe).'" rel="nofollow">'.wfMsg('user-send-gift').'</a>'; |
| 520 | + $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
505 | 521 | } |
506 | 522 | |
507 | 523 | $output .= '<a href="'.$contributions->escapeFullURL().'" rel="nofollow">'.wfMsg('user-contributions').'</a> '; |
— | — | @@ -840,7 +856,7 @@ |
841 | 857 | <div class="action-right">'; |
842 | 858 | if( $wgUser->getName() == $user_name ) { |
843 | 859 | if( $friends ) $output .= '<a href="' . UserBoard::getBoardBlastURL().'">'.wfMsg('user-send-board-blast').'</a>'; |
844 | | - if( $total > 10 ) $output .= ' | '; |
| 860 | + if( $total > 10 ) $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
845 | 861 | } |
846 | 862 | if( $total > 10 ) $output .= '<a href="'.UserBoard::getUserBoardURL($user_name).'">'.wfMsg('user-view-all').'</a>'; |
847 | 863 | $output .= '</div> |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialViewRelationships.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * @param $params Mixed: parameter(s) passed to the page or null |
28 | 28 | */ |
29 | 29 | public function execute( $params ) { |
30 | | - global $wgUser, $wgOut, $wgRequest, $wgUserRelationshipScripts; |
| 30 | + global $wgUser, $wgOut, $wgRequest, $wgUserRelationshipScripts, $wgLang; |
31 | 31 | |
32 | 32 | wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
33 | 33 | |
— | — | @@ -159,10 +159,14 @@ |
160 | 160 | </div> |
161 | 161 | <div class=\"relationship-actions\">"; |
162 | 162 | if( $indivRelationship == false ) { |
163 | | - $output .= "<a href=\"".$add_relationship_link->escapeFullURL('user='.$user_safe.'&rel_type=1')."\">".wfMsg('ur-add-friend')."</a> | |
164 | | - <a href=\"".$add_relationship_link->escapeFullURL('user='.$user_safe.'&rel_type=2')."\">".wfMsg('ur-add-foe')."</a> | "; |
| 163 | + $output .= $wgLang->pipeList( array( |
| 164 | + "<a href=\"" . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=1') . "\">" . wfMsg( 'ur-add-friend') . "</a>", |
| 165 | + "<a href=\"" . $add_relationship_link->escapeFullURL( 'user=' . $user_safe . '&rel_type=2') . "\">" . wfMsg( 'ur-add-foe' ) . "</a>", |
| 166 | + '' |
| 167 | + ) ); |
165 | 168 | } else if( $user_name == $wgUser->getName() ) { |
166 | | - $output .= "<a href=\"".$remove_relationship_link->escapeFullURL('user='.$user_safe)."\">".$rem."</a> | "; |
| 169 | + $output .= "<a href=\"".$remove_relationship_link->escapeFullURL('user='.$user_safe)."\">".$rem."</a>"; |
| 170 | + $output .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
167 | 171 | } |
168 | 172 | $output .= "<a href=\"".$give_gift_link->escapeFullURL('user='.$user_safe)."\">".wfMsg('ur-give-gift')."</a>"; |
169 | 173 | |
Index: trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManagerLogo.php |
— | — | @@ -369,7 +369,7 @@ |
370 | 370 | * @access private |
371 | 371 | */ |
372 | 372 | function showSuccess( $status ) { |
373 | | - global $wgUser, $wgOut, $wgContLang, $wgDBname, $wgUploadPath, $wgScriptPath; |
| 373 | + global $wgUser, $wgOut, $wgContLang, $wgDBname, $wgUploadPath, $wgScriptPath, $wgLang; |
374 | 374 | wfLoadExtensionMessages('SystemGifts'); |
375 | 375 | $ext = 'jpg'; |
376 | 376 | |
— | — | @@ -386,8 +386,11 @@ |
387 | 387 | $output .= '<tr><td valign="top" style="color:#666666;font-weight:800">'.wfMsg('ga-small').'</td><td><img src="'.$wgUploadPath.'/awards/sg_' . $this->gift_id . '_s.' . $ext . '?ts' . rand() . '"></td></tr>'; |
388 | 388 | $output .= '<tr><td><input type="button" onclick="javascript:history.go(-1)" value="'.wfMsg('ga-goback').'"></td></tr>'; |
389 | 389 | |
390 | | - $output .= '<tr><td><a href="'.$wgScriptPath.'/index.php?title=Special:SystemGiftManager">'.wfMsg('ga-back-gift-list').'</a> | '; |
391 | | - $output .= '<a href="'.$wgScriptPath.'/index.php?title=Special:SystemGiftManager&id='. $this->gift_id .'">'.wfMsg('ga-back-edit-gift').'</a></td></tr>'; |
| 390 | + // FIXME: contains very hard coded URLs |
| 391 | + $output .= $wgLang->pipeList( array( |
| 392 | + '<tr><td><a href="' . $wgScriptPath . '/index.php?title=Special:SystemGiftManager">' . wfMsg( 'ga-back-gift-list' ) . '</a>', |
| 393 | + '<a href="' . $wgScriptPath . '/index.php?title=Special:SystemGiftManager&id=' . $this->gift_id . '">' . wfMsg( 'ga-back-edit-gift') . '</a></td></tr>' |
| 394 | + ) ); |
392 | 395 | $output .= '</table>'; |
393 | 396 | $wgOut->addHTML($output); |
394 | 397 | } |
Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -550,7 +550,7 @@ |
551 | 551 | |
552 | 552 | $wikiLink = $special->getLocalURL( 'target=' . $t->getPartialURL() . '&' . $this->getOptionsAsUrlParameters() ); |
553 | 553 | |
554 | | - if ( $s !== '' ) $s .= ' | '; |
| 554 | + if ( $s !== '' ) $s .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
555 | 555 | |
556 | 556 | $s .= Xml::openElement( 'span', array( 'class' => 'CategoryTreeItem' ) ); |
557 | 557 | $s .= Xml::openElement( 'a', array( 'class' => 'CategoryTreeLabel', 'href' => $wikiLink ) ) . $label . Xml::closeElement( 'a' ); |
Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -15,9 +15,9 @@ |
16 | 16 | SpecialPage::SpecialPage('ConfirmAccounts','confirmaccount'); |
17 | 17 | } |
18 | 18 | |
19 | | - function execute( $par ) { |
20 | | - global $wgRequest, $wgOut, $wgUser, $wgAccountRequestTypes; |
21 | | - |
| 19 | + function execute( $par ) { |
| 20 | + global $wgRequest, $wgOut, $wgUser, $wgAccountRequestTypes, $wgLang; |
| 21 | + |
22 | 22 | if( !$wgUser->isAllowed( 'confirmaccount' ) ) { |
23 | 23 | $wgOut->permissionRequired( 'confirmaccount' ); |
24 | 24 | return; |
— | — | @@ -91,22 +91,40 @@ |
92 | 92 | $listLink = wfMsgHtml( 'confirmaccount-showopen' ); |
93 | 93 | } |
94 | 94 | if( $this->acrID || !$this->showHeld ) { |
95 | | - $listLink .= ' | '.$this->skin->makeKnownLinkObj( $titleObj, |
96 | | - wfMsgHtml( 'confirmaccount-showheld' ), wfArrayToCGI( array( 'wpShowHeld' => 1 ) ) ); |
| 95 | + $listLink = $wgLang->pipeList( array( |
| 96 | + $listLink, |
| 97 | + $this->skin->makeKnownLinkObj( $titleObj, |
| 98 | + wfMsgHtml( 'confirmaccount-showheld' ), wfArrayToCGI( array( 'wpShowHeld' => 1 ) ) ) |
| 99 | + ) ); |
97 | 100 | } else { |
98 | | - $listLink .= ' | '.wfMsgHtml( 'confirmaccount-showheld' ); |
| 101 | + $listLink = $wgLang->pipeList( array( |
| 102 | + $listLink, |
| 103 | + wfMsgHtml( 'confirmaccount-showheld' ) |
| 104 | + ) ); |
99 | 105 | } |
100 | 106 | if( $this->acrID || !$this->showRejects ) { |
101 | | - $listLink .= ' | '.$this->skin->makeKnownLinkObj( $titleObj, wfMsgHtml( 'confirmaccount-showrej' ), |
102 | | - wfArrayToCGI( array( 'wpShowRejects' => 1 ) ) ); |
| 107 | + $listLink = $wgLang->pipeList( array( |
| 108 | + $listLink, |
| 109 | + $this->skin->makeKnownLinkObj( $titleObj, wfMsgHtml( 'confirmaccount-showrej' ), |
| 110 | + wfArrayToCGI( array( 'wpShowRejects' => 1 ) ) ) |
| 111 | + ) ); |
103 | 112 | } else { |
104 | | - $listLink .= ' | '.wfMsgHtml( 'confirmaccount-showrej' ); |
| 113 | + $listLink = $wgLang->pipeList( array( |
| 114 | + $listLink, |
| 115 | + wfMsgHtml( 'confirmaccount-showrej' ) |
| 116 | + ) ); |
105 | 117 | } |
106 | 118 | if( $this->acrID || !$this->showStale ) { |
107 | | - $listLink .= ' | '.$this->skin->makeKnownLinkObj( $titleObj, wfMsgHtml( 'confirmaccount-showexp' ), |
108 | | - wfArrayToCGI( array( 'wpShowStale' => 1 ) ) ); |
| 119 | + $listLink = $wgLang->pipeList( array( |
| 120 | + $listLink, |
| 121 | + $this->skin->makeKnownLinkObj( $titleObj, wfMsgHtml( 'confirmaccount-showexp' ), |
| 122 | + wfArrayToCGI( array( 'wpShowStale' => 1 ) ) ) |
| 123 | + ) ); |
109 | 124 | } else { |
110 | | - $listLink .= ' | '.wfMsgHtml( 'confirmaccount-showexp' ); |
| 125 | + $listLink = $wgLang->pipeList( array( |
| 126 | + $listLink, |
| 127 | + wfMsgHtml( 'confirmaccount-showexp' ) |
| 128 | + ) ); |
111 | 129 | } |
112 | 130 | |
113 | 131 | # Say what queue we are in... |
— | — | @@ -133,7 +151,7 @@ |
134 | 152 | } |
135 | 153 | |
136 | 154 | function showQueues() { |
137 | | - global $wgOut, $wgAccountRequestTypes; |
| 155 | + global $wgOut, $wgAccountRequestTypes, $wgLang; |
138 | 156 | |
139 | 157 | $wgOut->addWikiText( wfMsg('confirmaccount-maintext') ); |
140 | 158 | |
— | — | @@ -169,7 +187,9 @@ |
170 | 188 | __METHOD__ ); |
171 | 189 | $rejects .= " [$count]"; |
172 | 190 | |
173 | | - $wgOut->addHTML( "<li><i>".wfMsgHtml("confirmaccount-type-$i")."</i> ($open | $held | $rejects | $stale)</li>" ); |
| 191 | + $wgOut->addHTML( "<li><i>".wfMsgHtml("confirmaccount-type-$i")."</i> ($open" . |
| 192 | + $wgLang->pipeList( array( $held, $rejects, $stale ) ) . |
| 193 | + ")</li>" ); |
174 | 194 | } |
175 | 195 | $wgOut->addHTML( '</ul>' ); |
176 | 196 | } |
Index: trunk/extensions/ImageTagging/ImageTagging.php |
— | — | @@ -318,7 +318,7 @@ |
319 | 319 | } |
320 | 320 | |
321 | 321 | function wfGetImageTags($img, $imgName) { |
322 | | - global $wgDBname, $wgUser, $wgOut; |
| 322 | + global $wgDBname, $wgUser, $wgOut, $wgLang; |
323 | 323 | |
324 | 324 | wfProfileIn( __METHOD__ ); |
325 | 325 | |
— | — | @@ -353,7 +353,7 @@ |
354 | 354 | |
355 | 355 | $removeLink = '<a href="#" onclick="removeTag(' . $o->unique_id . ', this, \'' . addslashes( $o->article_tag ) . '\'); return false;">' . wfMsgHtml('imagetagging-removetag') . '</a>'; |
356 | 356 | |
357 | | - $html .= $span . $articleLink . ' (' . $imagesLink . ' | ' . $removeLink . ')</span>'; |
| 357 | + $html .= $span . $articleLink . ' (' . $wgLang->pipeList( array( $imagesLink, $removeLink ) ) . ')</span>'; |
358 | 358 | } |
359 | 359 | $db->freeResult($res); |
360 | 360 | |
Index: trunk/extensions/SisterSites/SisterSites.php |
— | — | @@ -31,6 +31,8 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | function wfSisterList( $sites ) { |
| 35 | + global $wgLang; |
| 36 | + |
35 | 37 | foreach( $sites as $site ) { |
36 | 38 | $bits[] = Xml::element( 'a', |
37 | 39 | array( |
— | — | @@ -42,7 +44,7 @@ |
43 | 45 | } |
44 | 46 | return "<div class=\"mw_sistersites\">" . |
45 | 47 | "Sister sites: " . |
46 | | - implode( " | ", $bits ) . |
| 48 | + $wgLang->pipeList( $bits ) . |
47 | 49 | "</div>\n"; |
48 | 50 | } |
49 | 51 | |
Index: trunk/extensions/NewestPages/NewestPages.page.php |
— | — | @@ -123,6 +123,8 @@ |
124 | 124 | } |
125 | 125 | |
126 | 126 | function makeLimitLinks() { |
| 127 | + global $wgLang; |
| 128 | + |
127 | 129 | $limits = array( 10, 20, 30, 50, 100, 150 ); |
128 | 130 | foreach( $limits as $limit ) { |
129 | 131 | if( $limit != $this->limit ) { |
— | — | @@ -131,7 +133,7 @@ |
132 | 134 | $links[] = (string)$limit; |
133 | 135 | } |
134 | 136 | } |
135 | | - return( wfMsgHtml( 'newestpages-limitlinks', implode( ' | ', $links ) ) ); |
| 137 | + return( wfMsgHtml( 'newestpages-limitlinks', $wgLang->pipeList( $links ) ) ); |
136 | 138 | } |
137 | 139 | |
138 | 140 | function makeRedirectToggle() { |
Index: trunk/extensions/CleanChanges/CleanChanges_body.php |
— | — | @@ -473,7 +473,8 @@ |
474 | 474 | } |
475 | 475 | |
476 | 476 | if( $items ) { |
477 | | - $data = array( "wgUserInfo$rci" => '(' . implode( ' | ', $items ) . ')' ); |
| 477 | + global $wgLang; |
| 478 | + $data = array( "wgUserInfo$rci" => '(' . $wgLang->pipeList( $items ) . ')' ); |
478 | 479 | |
479 | 480 | return array($tl, $data); |
480 | 481 | } else { |
Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php |
— | — | @@ -222,7 +222,7 @@ |
223 | 223 | |
224 | 224 | |
225 | 225 | protected function getInputForm($printoutstring, $urltail) { |
226 | | - global $wgUser, $smwgQSortingSupport; |
| 226 | + global $wgUser, $smwgQSortingSupport, $wgLang; |
227 | 227 | $skin = $wgUser->getSkin(); |
228 | 228 | $result = ''; |
229 | 229 | |
— | — | @@ -259,9 +259,12 @@ |
260 | 260 | $result .= '<a href="' . htmlspecialchars($skin->makeSpecialUrl('Ask',$urltail . '&eq=yes&sc=1')) . '" rel="nofollow">' . wfMsg('smw_add_sortcondition') . '</a>'; // note that $urltail uses a , separated list for sorting, so setting sc to 1 always adds one new condition |
261 | 261 | } |
262 | 262 | $result .= '<br /><input type="submit" value="' . wfMsg('smw_ask_submit') . '"/>' . |
263 | | - '<input type="hidden" name="eq" value="yes"/>' . |
264 | | - ' <a href="' . htmlspecialchars($skin->makeSpecialUrl('Ask',$urltail)) . '" rel="nofollow">' . wfMsg('smw_ask_hidequery') . '</a> | <a href="' . htmlspecialchars(wfMsg('smw_ask_doculink')) . '">' . wfMsg('smw_ask_help') . '</a>' . |
265 | | - "\n</form><br />"; |
| 263 | + '<input type="hidden" name="eq" value="yes"/>' . |
| 264 | + $wgLang->pipeList( array( |
| 265 | + ' <a href="' . htmlspecialchars($skin->makeSpecialUrl('Ask',$urltail)) . '" rel="nofollow">' . wfMsg('smw_ask_hidequery') . '</a>', |
| 266 | + '<a href="' . htmlspecialchars(wfMsg('smw_ask_doculink')) . '">' . wfMsg('smw_ask_help') . '</a>' |
| 267 | + ) ) . |
| 268 | + "\n</form><br />"; |
266 | 269 | } else { |
267 | 270 | $result .= '<p><a href="' . htmlspecialchars($skin->makeSpecialUrl('Ask',$urltail . '&eq=yes')) . '" rel="nofollow">' . wfMsg('smw_ask_editquery') . '</a></p>'; |
268 | 271 | } |
— | — | @@ -295,7 +298,7 @@ |
296 | 299 | if ($first) { |
297 | 300 | $navigation .= ' ('; |
298 | 301 | $first = false; |
299 | | - } else $navigation .= ' | '; |
| 302 | + } else $navigation .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
300 | 303 | if ( $limit != $l ) { |
301 | 304 | $navigation .= '<a href="' . htmlspecialchars($skin->makeSpecialUrl('Ask','offset=' . $offset . '&limit=' . $l . $urltail)) . '" rel="nofollow">' . $l . '</a>'; |
302 | 305 | } else { |
— | — | @@ -365,7 +368,7 @@ |
366 | 369 | if ($first) { |
367 | 370 | $navigation .= ' ('; |
368 | 371 | $first = false; |
369 | | - } else $navigation .= ' | '; |
| 372 | + } else $navigation .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
370 | 373 | if ($l > $smwgQMaxLimit) { |
371 | 374 | $l = $smwgQMaxLimit; |
372 | 375 | $max = true; |
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByProperty.php |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | $navigation .= ' ('; |
225 | 225 | $first = false; |
226 | 226 | } else |
227 | | - $navigation .= ' | '; |
| 227 | + $navigation .= wfMsgExt( 'pipe-separator' , 'escapenoentities' ); |
228 | 228 | if ($l > $smwgQMaxInlineLimit) { |
229 | 229 | $l = $smwgQMaxInlineLimit; |
230 | 230 | $max = true; |