This commit is contained in:
Ilya Tregubov 2024-04-05 11:37:11 +08:00
commit 313479e29f
3 changed files with 7 additions and 11 deletions

View File

@ -14,17 +14,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Class for exporting calendar footer view options data.
*
* @package core_calendar
* @copyright 2017 Simey Lameze <simey@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core_calendar\external; namespace core_calendar\external;
defined('MOODLE_INTERNAL') || die();
use core\external\exporter; use core\external\exporter;
use renderer_base; use renderer_base;
use stdClass; use stdClass;
@ -33,6 +24,7 @@ use moodle_url;
/** /**
* Class for exporting calendar footer view options data. * Class for exporting calendar footer view options data.
* *
* @package core_calendar
* @copyright 2017 Simey Lameze * @copyright 2017 Simey Lameze
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
@ -102,7 +94,7 @@ class footer_options_exporter extends exporter {
if ($this->showfullcalendarlink) { if ($this->showfullcalendarlink) {
if ($this->calendar->courseid !== SITEID) { if ($this->calendar->courseid !== SITEID) {
$linkname = get_string('coursecalendar', 'calendar', 'Course'); $linkname = get_string('coursecalendarlink', 'calendar');
} else { } else {
$linkname = get_string('fullcalendar', 'calendar'); $linkname = get_string('fullcalendar', 'calendar');
} }

View File

@ -48,10 +48,10 @@ $string['confirmsubscriptiondelete'] = 'Are you sure you want to delete the "{$a
$string['copycalendarurl'] = 'Copy calendar URL'; $string['copycalendarurl'] = 'Copy calendar URL';
$string['copyurl'] = 'Copy URL'; $string['copyurl'] = 'Copy URL';
$string['course'] = 'Course'; $string['course'] = 'Course';
$string['coursecalendarlink'] = 'Course calendar';
$string['courseevent'] = 'Course event'; $string['courseevent'] = 'Course event';
$string['courseevents'] = 'Course events'; $string['courseevents'] = 'Course events';
$string['categoryevents'] = 'Category events'; $string['categoryevents'] = 'Category events';
$string['coursecalendar'] = '{$a} calendar';
$string['courses'] = 'Courses'; $string['courses'] = 'Courses';
$string['customexport'] = 'Custom range ({$a->timestart} - {$a->timeend})'; $string['customexport'] = 'Custom range ({$a->timestart} - {$a->timeend})';
$string['daily'] = 'Daily'; $string['daily'] = 'Daily';
@ -284,3 +284,6 @@ $string['whendate'] = 'When: {$a}';
$string['yesterday'] = 'Yesterday'; $string['yesterday'] = 'Yesterday';
$string['youcandeleteallrepeats'] = 'This event is part of a repeating event series. You can delete this event only, or all {$a} events in the series at once.'; $string['youcandeleteallrepeats'] = 'This event is part of a repeating event series. You can delete this event only, or all {$a} events in the series at once.';
$string['yoursubscriptions'] = 'Imported calendars'; $string['yoursubscriptions'] = 'Imported calendars';
// Deprecated since Moodle 4.4.
$string['coursecalendar'] = '{$a} calendar';

View File

@ -127,3 +127,4 @@ aria:dropdowngrades,core_grades
viewresults,core viewresults,core
coursesearch,core coursesearch,core
coursesearch_help,core coursesearch_help,core
coursecalendar,core_calendar