Index: trunk/extensions/Collection/Collection.i18n.php |
— | — | @@ -42,9 +42,8 @@ |
43 | 43 | <strong>Your browser does not support JavaScript or JavaScript has been turned off. |
44 | 44 | This page will not work correctly, unless JavaScript is enabled.</strong>', |
45 | 45 | 'coll-intro_text' => "You can collect pages, generate and download a PDF file from page collections and save page collections for later use or to share them. |
46 | | - |
47 | | -See the [[{{MediaWiki:Coll-helppage}}|help page about collections]] for more information.", |
48 | | - 'coll-helppage' => 'Help:Collections', |
| 46 | + |
| 47 | +See the [[$1|help page about collections]] for more information.", |
49 | 48 | 'coll-pdftoobigcat' => 'The category contains more than %PARAM% pages, only the first %PARAM% pages can be added to your collection. |
50 | 49 | Do you want to add them?', |
51 | 50 | 'coll-my_collection' => 'My Collection', |
— | — | @@ -108,7 +107,7 @@ |
109 | 108 | [$1 Click here] to download it to your computer. |
110 | 109 | |
111 | 110 | Not satisfied with the PDF output? |
112 | | -See [[{{MediaWiki:Coll-helppage}}|the help page about collections]] for possibilities to improve it.", |
| 111 | +See [[$2|the help page about collections]] for possibilities to improve it.", |
113 | 112 | 'coll-notfound_title' => 'Collection not found', |
114 | 113 | 'coll-notfound_text' => 'Could not find collection page.', |
115 | 114 | 'coll-return_to_collection' => 'Return to <a href="$1">$2</a>', |
Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -55,6 +55,9 @@ |
56 | 56 | /** Template blacklist article */ |
57 | 57 | $wgPDFTemplateBlacklist = 'MediaWiki:PDF Template Blacklist'; |
58 | 58 | |
| 59 | +/** Help page for the Collection extension */ |
| 60 | +$wgCollectionHelpPage = 'mw:Extension:Collection/Help'; |
| 61 | + |
59 | 62 | # ============================================================================== |
60 | 63 | |
61 | 64 | |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -507,6 +507,7 @@ |
508 | 508 | } |
509 | 509 | |
510 | 510 | function generatingPDF() { |
| 511 | + global $wgCollectionHelpPage; |
511 | 512 | global $wgOut; |
512 | 513 | global $wgRequest; |
513 | 514 | |
— | — | @@ -543,7 +544,7 @@ |
544 | 545 | SkinTemplate::makeSpecialUrlSubpage( 'Collection', 'download_pdf/' ), |
545 | 546 | 'collection_id=' . urlencode( $response->collection_id ) |
546 | 547 | ); |
547 | | - $wgOut->addWikiMsg( 'coll-pdf_finished_text', wfExpandUrl( $url ) ); |
| 548 | + $wgOut->addWikiMsg( 'coll-pdf_finished_text', wfExpandUrl( $url ), $wgCollectionHelpPage ); |
548 | 549 | if ( $return_to ) { |
549 | 550 | // We are doing this the hard way (i.e. via the HTML detour), to prevent |
550 | 551 | // the parser from replacing [[:Special:Collection]] with a selflink. |
— | — | @@ -661,12 +662,13 @@ |
662 | 663 | } |
663 | 664 | |
664 | 665 | private function outputIntro() { |
| 666 | + global $wgCollectionHelpPage; |
665 | 667 | global $wgOut; |
666 | 668 | |
667 | 669 | $wgOut->addHTML( '<noscript>' ); |
668 | 670 | $wgOut->addWikiMsg( 'coll-noscript_text' ); |
669 | 671 | $wgOut->addHTML( '</noscript>' ); |
670 | | - $wgOut->addWikiMsg( 'coll-intro_text' ); |
| 672 | + $wgOut->addWikiMsg( 'coll-intro_text', $wgCollectionHelpPage ); |
671 | 673 | } |
672 | 674 | |
673 | 675 | private function outputArticleList() { |
— | — | @@ -982,6 +984,7 @@ |
983 | 985 | */ |
984 | 986 | static function printPortlet() { |
985 | 987 | global $wgArticle; |
| 988 | + global $wgCollectionHelpPage; |
986 | 989 | global $wgTitle; |
987 | 990 | global $wgOut; |
988 | 991 | |
— | — | @@ -1059,7 +1062,8 @@ |
1060 | 1063 | EOS |
1061 | 1064 | ; |
1062 | 1065 | $helpCollections = wfMsgHtml( 'coll-help_collections' ); |
1063 | | - $helpURL = htmlspecialchars( Title::makeTitle( NS_HELP, wfMsg( 'coll-collections' ) )->getFullURL() ); |
| 1066 | + $t = Title::newFromText( $wgCollectionHelpPage ); |
| 1067 | + $helpURL = htmlspecialchars( $t->getPrefixedUrl() ); |
1064 | 1068 | print <<<EOS |
1065 | 1069 | <li><a href="$helpURL">$helpCollections</a></li> |
1066 | 1070 | </ul> |