r47932 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47931‎ | r47932 | r47933 >
Date:15:43, 2 March 2009
Author:jojo
Status:ok
Tags:
Comment:
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 (modified) (history)
  • /trunk/extensions/Collection/Collection.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.i18n.php
@@ -135,6 +135,7 @@
136136 'coll-invalid_podpartner_msg' => 'The supplied POD partner is invalid.
137137 Please contact your MediaWiki administrator.',
138138 'coll-license' => 'License',
 139+ 'coll-license_url' => '-',
139140 'coll-return_to' => "Return to [[:$1]]",
140141 );
141142
@@ -151,6 +152,7 @@
152153 */
153154 $messages['qqq'] = array(
154155 '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',
155157 'coll-collection' => '{{Identical|Book}}',
156158 'coll-collections' => '{{Identical|Book}}',
157159 'coll-exclusion_category_title' => 'The message text is the name of a category.',
Index: trunk/extensions/Collection/Collection.body.php
@@ -637,11 +637,19 @@
638638 global $wgRightsPage;
639639 global $wgRightsText;
640640 global $wgRightsUrl;
 641+
 642+ wfLoadExtensionMessages( 'Collection' );
641643
642644 $licenseInfo = array(
643645 "type" => "license",
644646 );
645647
 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+
646654 if ( $wgLicenseName ) {
647655 $licenseInfo['name'] = $wgLicenseName;
648656 } else {

Follow-up revisions

RevisionCommit summaryAuthorDate
r47934Follow up r47932: Message to be ignored for Translatewikiraymond15:48, 2 March 2009

Status & tagging log