diff --git a/calendar/classes/external/footer_options_exporter.php b/calendar/classes/external/footer_options_exporter.php
index cdd78c39fe4..4fab40fff70 100644
--- a/calendar/classes/external/footer_options_exporter.php
+++ b/calendar/classes/external/footer_options_exporter.php
@@ -14,17 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see .
-/**
- * Class for exporting calendar footer view options data.
- *
- * @package core_calendar
- * @copyright 2017 Simey Lameze
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- */
namespace core_calendar\external;
-defined('MOODLE_INTERNAL') || die();
-
use core\external\exporter;
use renderer_base;
use stdClass;
@@ -33,6 +24,7 @@ use moodle_url;
/**
* Class for exporting calendar footer view options data.
*
+ * @package core_calendar
* @copyright 2017 Simey Lameze
* @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->calendar->courseid !== SITEID) {
- $linkname = get_string('coursecalendar', 'calendar', 'Course');
+ $linkname = get_string('coursecalendarlink', 'calendar');
} else {
$linkname = get_string('fullcalendar', 'calendar');
}
diff --git a/lang/en/calendar.php b/lang/en/calendar.php
index ebff78538aa..5846cd1254d 100644
--- a/lang/en/calendar.php
+++ b/lang/en/calendar.php
@@ -48,10 +48,10 @@ $string['confirmsubscriptiondelete'] = 'Are you sure you want to delete the "{$a
$string['copycalendarurl'] = 'Copy calendar URL';
$string['copyurl'] = 'Copy URL';
$string['course'] = 'Course';
+$string['coursecalendarlink'] = 'Course calendar';
$string['courseevent'] = 'Course event';
$string['courseevents'] = 'Course events';
$string['categoryevents'] = 'Category events';
-$string['coursecalendar'] = '{$a} calendar';
$string['courses'] = 'Courses';
$string['customexport'] = 'Custom range ({$a->timestart} - {$a->timeend})';
$string['daily'] = 'Daily';
@@ -284,3 +284,6 @@ $string['whendate'] = 'When: {$a}';
$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['yoursubscriptions'] = 'Imported calendars';
+
+// Deprecated since Moodle 4.4.
+$string['coursecalendar'] = '{$a} calendar';
diff --git a/lang/en/deprecated.txt b/lang/en/deprecated.txt
index 7a186215d14..6c5809b817e 100644
--- a/lang/en/deprecated.txt
+++ b/lang/en/deprecated.txt
@@ -127,3 +127,4 @@ aria:dropdowngrades,core_grades
viewresults,core
coursesearch,core
coursesearch_help,core
+coursecalendar,core_calendar