r46599 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46598‎ | r46599 | r46600 >
Date:16:30, 30 January 2009
Author:jojo
Status:deferred
Tags:
Comment:
insert a template on pages of saved books. template name customizable via system message coll-savedbook_template.
Modified paths:
  • /trunk/extensions/Collection/Collection.body.php (modified) (history)
  • /trunk/extensions/Collection/Collection.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.i18n.php
@@ -48,6 +48,7 @@
4949 'coll-intro_text' => "Create and manage your individual selection of wiki pages.<br />See [[{{MediaWiki:Coll-helppage}}]] for more information.",
5050 'coll-helppage' => 'Help:Books',
5151 'coll-bookscategory' => 'Books',
 52+ 'coll-savedbook_template' => 'saved_book',
5253 'coll-your_book' => 'Your book',
5354 'coll-download_title' => 'Download',
5455 'coll-download_text' => 'To download an offline version choose a format and click the button.',
@@ -970,6 +971,7 @@
971972 'coll-intro_text' => 'Erstelle und verwalte deine individuelle Sammlung von Seiten.<br />Siehe die [[{{MediaWiki:Coll-helppage}}|Hilfe zu Büchern]] für weitere Informationen.',
972973 'coll-helppage' => 'Help:Bücher',
973974 'coll-bookscategory' => 'Bücher',
 975+ 'coll-savedbook_template' => 'gespeichertes_buch',
974976 'coll-your_book' => 'Dein Buch',
975977 'coll-download_title' => 'Herunterladen',
976978 'coll-download_text' => 'Um eine Offline-Version herunterzuladen, wähle ein Format und klicke auf die Schaltfläche.',
Index: trunk/extensions/Collection/Collection.body.php
@@ -585,7 +585,7 @@
586586 if ( $article->exists() && !$forceOverwrite ) {
587587 return false;
588588 }
589 - $articleText = '';
 589+ $articleText = "{{" . wfMsgForContent( 'coll-savedbook_template' ) . "}}\n\n";
590590 $collection = $_SESSION['wsCollection'];
591591 if( $collection['title'] ) {
592592 $articleText .= '== ' . $collection['title'] . " ==\n";

Status & tagging log