Hello,
In order to add a custom license type for Extension:UploadWizard, I've added the following configuration settings in LocalSettings.php:
wfLoadExtension( 'UploadWizard' );
// Needed to make UploadWizard work in IE, see https://phabricator.wikimedia.org/T41877
$wgApiFrameOptions = 'SAMEORIGIN';
//$wgUploadNavigationUrl = '/index.php/Special:UploadWizard';
$wgUseInstantCommons = true;
$wgExtensionFunctions[] = function() {
$GLOBALS['wgUploadNavigationUrl'] = SpecialPage::getTitleFor( 'UploadWizard' )->getLocalURL();
return true;
};
$wgUploadWizardConfig = array(
'debug' => false,
'altUploadForm' => 'Special:Upload',
'fallbackToAltUploadForm' => false,
'enableFormData' => true,
'enableMultipleFiles' => true,
'enableMultiFileSelect' => true,
'uwLanguages' => array(
'ru' => 'Русский',
'bg' => 'Български',
'en' => 'English'
),
'uwLanguages' => empty( $uwLanguages ) ? [ 'bg' => 'Български' ] : $uwLanguages,
'tutorial' => array( 'skip' => false ),
'maxUploads' => 15,
'fileExtensions' => $wgFileExtensions,
'licenses' => array(
'cc-by-nc-sa-4.0' => [
'msg' => 'mwe-upwiz-license-cc-by-nc-sa-4.0',
'icons' => [ 'cc-by', 'cc-nc', 'cc-sa' ],
'url' => '//creativecommons.org/licenses/by-nc-sa/4.0/',
'languageCodePrefix' => 'deed.'
],
),
'licensing' => array(
'defaultType' => 'ownwork',
'ownWorkDefault' => 'choice',
'ownWork' => array(
'type' => 'or',
'template' => 'self',
'defaults' => 'cc-by-nc-sa-4.0',
'licenses' => array(
'cc-by-nc-sa-4.0',
'cc-by-sa-4.0',
'cc-by-sa-3.0',
'cc-by-4.0',
'cc-by-3.0',
'cc-zero'
)
),
),
);
Everything works except the custom messages for the new license type, as you can see on this screenshot. I've created:
MediaWiki:Mwe-upwiz-license-cc-by-nc-sa-4.0MediaWiki:Mwe-upwiz-source-ownwork-assert-cc-by-nc-sa-4.0MediaWiki:Mwe-upwiz-source-ownwork-cc-by-nc-sa-4.0-explain
But Extension:UploadWizard doesn't accept them until they are not registered in $IP/extensions/UploadWizard/extension.json
, under the messages
section. The same issue is described and illustrated here. So my question is:
Is there any elegant way to append (register) my messages to the UploadWizard's messages list without modify its
extension.json
file?