Revision: 46331
Author: jojo
Date: 2009-01-27 11:17:23 +0000 (Tue, 27 Jan 2009)
Log Message:
-----------
use a new system message for books category to allow customization
Modified Paths:
--------------
trunk/extensions/Collection/Collection.body.php
trunk/extensions/Collection/Collection.i18n.php
Modified: trunk/extensions/Collection/Collection.body.php
===================================================================
--- trunk/extensions/Collection/Collection.body.php 2009-01-27 09:52:09 UTC
(rev 46330)
+++ trunk/extensions/Collection/Collection.body.php 2009-01-27 11:17:23 UTC
(rev 46331)
@@ -618,7 +618,7 @@
//$articleText .= $item['revision'] . "/" .
$item['latest']."\n";
}
}
- $catTitle = Title::makeTitle( NS_CATEGORY, wfMsgForContent(
'coll-collections' ) );
+ $catTitle = Title::makeTitle( NS_CATEGORY, wfMsgForContent(
'coll-bookscategory' ) );
if ( !is_null( $catTitle ) ) {
$articleText .= "\n[[" . $catTitle->getPrefixedText() . "|" .
wfEscapeWikiText( $title->getSubpageText() ) . "]]\n";
}
@@ -943,7 +943,7 @@
}
$categoryFinder = new Categoryfinder();
- $categoryFinder->seed( array( $article->getID() ), array(
wfMsgForContent( 'coll-collections' ) ) );
+ $categoryFinder->seed( array( $article->getID() ), array(
wfMsgForContent( 'coll-bookscategory' ) ) );
$articles = $categoryFinder->run();
if ( in_array( $article->getID(), $articles ) ) {
return true;
Modified: trunk/extensions/Collection/Collection.i18n.php
===================================================================
--- trunk/extensions/Collection/Collection.i18n.php 2009-01-27 09:52:09 UTC
(rev 46330)
+++ trunk/extensions/Collection/Collection.i18n.php 2009-01-27 11:17:23 UTC
(rev 46331)
@@ -47,6 +47,7 @@
This page will not work correctly, unless JavaScript is enabled.</strong>',
'coll-intro_text' => "Create and manage your individual
selection of wiki pages.<br />See [[{{MediaWiki:Coll-helppage}}]] for more
information.",
'coll-helppage' => 'Help:Books',
+ 'coll-bookscategory' => 'Books',
'coll-your_book' => 'Your book',
'coll-download_title' => 'Download',
'coll-download_text' => 'To download an offline version
choose a format and click the button.',
@@ -85,7 +86,7 @@
'coll-personal_collection_label' => 'Personal book:',
'coll-community_collection_label' => 'Community book:',
'coll-save_collection' => 'Save book',
- 'coll-save_category' => 'Books are saved in the category
[[:Category:{{MediaWiki:Coll-collections}}|{{MediaWiki:Coll-collections}}]].',
+ 'coll-save_category' => 'Books are saved in the category
[[:Category:{{MediaWiki:Coll-bookscategory}}|{{MediaWiki:Coll-bookscategory}}]].',
'coll-overwrite_title' => 'Page exists.
Overwrite?',
'coll-overwrite_text' => 'A page with the name [[:$1]]
already exists.
@@ -962,6 +963,7 @@
Diese Seite wird nicht richtig funktionieren, solange JavaScript nicht
verfügbar ist.</strong>',
'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.',
'coll-helppage' => 'Help:Bücher',
+ 'coll-bookscategory' => 'Bücher',
'coll-your_book' => 'Dein Buch',
'coll-download_title' => 'Herunterladen',
'coll-download_text' => 'Um eine offline-Version herunterzuladen, wähle
ein Format und klicke auf die Schaltfläche.',
@@ -999,7 +1001,7 @@
'coll-personal_collection_label' => 'Persönliches Buch:',
'coll-community_collection_label' => 'Community-Buch:',
'coll-save_collection' => 'Buch speichern',
- 'coll-save_category' => 'Bücher werden in der Kategorie
[[:Category:{{MediaWiki:Coll-collections}}|{{MediaWiki:Coll-collections}}]]
gespeichert.',
+ 'coll-save_category' => 'Bücher werden in der Kategorie
[[:Category:{{MediaWiki:Coll-bookscategory}}|{{MediaWiki:Coll-bookscategory}}]]
gespeichert.',
'coll-overwrite_title' => 'Seite vorhanden, überschreiben?',
'coll-overwrite_text' => 'Eine Seite mit dem Namen [[:$1]] ist bereits
vorhanden. Möchtest du sie durch dein Buch ersetzen?',
'coll-yes' => 'Ja',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs