Skip to content

Commit

Permalink
MDL-68999 moodlenet: Make the default instance name translatable
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mudrd8mz committed Jun 9, 2020
1 parent 71a34a0 commit 2223261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/tool/moodlenet/lang/en/tool_moodlenet.php
Expand Up @@ -34,6 +34,7 @@
$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
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/moodlenet/settings.php
Expand Up @@ -37,7 +37,7 @@

$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'),
Expand Down

0 comments on commit 2223261

Please sign in to comment.