From a4ca899bd0ba6e606fa16c3edb0d0edd3699894b Mon Sep 17 00:00:00 2001 From: Tobias Reischmann <tobias.reischmann@wi.uni-muenster.de> Date: Mon, 2 Sep 2019 16:37:50 +0200 Subject: [PATCH] Rename manage courses link --- lang/de/tool_lifecycle.php | 1 + lang/en/tool_lifecycle.php | 1 + lib.php | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lang/de/tool_lifecycle.php b/lang/de/tool_lifecycle.php index 5aac9ee..3e01edb 100644 --- a/lang/de/tool_lifecycle.php +++ b/lang/de/tool_lifecycle.php @@ -27,6 +27,7 @@ $string['pluginname'] = 'Kurs-Lebenszyklus'; $string['plugintitle'] = 'Kurs-Lebenszyklus'; $string['lifecycle:managecourses'] = 'Darf Kurse in tool_lifecycle verwalten.'; +$string['managecourses_link'] = 'Kurse verwalten'; $string['general_config_header'] = "Allgemein & Subplugins"; $string['config_delay_duration'] = 'Standardlänge eines Kursausschlusses'; diff --git a/lang/en/tool_lifecycle.php b/lang/en/tool_lifecycle.php index d5a778c..123f744 100644 --- a/lang/en/tool_lifecycle.php +++ b/lang/en/tool_lifecycle.php @@ -27,6 +27,7 @@ $string['pluginname'] = 'Life Cycle'; $string['plugintitle'] = 'Course Life Cycle'; $string['lifecycle:managecourses'] = 'May manage courses in tool_lifecycle'; +$string['managecourses_link'] = 'Manage courses'; $string['general_config_header'] = "General & Subplugins"; $string['config_delay_duration'] = 'Default duration of a course delay'; diff --git a/lib.php b/lib.php index 83732e5..4a38e8f 100644 --- a/lib.php +++ b/lib.php @@ -50,15 +50,15 @@ function tool_lifecycle_extend_navigation_course($navigation, $course, $context) )); // Add the course life cycle link. - $pluginname = get_string('plugintitle', 'tool_lifecycle'); + $linktext = get_string('managecourses_link', 'tool_lifecycle'); $node = navigation_node::create( - $pluginname, + $linktext, $url, navigation_node::NODETYPE_LEAF, '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)) { -- GitLab