Index: trunk/extensions/Collection/Collection.i18n.php |
— | — | @@ -135,6 +135,7 @@ |
136 | 136 | 'coll-invalid_podpartner_msg' => 'The supplied POD partner is invalid. |
137 | 137 | Please contact your MediaWiki administrator.', |
138 | 138 | 'coll-license' => 'License', |
| 139 | + 'coll-license_url' => '-', |
139 | 140 | 'coll-return_to' => "Return to [[:$1]]", |
140 | 141 | ); |
141 | 142 | |
— | — | @@ -151,6 +152,7 @@ |
152 | 153 | */ |
153 | 154 | $messages['qqq'] = array( |
154 | 155 | 'coll-desc' => 'Short description of this extension, shown in [[Special:Version]]. Do not translate or change links.', |
| 156 | + 'coll-license_url' => 'Do not translate or delete: This system message is there to be overridden with a URL to a custom license article', |
155 | 157 | 'coll-collection' => '{{Identical|Book}}', |
156 | 158 | 'coll-collections' => '{{Identical|Book}}', |
157 | 159 | 'coll-exclusion_category_title' => 'The message text is the name of a category.', |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -637,11 +637,19 @@ |
638 | 638 | global $wgRightsPage; |
639 | 639 | global $wgRightsText; |
640 | 640 | global $wgRightsUrl; |
| 641 | + |
| 642 | + wfLoadExtensionMessages( 'Collection' ); |
641 | 643 | |
642 | 644 | $licenseInfo = array( |
643 | 645 | "type" => "license", |
644 | 646 | ); |
645 | 647 | |
| 648 | + $from_msg = wfMsgForContent( 'coll-license_url' ); |
| 649 | + if ( $from_msg && $from_msg != '-' ) { |
| 650 | + $licenseInfo['mw_license_url'] = $from_msg; |
| 651 | + return array( $licenseInfo ); |
| 652 | + } |
| 653 | + |
646 | 654 | if ( $wgLicenseName ) { |
647 | 655 | $licenseInfo['name'] = $wgLicenseName; |
648 | 656 | } else { |