From a7229e4ad92bd59fdfe4844959985dbbadf5cb03 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Mon, 25 Jan 2021 12:20:29 +0100 Subject: [PATCH] MDL-70689 oauth2: deprecate unused strings --- admin/tool/oauth2/lang/en/deprecated.txt | 5 +++++ admin/tool/oauth2/lang/en/tool_oauth2.php | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 admin/tool/oauth2/lang/en/deprecated.txt diff --git a/admin/tool/oauth2/lang/en/deprecated.txt b/admin/tool/oauth2/lang/en/deprecated.txt new file mode 100644 index 00000000000..58a843c552e --- /dev/null +++ b/admin/tool/oauth2/lang/en/deprecated.txt @@ -0,0 +1,5 @@ +createnewfacebookissuer,tool_oauth2 +createnewgoogleissuer,tool_oauth2 +createnewissuer,tool_oauth2 +createnewmicrosoftissuer,tool_oauth2 +createnewnextcloudissuer,tool_oauth2 diff --git a/admin/tool/oauth2/lang/en/tool_oauth2.php b/admin/tool/oauth2/lang/en/tool_oauth2.php index cd7eee18fb7..938c576bcba 100644 --- a/admin/tool/oauth2/lang/en/tool_oauth2.php +++ b/admin/tool/oauth2/lang/en/tool_oauth2.php @@ -31,11 +31,6 @@ $string['connectsystemaccount'] = 'Connect to a system account'; $string['createfromtemplate'] = 'Create an OAuth 2 service from a template'; $string['createfromtemplatedesc'] = 'Choose one of the OAuth 2 service templates below to create an OAuth service with a valid configuration for one of the known service types. This will create the OAuth 2 service, with all the correct end points and parameters required for authentication, though you will still need to enter the client ID and secret for the new service before it can be used.'; $string['createnewendpoint'] = 'Create new endpoint for issuer "{$a}"'; -$string['createnewfacebookissuer'] = 'Create new Facebook service'; -$string['createnewgoogleissuer'] = 'Create new Google service'; -$string['createnewissuer'] = 'Create new custom service'; -$string['createnewmicrosoftissuer'] = 'Create new Microsoft service'; -$string['createnewnextcloudissuer'] = 'Create new Nextcloud service'; $string['createnewservice'] = 'Create new service: '; $string['createnewuserfieldmapping'] = 'Create new user field mapping for issuer "{$a}"'; $string['custom_service'] = 'Custom'; @@ -113,3 +108,10 @@ $string['userfieldinternalfield'] = 'Internal field name'; $string['userfieldmappingdeleted'] = 'User field mapping deleted'; $string['userfieldmappingsforissuer'] = 'User field mappings for issuer: {$a}'; $string['privacy:metadata'] = 'The OAuth 2 services plugin does not store any personal data.'; + +// Deprecated since Moodle 3.11. +$string['createnewfacebookissuer'] = 'Create new Facebook service'; +$string['createnewgoogleissuer'] = 'Create new Google service'; +$string['createnewissuer'] = 'Create new custom service'; +$string['createnewmicrosoftissuer'] = 'Create new Microsoft service'; +$string['createnewnextcloudissuer'] = 'Create new Nextcloud service';