diff --git a/course/publish/index.php b/course/publish/index.php index 7576f9fbf29..ad7f7d76051 100644 --- a/course/publish/index.php +++ b/course/publish/index.php @@ -36,7 +36,7 @@ $shortname = format_string($COURSE->shortname); $PAGE->set_url('/course/publish/index.php', array('id' => $courseid)); $PAGE->set_pagelayout('incourse'); -$PAGE->set_title(get_string('publish') . ': ' . $COURSE->fullname); +$PAGE->set_title(get_string('publish', 'core_hub') . ': ' . $COURSE->fullname); $PAGE->set_heading($COURSE->fullname); require_capability('moodle/course:publish', context_course::instance($courseid)); diff --git a/lang/en/deprecated.txt b/lang/en/deprecated.txt index 6ab1d4a5455..979d28c15d7 100644 --- a/lang/en/deprecated.txt +++ b/lang/en/deprecated.txt @@ -116,6 +116,7 @@ prioritise,core_hub private,core_hub privatehuburl,core_hub publichub,core_hub +publish,core publishon,core_hub publishonspecifichub,core_hub registeredmoodleorg,core_hub diff --git a/lang/en/hub.php b/lang/en/hub.php index 37c88e4a3bd..08aa9586d44 100644 --- a/lang/en/hub.php +++ b/lang/en/hub.php @@ -117,6 +117,7 @@ $string['previousregistrationdeleted'] = 'The previous registration has been del $string['privacy'] = 'Privacy'; $string['privacy_help'] = 'The hub may want to display a list of registered sites. If it does then you can choose whether or not you want to appear on that list.'; $string['publicationinfo'] = 'Course publication information'; +$string['publish'] = 'Share'; $string['publishcourse'] = 'Share {$a}'; $string['publishcourseon'] = 'Share on {$a}'; $string['publishedon'] = 'Publications'; diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 115940813d3..0b4f584707f 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -1548,7 +1548,6 @@ $string['publicprofile'] = 'Public profile'; $string['publicsitefileswarning'] = 'Note: files placed here can be accessed by anyone'; $string['publicsitefileswarning2'] = 'Note: Files placed here can be accessed by anyone who knows (or can guess) the URL. For security reasons, it is recommended that any backup files are deleted immediately after restoring them.'; $string['publicsitefileswarning3'] = 'Note: Files placed here can be accessed by anyone who knows (or can guess) the URL.
For security reasons, backup files should be saved in the secure backupdata folder only.'; -$string['publish'] = 'Publish'; $string['question'] = 'Question'; $string['questionsinthequestionbank'] = 'Questions in the question bank'; $string['quotausage'] = 'You have currently used {$a->used} of your {$a->total} limit.'; @@ -2158,3 +2157,6 @@ $string['modchooserdisable'] = 'Activity chooser off'; // Deprecated since Moodle 3.3. $string['deletecomment'] = 'Delete this comment'; $string['sectionusedefaultname'] = 'Use default section name'; + +// Deprecated since Moodle 3.4. +$string['publish'] = 'Publish'; diff --git a/lib/navigationlib.php b/lib/navigationlib.php index efb92a95513..52ff46d9c1f 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -4381,7 +4381,8 @@ class settings_navigation extends navigation_node { // Publish course on a hub if ($adminoptions->publish) { $url = new moodle_url('/course/publish/index.php', array('id'=>$course->id)); - $coursenode->add(get_string('publish'), $url, self::TYPE_SETTING, null, 'publish', new pix_icon('i/publish', '')); + $coursenode->add(get_string('publish', 'core_hub'), $url, self::TYPE_SETTING, null, 'publish', + new pix_icon('i/publish', '')); } // Reset this course