webservice MDL-21351 fix some wording in the overview and some links
This commit is contained in:
@@ -21,7 +21,6 @@ $string['checkusercapability'] = 'Check user capability';
|
||||
$string['checkusercapabilitydescription'] = 'To use the web services, a user needs to have a capability matching the web service protocols (\'webservice/rest:use\', \'webservice/soap:use\', ...). <br/>Advice: one way to set this up is to create a new \'Web Service\' system role with protocol capabilities defined. Then you assign this system role to the web service user.';
|
||||
$string['configwebserviceplugins'] = 'For security reasons, only protocols that are in use should be enabled.';
|
||||
$string['context'] = 'Context';
|
||||
$string['createservice'] = 'Create a service';
|
||||
$string['createservicedescription'] = 'A service is a set of web service functions. You will allow the user to access to a new service. On the <strong>Add service</strong> page check \'Enable\' and \'Authorised users\' options. Select \'No required capability\'.';
|
||||
$string['createserviceforusersdescription'] = 'A service is a set of web service functions. You will allow users to access to a new service. On the <strong>Add service</strong> page check \'Enable\' and uncheck \'Authorised users\' options. Select \'No required capability\'.';
|
||||
$string['createtoken'] = 'Create token';
|
||||
@@ -98,6 +97,7 @@ $string['selectedcapability'] = 'Selected';
|
||||
$string['simpleauthlog'] = 'Simple authentication login';
|
||||
$string['step'] = 'Step';
|
||||
$string['securitykey'] = 'Security key (token)';
|
||||
$string['selectservice'] = 'Select a service';
|
||||
$string['selectspecificuser'] = 'Select a specific user';
|
||||
$string['selectspecificuserdescription'] = 'On the <strong>Manage service</strong> page, click on \'Authorised users\' and add the user to the authorised users list.';
|
||||
$string['service'] = 'Service';
|
||||
|
||||
+8
-8
@@ -6377,10 +6377,10 @@ class admin_setting_webservicesoverview extends admin_setting {
|
||||
$row[2] = get_string('checkusercapabilitydescription', 'webservice');
|
||||
$table->data[] = $row;
|
||||
|
||||
/// 5. Create a web service
|
||||
/// 5. Select a web service
|
||||
$row = array();
|
||||
$url = new moodle_url("/admin/webservice/service.php?id=0");
|
||||
$row[0] = "5. "."<a href=".$url.">".get_string('createservice', 'webservice')."</a>";
|
||||
$url = new moodle_url("/admin/settings.php?section=externalservices");
|
||||
$row[0] = "5. "."<a href=".$url.">".get_string('selectservice', 'webservice')."</a>";
|
||||
$row[1] = "";
|
||||
$row[2] = get_string('createservicedescription', 'webservice');
|
||||
$table->data[] = $row;
|
||||
@@ -6411,7 +6411,7 @@ class admin_setting_webservicesoverview extends admin_setting {
|
||||
|
||||
/// 9. Enable the documentation
|
||||
$row = array();
|
||||
$url = new moodle_url("/admin/search.php?query=Web+services+documentation");
|
||||
$url = new moodle_url("/admin/search.php?query=enablewsdocumentation");
|
||||
$row[0] = "9. "."<a href=".$url.">".get_string('enabledocumentation', 'webservice')."</a>";
|
||||
$status = '<span class="warning">'.get_string('no').'</span>'; //should never happens as this page should only be seen once web service are activated
|
||||
if ($CFG->enablewsdocumentation) {
|
||||
@@ -6445,7 +6445,7 @@ class admin_setting_webservicesoverview extends admin_setting {
|
||||
|
||||
/// 1. Enable Web Services
|
||||
$row = array();
|
||||
$url = new moodle_url("/admin/search.php?query=Enable+web+services");
|
||||
$url = new moodle_url("/admin/search.php?query=enablewebservices");
|
||||
$row[0] = "1. "."<a href=".$url.">".get_string('enablews', 'webservice')."</a>";
|
||||
$status = '<span class="statuscritical">'.get_string('no').'</span>'; //should never happens as this page should only be seen once web service are activated
|
||||
if ($CFG->enablewebservices) {
|
||||
@@ -6473,10 +6473,10 @@ class admin_setting_webservicesoverview extends admin_setting {
|
||||
$table->data[] = $row;
|
||||
|
||||
|
||||
/// 3. Create a web service
|
||||
/// 3. Select a web service
|
||||
$row = array();
|
||||
$url = new moodle_url("/admin/webservice/service.php?id=0");
|
||||
$row[0] = "3. "."<a href=".$url.">".get_string('createservice', 'webservice')."</a>";
|
||||
$url = new moodle_url("/admin/settings.php?section=externalservices");
|
||||
$row[0] = "3. "."<a href=".$url.">".get_string('selectservice', 'webservice')."</a>";
|
||||
$row[1] = "";
|
||||
$row[2] = get_string('createserviceforusersdescription', 'webservice');
|
||||
$table->data[] = $row;
|
||||
|
||||
Reference in New Issue
Block a user