mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
4399e4759a
This feature adds an admin tool for creating custom licenses. Now custom licenses can be added and amended in Moodle, and the site default can be set to a custom license. Core licenses remain hard-coded and are uneditable, so they will always require update within Moodle core updates, and maintain their internationalisation through core language strings. This also includes fundamental changes to the license API including the addition of license caching and deprecation of no longer required admin settings for license management.
41 lines
1.8 KiB
PHP
41 lines
1.8 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Strings for component 'license', language 'en', branch 'MOODLE_20_STABLE'
|
|
*
|
|
* @package core
|
|
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
// Core licenses.
|
|
$string['allrightsreserved'] = 'All rights reserved';
|
|
$string['cc'] = 'Creative Commons';
|
|
$string['cc-nc'] = 'Creative Commons - No Commercial';
|
|
$string['cc-nc-nd'] = 'Creative Commons - No Commercial NoDerivs';
|
|
$string['cc-nc-sa'] = 'Creative Commons - No Commercial ShareAlike';
|
|
$string['cc-nd'] = 'Creative Commons - NoDerivs';
|
|
$string['cc-sa'] = 'Creative Commons - ShareAlike';
|
|
$string['public'] = 'Public domain';
|
|
$string['unknown'] = 'Licence not specified';
|
|
|
|
// Error messages.
|
|
$string['cannotdeletecore'] = 'Cannot delete a standard licence';
|
|
$string['cannotdeletelicenseinuse'] = 'Cannot delete a licence which is currently assigned to one or more files';
|
|
$string['licensenotfoundshortname'] = 'Cannot find a licence with the short name \'{$a}\'';
|
|
$string['missinglicensesortorder'] = 'Cannot set licence order, one or more installed licences is missing from new order';
|