https://bugzilla.wikimedia.org/show_bug.cgi?id=44682
Web browser: ---
Bug ID: 44682
Summary: Add Custom license in the pre-defined license list
Product: MediaWiki extensions
Version: REL1_20 branch
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: WikiEditor
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
I wanted to allow users to upload copyrighted content on a private wiki.
Unfortunately there is no license for "copyrighted" content, so I tried to
create my own entry in the available license list. This seems to be not
feasible.
The first problem is that you can not really edit the default configuration of
the WikiEditor. You can only create your own configuration hash table which
will be merged with the default configuration hash (PHP array_merge function).
If this approache works for scalar hash values, this does not work at all for
complex ones (and the configuration hash has plenty of them). I think there,
that the default configuration should be global and already declared as
$wgUploadWizardConfig. It would be easy afterward to customise it.
The second problem seems to be with the string translation. You can't create
easily your own license description (in the "licenses" hash) without having to
declare somewhere translated strings.
One solution for my own use case would be to patch the default WikiEditor
configuration file and add an entry for the copyrighted content... But, I guess
there are other people who want to introduce their own custom license.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l