Revision: 47932 Author: jojo Date: 2009-03-02 15:43:51 +0000 (Mon, 02 Mar 2009)
Log Message: ----------- added system message coll-license_url with highest prio to be used for license info that can be overridden for each wiki 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-03-02 14:27:25 UTC (rev 47931) +++ trunk/extensions/Collection/Collection.body.php 2009-03-02 15:43:51 UTC (rev 47932) @@ -637,11 +637,19 @@ global $wgRightsPage; global $wgRightsText; global $wgRightsUrl; + + wfLoadExtensionMessages( 'Collection' ); $licenseInfo = array( "type" => "license", ); + $from_msg = wfMsgForContent( 'coll-license_url' ); + if ( $from_msg && $from_msg != '-' ) { + $licenseInfo['mw_license_url'] = $from_msg; + return array( $licenseInfo ); + } + if ( $wgLicenseName ) { $licenseInfo['name'] = $wgLicenseName; } else { Modified: trunk/extensions/Collection/Collection.i18n.php =================================================================== --- trunk/extensions/Collection/Collection.i18n.php 2009-03-02 14:27:25 UTC (rev 47931) +++ trunk/extensions/Collection/Collection.i18n.php 2009-03-02 15:43:51 UTC (rev 47932) @@ -135,6 +135,7 @@ 'coll-invalid_podpartner_msg' => 'The supplied POD partner is invalid. Please contact your MediaWiki administrator.', 'coll-license' => 'License', + 'coll-license_url' => '-', 'coll-return_to' => "Return to [[:$1]]", ); @@ -151,6 +152,7 @@ */ $messages['qqq'] = array( 'coll-desc' => 'Short description of this extension, shown in [[Special:Version]]. Do not translate or change links.', + 'coll-license_url' => 'Do not translate or delete: This system message is there to be overridden with a URL to a custom license article', 'coll-collection' => '{{Identical|Book}}', 'coll-collections' => '{{Identical|Book}}', 'coll-exclusion_category_title' => 'The message text is the name of a category.', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs