MDL-79548 core: Update MoodleNet modal strings so they can be translated
Previously, the type of share (course/activity) was being injected into the string, but not from a translation, so did not fully translate. The MoodleNet type (resource) was working, but has also been replaced here to avoid inserting one string into another (this was also unnecessary while resource is the only possible option). This also meant the latter string could be deprecated.
This commit is contained in:
@@ -4650,7 +4650,6 @@ class settings_navigation extends navigation_node {
|
||||
$action = new action_link(new moodle_url(''), '', null, [
|
||||
'data-action' => 'sendtomoodlenet',
|
||||
'data-type' => 'course',
|
||||
'data-sharetype' => 'resource',
|
||||
]);
|
||||
// Share course to MoodleNet link.
|
||||
$coursenode->add(get_string('moodlenet:sharetomoodlenet', 'moodle'),
|
||||
@@ -4942,7 +4941,6 @@ class settings_navigation extends navigation_node {
|
||||
$action = new action_link(new moodle_url(''), '', null, [
|
||||
'data-action' => 'sendtomoodlenet',
|
||||
'data-type' => 'activity',
|
||||
'data-sharetype' => 'resource',
|
||||
]);
|
||||
$modulenode->add(get_string('moodlenet:sharetomoodlenet', 'moodle'),
|
||||
$action, self::TYPE_SETTING, null, 'exportmoodlenet')->set_force_into_more_menu(true);
|
||||
|
||||
Reference in New Issue
Block a user