Skip to content

Commit

Permalink
MDL-75316 core_moodlenet: Rename settings
Browse files Browse the repository at this point in the history
Originally implemented as MDL-75319
  • Loading branch information
HuongNV13 authored and mickhawkins committed Apr 18, 2023
1 parent 7727745 commit cd097f1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/settings/development.php
Expand Up @@ -36,7 +36,7 @@
// Sharing to MoodleNet setting.
$temp->add(new admin_setting_configcheckbox('enablesharingtomoodlenet',
new lang_string('enablesharingtomoodlenet', 'core_admin'),
'', 0));
new lang_string('enablesharingtomoodlenet_desc', 'core_admin'), 0));

$ADMIN->add('experimental', $temp);

Expand Down
2 changes: 1 addition & 1 deletion admin/tests/behat/moodlenet_outbound.feature
Expand Up @@ -23,7 +23,7 @@ Feature: MoodleNet outbound configuration
Then I should see "MoodleNet outbound settings"
And I click on "MoodleNet outbound settings" "link"
And the field "OAuth 2 service" matches value "None"
And I should see "Select the OAuth 2 service that is configured to talk to the MoodleNet server. If the service doesn't exist yet, you will need to create it."
And I should see "Select a MoodleNet OAuth 2 service to enable sharing to that MoodleNet site. If the service doesn't exist yet, you will need to create it."
And I click on "create" "link"
And I should see "OAuth 2 services"

Expand Down
2 changes: 1 addition & 1 deletion admin/tool/moodlenet/lang/en/tool_moodlenet.php
Expand Up @@ -38,7 +38,7 @@
$string['defaultmoodlenetname'] = "MoodleNet instance name";
$string['defaultmoodlenetnamevalue'] = 'MoodleNet Central';
$string['defaultmoodlenetname_desc'] = 'The name of the MoodleNet instance available via the activity chooser.';
$string['enablemoodlenet'] = 'Enable MoodleNet integration';
$string['enablemoodlenet'] = 'Enable MoodleNet integration (inbound)';
$string['enablemoodlenet_desc'] = 'If enabled, a user with the capability to create and manage activities can browse MoodleNet via the activity chooser and import MoodleNet resources into their course. In addition, a user with the capability to restore backups can select a backup file on MoodleNet and restore it into Moodle.';
$string['errorduringdownload'] = 'An error occurred while downloading the file: {$a}';
$string['forminfo'] = 'Your MoodleNet profile ID will be automatically saved in your profile on this site.';
Expand Down
3 changes: 2 additions & 1 deletion lang/en/admin.php
Expand Up @@ -607,7 +607,8 @@
$string['enablerecordcache'] = 'Enable record cache';
$string['enablerssfeeds'] = 'Enable RSS feeds';
$string['enablesearchareas'] = 'Enable search areas';
$string['enablesharingtomoodlenet'] = 'Enable sharing to MoodleNet';
$string['enablesharingtomoodlenet'] = 'Enable sharing to MoodleNet (outbound)';
$string['enablesharingtomoodlenet_desc'] = 'Enable users to share course content to a configured MoodleNet instance if they have the relevant capability.';
$string['enablestats'] = 'Enable statistics';
$string['enabletrusttext'] = 'Enable trusted content';
$string['enableuserfeedback'] = 'Enable feedback about this software';
Expand Down
2 changes: 1 addition & 1 deletion lang/en/moodle.php
Expand Up @@ -1365,7 +1365,7 @@
$string['moodleversion'] = 'Moodle version';
$string['moodlerelease'] = 'Moodle release';
$string['moodleservicesandsupport'] = 'Services and support';
$string['moodlenet:configoauthservice'] = 'Select the OAuth 2 service that is configured to talk to the MoodleNet server. If the service doesn\'t exist yet, you will need to <a href="{$a}">create</a> it.';
$string['moodlenet:configoauthservice'] = 'Select a MoodleNet OAuth 2 service to enable sharing to that MoodleNet site. If the service doesn\'t exist yet, you will need to <a href="{$a}">create</a> it.';
$string['moodlenet:outboundsettings'] = 'MoodleNet outbound settings';
$string['more'] = 'more';
$string['morehelp'] = 'More help';
Expand Down

0 comments on commit cd097f1

Please sign in to comment.