Skip to content
Snippets Groups Projects
Unverified Commit a4ca899b authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Rename manage courses link

parent f5fe6579
Branches
Tags
No related merge requests found
...@@ -27,6 +27,7 @@ $string['pluginname'] = 'Kurs-Lebenszyklus'; ...@@ -27,6 +27,7 @@ $string['pluginname'] = 'Kurs-Lebenszyklus';
$string['plugintitle'] = 'Kurs-Lebenszyklus'; $string['plugintitle'] = 'Kurs-Lebenszyklus';
$string['lifecycle:managecourses'] = 'Darf Kurse in tool_lifecycle verwalten.'; $string['lifecycle:managecourses'] = 'Darf Kurse in tool_lifecycle verwalten.';
$string['managecourses_link'] = 'Kurse verwalten';
$string['general_config_header'] = "Allgemein & Subplugins"; $string['general_config_header'] = "Allgemein & Subplugins";
$string['config_delay_duration'] = 'Standardlänge eines Kursausschlusses'; $string['config_delay_duration'] = 'Standardlänge eines Kursausschlusses';
......
...@@ -27,6 +27,7 @@ $string['pluginname'] = 'Life Cycle'; ...@@ -27,6 +27,7 @@ $string['pluginname'] = 'Life Cycle';
$string['plugintitle'] = 'Course Life Cycle'; $string['plugintitle'] = 'Course Life Cycle';
$string['lifecycle:managecourses'] = 'May manage courses in tool_lifecycle'; $string['lifecycle:managecourses'] = 'May manage courses in tool_lifecycle';
$string['managecourses_link'] = 'Manage courses';
$string['general_config_header'] = "General & Subplugins"; $string['general_config_header'] = "General & Subplugins";
$string['config_delay_duration'] = 'Default duration of a course delay'; $string['config_delay_duration'] = 'Default duration of a course delay';
......
...@@ -50,15 +50,15 @@ function tool_lifecycle_extend_navigation_course($navigation, $course, $context) ...@@ -50,15 +50,15 @@ function tool_lifecycle_extend_navigation_course($navigation, $course, $context)
)); ));
// Add the course life cycle link. // Add the course life cycle link.
$pluginname = get_string('plugintitle', 'tool_lifecycle'); $linktext = get_string('managecourses_link', 'tool_lifecycle');
$node = navigation_node::create( $node = navigation_node::create(
$pluginname, $linktext,
$url, $url,
navigation_node::NODETYPE_LEAF, navigation_node::NODETYPE_LEAF,
'tool_lifecycle', 'tool_lifecycle',
'tool_lifecycle', 'tool_lifecycle',
new pix_icon('icon', $pluginname, 'tool_lifecycle') new pix_icon('icon', $linktext, 'tool_lifecycle')
); );
if ($PAGE->url->compare($url, URL_MATCH_BASE)) { if ($PAGE->url->compare($url, URL_MATCH_BASE)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment