From 2223261586a8d17ea3d479d637c469684326f53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 9 Jun 2020 22:16:00 +0200 Subject: [PATCH] MDL-68999 moodlenet: Make the default instance name translatable Admins can change the value as they want / need. Still, it will be nice if the default value (the name of the default MoodleNet instance) is controlled by the language pack. Beside that, it will allow us to more easily change the value should we need it in the future (via the en_fix process). --- admin/tool/moodlenet/lang/en/tool_moodlenet.php | 1 + admin/tool/moodlenet/settings.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/tool/moodlenet/lang/en/tool_moodlenet.php b/admin/tool/moodlenet/lang/en/tool_moodlenet.php index d6f6ac17cde..166d43bdfc1 100644 --- a/admin/tool/moodlenet/lang/en/tool_moodlenet.php +++ b/admin/tool/moodlenet/lang/en/tool_moodlenet.php @@ -34,6 +34,7 @@ $string['connectandbrowse'] = "Connect to and browse:"; $string['defaultmoodlenet'] = "Default MoodleNet URL"; $string['defaultmoodlenet_desc'] = "The URL to either Moodle HQ's MoodleNet instance, or your preferred instance."; $string['defaultmoodlenetname'] = "MoodleNet instance name"; +$string['defaultmoodlenetnamevalue'] = 'MoodleNet Home'; $string['defaultmoodlenetname_desc'] = 'The name of either Moodle HQ\'s MoodleNet instance or your preferred MoodleNet instance to browse on.'; $string['enablemoodlenet'] = 'Enable MoodleNet integration'; $string['enablemoodlenet_desc'] = 'Enabling the integration allows users with the capability to create and manage activities to diff --git a/admin/tool/moodlenet/settings.php b/admin/tool/moodlenet/settings.php index 4b6fb4f4d31..ec1cc55ec2f 100644 --- a/admin/tool/moodlenet/settings.php +++ b/admin/tool/moodlenet/settings.php @@ -37,7 +37,7 @@ if ($hassiteconfig) { $temp = new admin_setting_configtext('tool_moodlenet/defaultmoodlenetname', get_string('defaultmoodlenetname', 'tool_moodlenet'), new lang_string('defaultmoodlenetname_desc', 'tool_moodlenet'), - 'Moodle HQ MoodleNet'); + new lang_string('defaultmoodlenetnamevalue', 'tool_moodlenet')); $settings->add($temp); $temp = new admin_setting_configtext('tool_moodlenet/defaultmoodlenet', get_string('defaultmoodlenet', 'tool_moodlenet'),