Main docs are at https://www.mediawiki.org/wiki/Manual:$wgRightsUrl

I assume you're talking of https://help.libreoffice.org/Main_Page and friends, a tricky situation indeed. :) Given https://help.libreoffice.org/api.php?action=query&siprop=rightsinfo&meta=siteinfo and https://help.libreoffice.org/MediaWiki:Copyright it seems you are successfully passing your custom copyright text to the message, but you are lacking a copyright URL and a copyright icon (unless it was an intentional skin modification?). So you have a couple things to do.

1) You should complete the machine-readable setup of your licensing, otherwise your content is not really usable. Something like this:

$wgRightsUrl = 'https://www.gnu.org/licenses/lgpl-3.0.html';
$wgRightsIcon = 'https://licensebuttons.net/l/LGPL/2.1/88x62.png';
# Or FSF or local: $wgRightsIcon = 'https://www.gnu.org/graphics/lgplv3-88x31.png';

2) Do something about the lego mixup which also generates mixed-language messages such as «Il contenuto è disponibile in base alla licenza the GNU Lesser General Public License (LGPLv3), unless otherwise specified, [...], se non diversamente specificato». (Which is expected per https://www.mediawiki.org/wiki/Manual:$wgRightsText .)

2a) Just circumvent the "copyright" message entirely and use your own, maybe even with an English hardcoded text (and the same for the message in action=edit), with a mechanism similar to

$wgHooks['MessageCache::get'][] = 'onMessageCacheGet';
# blabla (https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikimediaMessages/17c9434c5615808153b6aa3f06c7cd732e2c58ae/WikimediaMessages.hooks.php )

2b) Or, leave $wgRightsText as is but don't really use it beyond the API. Edit https://help.libreoffice.org/MediaWiki:Copyright and friends to contain only the text you want in the footer, without "$1", and do so for all desired languages. MediaWiki:Copyright is one of the few messages which still allows raw HTML (https://phabricator.wikimedia.org/T45646 ) so watch what your sysops put there. :)

Nemo

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to