Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * Strings for component 'webservice', language 'en', branch 'MOODLE_20_STABLE'
  19   *
  20   * @package   core_webservice
  21   * @copyright 1999 onwards Martin Dougiamas  {@link http://moodle.com}
  22   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  23   */
  24  
  25  $string['accessexception'] = 'Access control exception';
  26  $string['actwebserviceshhdr'] = 'Active web service protocols';
  27  $string['addaservice'] = 'Add service';
  28  $string['addcapabilitytousers'] = 'Check users capability';
  29  $string['addcapabilitytousersdescription'] = 'Users should have two capabilities - webservice:createtoken and a capability matching the protocols used, for example webservice/rest:use, webservice/soap:use. To achieve this, create a web services role with the appropriate capabilities allowed and assign it to the web services user as a system role.';
  30  $string['addfunction'] = 'Add function';
  31  $string['addfunctionhelp'] = 'Select the function to add to the service.';
  32  $string['addfunctions'] = 'Add functions';
  33  $string['addfunctionsdescription'] = 'Select required functions for the newly created service.';
  34  $string['addrequiredcapability'] = 'Assign/unassign the required capability';
  35  $string['addservice'] = 'Add a new service: {$a->name} (id: {$a->id})';
  36  $string['addservicefunction'] = 'Add functions to the service "{$a}"';
  37  $string['allusers'] = 'All users';
  38  $string['apiexplorer'] = 'API explorer';
  39  $string['apiexplorernotavalaible'] = 'API explorer not available yet.';
  40  $string['arguments'] = 'Arguments';
  41  $string['authmethod'] = 'Authentication method';
  42  $string['callablefromajax'] = 'Callable from AJAX';
  43  $string['cannotcreatetoken'] = 'No permission to create web service token for the service {$a}.';
  44  $string['cannotgetcoursecontents'] = 'Cannot get course contents';
  45  $string['configwebserviceplugins'] = 'For security reasons, only protocols that are in use should be enabled.';
  46  $string['context'] = 'Context';
  47  $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\'.';
  48  $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\'.';
  49  $string['createtoken'] = 'Create token';
  50  $string['createtokenforuser'] = 'Create a token for a user';
  51  $string['createtokenforuserdescription'] = 'Create a token for the web services user.';
  52  $string['createuser'] = 'Create a specific user';
  53  $string['createuserdescription'] = 'A web services user is required to represent the system controlling Moodle.';
  54  $string['criteriaerror'] = 'Missing permissions to search on a criterion.';
  55  $string['default'] = 'Default to "{$a}"';
  56  $string['deleteaservice'] = 'Delete service';
  57  $string['deleteservice'] = 'Delete the service: {$a->name} (id: {$a->id})';
  58  $string['deleteserviceconfirm'] = 'Deleting a service will also delete the tokens related to this service. Do you really want to delete external service "{$a}"?';
  59  $string['deletetokenconfirm'] = 'Do you really want to delete this web service token for <strong>{$a->user}</strong> on the service <strong>{$a->service}</strong>?';
  60  $string['disabledwarning'] = 'All web service protocols are disabled.  The "Enable web services" setting can be found in Advanced features.';
  61  $string['doc'] = 'Documentation';
  62  $string['docaccessrefused'] = 'You are not allowed to see the documentation for this token';
  63  $string['downloadfiles'] = 'Can download files';
  64  $string['downloadfiles_help'] = 'If enabled, any user can download files with their security keys. Of course they are restricted to the files they are allowed to download in the site.';
  65  $string['editaservice'] = 'Edit service';
  66  $string['editservice'] = 'Edit the service: {$a->name} (id: {$a->id})';
  67  $string['enabled'] = 'Enabled';
  68  $string['enabledocumentation'] = 'Enable developer documentation';
  69  $string['enabledocumentationdescription'] = 'Detailed web services documentation is available for enabled protocols.';
  70  $string['enableprotocols'] = 'Enable protocols';
  71  $string['enableprotocolsdescription'] = 'At least one protocol should be enabled. For security reasons, only protocols that are to be used should be enabled.';
  72  $string['enablews'] = 'Enable web services';
  73  $string['enablewsdescription'] = 'Web services must be enabled in Advanced features.';
  74  $string['entertoken'] = 'Enter a security key/token:';
  75  $string['error'] = 'Error: {$a}';
  76  $string['errorcatcontextnotvalid'] = 'You cannot execute functions in the category context (category id:{$a->catid}). The context error message was: {$a->message}';
  77  $string['errorcodes'] = 'Error message';
  78  $string['errorcoursecontextnotvalid'] = 'You cannot execute functions in the course context (course id:{$a->courseid}). The context error message was: {$a->message}';
  79  $string['errorinvalidparam'] = 'The param "{$a}" is invalid.';
  80  $string['errornotemptydefaultparamarray'] = 'The web service description parameter named \'{$a}\' is an single or multiple structure. The default can only be empty array. Check web service description.';
  81  $string['erroroptionalparamarray'] = 'The web service description parameter named \'{$a}\' is a single or multiple structure. It cannot be set as VALUE_OPTIONAL. Check the web service description.';
  82  $string['eventwebservicefunctioncalled'] = 'Web service function called';
  83  $string['eventwebserviceloginfailed'] = 'Web service login failed';
  84  $string['eventwebserviceservicecreated'] = 'Web service created';
  85  $string['eventwebserviceservicedeleted'] = 'Web service deleted';
  86  $string['eventwebserviceserviceupdated'] = 'Web service updated';
  87  $string['eventwebserviceserviceuseradded'] = 'Web service user added';
  88  $string['eventwebserviceserviceuserremoved'] = 'Web service user removed';
  89  $string['eventwebservicetokencreated'] = 'Web service token created';
  90  $string['eventwebservicetokensent'] = 'Web service token sent';
  91  $string['execute'] = 'Execute';
  92  $string['executewarnign'] = 'WARNING: If you press execute your database will be modified and changes can not be reverted automatically!';
  93  $string['externalservice'] = 'External service';
  94  $string['externalservicefunctions'] = 'External service functions';
  95  $string['externalservices'] = 'External services';
  96  $string['externalserviceusers'] = 'External service users';
  97  $string['failedtolog'] = 'Failed to log';
  98  $string['filenameexist'] = 'File name already exists: {$a}';
  99  $string['forbiddenwsuser'] = 'Can not create token for an unconfirmed, deleted, suspended or guest user.';
 100  $string['function'] = 'Function';
 101  $string['functions'] = 'Functions';
 102  $string['generalstructure'] = 'General structure';
 103  $string['checkusercapability'] = 'Check user capability';
 104  $string['checkusercapabilitydescription'] = 'The user should have appropriate capabilities according to the protocols used, for example webservice/rest:use, webservice/soap:use. To achieve this, create a web services role with protocol capabilities allowed and assign it to the web services user as a system role.';
 105  $string['information'] = 'Information';
 106  $string['installserviceshortnameerror'] = 'Coding error: the service shortname "{$a}" can only contain alphanumeric characters (letters and numbers), underscore (_), hyphen (-) or full stop (.)';
 107  $string['installexistingserviceshortnameerror'] = 'A web service with the shortname "{$a}" already exists. Can not install/update a different web service with this shortname.';
 108  $string['invalidextparam'] = 'Invalid external api parameter: {$a}';
 109  $string['invalidextresponse'] = 'Invalid external api response: {$a}';
 110  $string['invalidiptoken'] = 'Invalid token - your IP is not supported';
 111  $string['invalidtimedtoken'] = 'Invalid token - token expired';
 112  $string['invalidtoken'] = 'Invalid token - token not found';
 113  $string['iprestriction'] = 'IP restriction';
 114  $string['iprestriction_help'] = 'The user will need to call the web service from the listed IPs (separated by commas).';
 115  $string['key'] = 'Key';
 116  $string['keyshelp'] = 'The keys are used to access your Moodle account from external applications.';
 117  $string['loginrequired'] = 'Restricted to logged-in users';
 118  $string['manageprotocols'] = 'Manage protocols';
 119  $string['managetokens'] = 'Manage tokens';
 120  $string['missingcaps'] = 'Missing capabilities';
 121  $string['missingcaps_help'] = 'List of capabilities declared by the service which the user does not have. Some service functionality may not be available without these capabilities.';
 122  $string['missingpassword'] = 'Missing password';
 123  $string['missingrequiredcapability'] = 'The capability {$a} is required.';
 124  $string['missingusername'] = 'Missing username';
 125  $string['missingversionfile'] = 'Coding error: version.php file is missing for the component {$a}';
 126  $string['nameexists'] = 'This name is already in use by another service';
 127  $string['nocapabilitytouseparameter'] = 'The user does not have the required capability to use the parameter {$a}';
 128  $string['nofunctions'] = 'This service has no functions.';
 129  $string['norequiredcapability'] = 'No required capability';
 130  $string['notoken'] = 'The token list is empty.';
 131  $string['onesystemcontrolling'] = 'Allow an external system to control Moodle';
 132  $string['onesystemcontrollingdescription'] = 'The following steps help you to set up the Moodle web services to allow an external system to interact with Moodle. This includes setting up a token (security key) authentication method.';
 133  $string['onlyseecreatedtokens'] = 'You can only view tokens that you created.';
 134  $string['operation'] = 'Operation';
 135  $string['optional'] = 'Optional';
 136  $string['passwordisexpired'] = 'Password is expired.';
 137  $string['phpparam'] = 'XML-RPC (PHP structure)';
 138  $string['phpresponse'] = 'XML-RPC (PHP structure)';
 139  $string['postrestparam'] = 'PHP code for REST (POST request)';
 140  $string['potusers'] = 'Not authorised users';
 141  $string['potusersmatching'] = 'Not authorised users matching';
 142  $string['print'] = 'Print all';
 143  $string['privacy:metadata:serviceusers'] = 'A list of users who can use a certain external service';
 144  $string['privacy:metadata:serviceusers:iprestriction'] = 'IP restricted to use the service';
 145  $string['privacy:metadata:serviceusers:timecreated'] = 'The date when the record was created';
 146  $string['privacy:metadata:serviceusers:userid'] = 'The ID of the user';
 147  $string['privacy:metadata:serviceusers:validuntil'] = 'The date that the authorisation is valid until';
 148  $string['privacy:metadata:tokens'] = 'A record of tokens for interacting with Moodle through web services or Mobile applications.';
 149  $string['privacy:metadata:tokens:creatorid'] = 'The ID of the user who created the token';
 150  $string['privacy:metadata:tokens:iprestriction'] = 'IP restricted to use this token';
 151  $string['privacy:metadata:tokens:lastaccess'] = 'The date when the token was last used';
 152  $string['privacy:metadata:tokens:privatetoken'] = 'A more private token occasionally used to validate certain operations, such as SSO';
 153  $string['privacy:metadata:tokens:timecreated'] = 'The date when the token was created';
 154  $string['privacy:metadata:tokens:token'] = 'The user\'s token';
 155  $string['privacy:metadata:tokens:tokentype'] = 'The type of token';
 156  $string['privacy:metadata:tokens:userid'] = 'The ID of the user whose token it is';
 157  $string['privacy:metadata:tokens:validuntil'] = 'The date that the token is valid until';
 158  $string['privacy:request:notexportedsecurity'] = 'Not exported for security reasons';
 159  $string['protocol'] = 'Protocol';
 160  $string['removefunction'] = 'Remove';
 161  $string['removefunctionconfirm'] = 'Do you really want to remove function "{$a->function}" from service "{$a->service}"?';
 162  $string['requireauthentication'] = 'This method requires authentication with xxx permission.';
 163  $string['required'] = 'Required';
 164  $string['requiredcapability'] = 'Required capability';
 165  $string['requiredcapability_help'] = 'If set, only users with the required capability can access the service.';
 166  $string['requiredcaps'] = 'Required capabilities';
 167  $string['resettokencomplete'] = 'The selected token was reset';
 168  $string['resettokenconfirm'] = 'Do you really want to reset this web service key for <strong>{$a->user}</strong> on the service <strong>{$a->service}</strong>?';
 169  $string['resettokenconfirmsimple'] = 'Do you really want to reset this key? Any saved links containing the old key will not work anymore.';
 170  $string['response'] = 'Response';
 171  $string['restcode'] = 'REST';
 172  $string['restexception'] = 'REST';
 173  $string['restparam'] = 'REST (POST parameters)';
 174  $string['restrictedusers'] = 'Authorised users only';
 175  $string['restrictedusers_help'] = 'This setting determines whether all users with the permission to create a web services token can generate a token for this service via their security keys page or whether only authorised users can do so.';
 176  $string['restoredaccountresetpassword'] = 'Restored account need to reset password before getting a token.';
 177  $string['securitykey'] = 'Security key (token)';
 178  $string['securitykeys'] = 'Security keys';
 179  $string['selectauthorisedusers'] = 'Select authorised users';
 180  $string['selectedcapability'] = 'Selected';
 181  $string['selectedcapabilitydoesntexit'] = 'The currently set required capability ({$a}) doesn\'t exist any more. Please change it and save the changes.';
 182  $string['selectservice'] = 'Select a service';
 183  $string['selectspecificuser'] = 'Select a specific user';
 184  $string['selectspecificuserdescription'] = 'Add the web services user as an authorised user.';
 185  $string['service'] = 'Service';
 186  $string['servicehelpexplanation'] = 'A service is a set of functions. A service can be accessed by all users or just specified users.';
 187  $string['servicename'] = 'Service name';
 188  $string['servicenotavailable'] = 'Web service is not available. (It doesn\'t exist or might be disabled.)';
 189  $string['servicerequireslogin'] = 'Web service is not available. (The session has been logged out or has expired.)';
 190  $string['servicesbuiltin'] = 'Built-in services';
 191  $string['servicescustom'] = 'Custom services';
 192  $string['serviceusers'] = 'Authorised users';
 193  $string['serviceusersettings'] = 'User settings';
 194  $string['serviceusersmatching'] = 'Authorised users matching';
 195  $string['serviceuserssettings'] = 'Change settings for the authorised users';
 196  $string['shortnametaken'] = 'Short name is already used for another service ({$a})';
 197  $string['simpleauthlog'] = 'Simple authentication login';
 198  $string['step'] = 'Step';
 199  $string['supplyinfo'] = 'More details';
 200  $string['testauserwithtestclientdescription'] = 'Simulate external access to the service using the web service test client. Before doing so, log in as a user with the moodle/webservice:createtoken capability and obtain the security key (token) via the user\'s preferences page. You will use this token in the test client. In the test client, also choose an enabled protocol with the token authentication. <strong>WARNING: The functions that you test WILL BE EXECUTED for this user, so be careful what you choose to test!</strong>';
 201  $string['testclient'] = 'Web service test client';
 202  $string['testclientdescription'] = '* The web service test client <strong>executes</strong> the functions for <strong>REAL</strong>. Do not test functions that you don\'t know. <br/>* All existing web service functions are not yet implemented into the test client. <br/>* In order to check that a user cannot access some functions, you can test some functions that you didn\'t allow.<br/>* To see clearer error messages set the debugging to <strong>{$a->mode}</strong> into {$a->atag}.';
 203  $string['testwithtestclient'] = 'Test the service';
 204  $string['testwithtestclientdescription'] = 'Simulate external access to the service using the web service test client. Use an enabled protocol with token authentication. <strong>WARNING: The functions that you test WILL BE EXECUTED, so be careful what you choose to test!</strong>';
 205  $string['token'] = 'Token';
 206  $string['tokenauthlog'] = 'Token authentication';
 207  $string['tokencreatedbyadmin'] = 'Can only be reset by administrator (*)';
 208  $string['tokencreator'] = 'Creator';
 209  $string['tokenfilter'] = 'Tokens filter';
 210  $string['tokenfiltersubmit'] = 'Show only matching tokens';
 211  $string['tokenfilterreset'] = 'Show all tokens';
 212  $string['unknownoptionkey'] = 'Unknown option key ({$a})';
 213  $string['unnamedstringparam'] = 'A string parameter is unnamed.';
 214  $string['updateusersettings'] = 'Update';
 215  $string['uploadfiles'] = 'Can upload files';
 216  $string['uploadfiles_help'] = 'If enabled, any user can upload files with their security keys to their own private files area or a draft file area. Any user file quotas apply.';
 217  $string['userasclients'] = 'Users as clients with token';
 218  $string['userasclientsdescription'] = 'The following steps help you to set up the Moodle web service for users as clients. These steps also help to set up the recommended token (security keys) authentication method. In this use case, the user will generate their token from the security keys page via their preferences page.';
 219  $string['usermissingcaps'] = 'Missing capabilities: {$a}';
 220  $string['usernameorid'] = 'Username / User id';
 221  $string['usernameorid_help'] = 'Enter a username or a user id.';
 222  $string['usernotallowed'] = 'The user is not allowed for this service. First you need to allow this user on the {$a}\'s allowed users administration page.';
 223  $string['userservices'] = 'User services: {$a}';
 224  $string['usersettingssaved'] = 'User settings saved';
 225  $string['validuntil'] = 'Valid until';
 226  $string['validuntil_help'] = 'If set, the service will be inactivated after this date for this user.';
 227  $string['webservice'] = 'Web service';
 228  $string['webservices'] = 'Web services';
 229  $string['webservicesoverview'] = 'Overview';
 230  $string['webservicetokens'] = 'Web service tokens';
 231  $string['wrongusernamepassword'] = 'Wrong username or password';
 232  $string['wsaccessuserdeleted'] = 'Refused web service access for deleted username: {$a}';
 233  $string['wsaccessuserexpired'] = 'Refused web service access for password expired username: {$a}';
 234  $string['wsaccessusernologin'] = 'Refused web service access for nologin authentication username: {$a}';
 235  $string['wsaccessusersuspended'] = 'Refused web service access for suspended username: {$a}';
 236  $string['wsaccessuserunconfirmed'] = 'Refused web service access for unconfirmed username: {$a}';
 237  $string['wsclientdoc'] = 'Moodle web service client documentation';
 238  $string['wsdocapi'] = 'API Documentation';
 239  $string['wsdocumentation'] = 'Web service documentation';
 240  $string['wsdocumentationdisable'] = 'Web service documentation is disabled.';
 241  $string['wsdocumentationintro'] = 'To create a client we advise you to read the {$a->doclink}';
 242  $string['wsdocumentationlogin'] = 'or enter your web service username and password:';
 243  $string['wspassword'] = 'Web service password';
 244  $string['wsusername'] = 'Web service username';
 245  
 246  // Deprecated since Moodle 3.9.
 247  $string['documentation'] = 'web service documentation';
 248  
 249  // Deprecated since Moodle 3.11.
 250  $string['usernameoridnousererror'] = 'No users were found with this username/user id.';
 251  $string['usernameoridoccurenceerror'] = 'More than one user was found with this username. Please enter the user id.';