MDL-42666 repository_boxnet: New lang strings rather than replace
This commit is contained in:
@@ -24,16 +24,23 @@
|
||||
*/
|
||||
|
||||
$string['apikey'] = 'API key';
|
||||
$string['apiv1migration_message_content'] = 'As part of the recent Moodle upgrade (2.6, 2.5.3, 2.4.7), the Box.net repository plugin has been disabled. To re-enable it, you need to re-configure it as described in the documentation {$a->docsurl}.';
|
||||
$string['apiv1migration_message_content'] = 'As part of the recent Moodle upgrade to 2.5.3, the Box.net repository plugin has been disabled. To re-enable it, you need to re-configure it as described in the documentation {$a->docsurl}.';
|
||||
$string['apiv1migration_message_small'] = 'This plugin has been disabled, as it requires configuration as described in the documentation Box.net APIv1 migration.';
|
||||
$string['apiv1migration_message_subject'] = 'Important information regarding Box.net repository plugin';
|
||||
$string['boxnet:view'] = 'View box.net repository';
|
||||
$string['cannotcreatereference'] = 'Cannot create a reference, not enough permissions to share the file on Box.net.';
|
||||
$string['callbackurl'] = 'Redirect URL';
|
||||
$string['callbackurltext'] = '1. Visit <a href="http://www.box.net/developers/services">www.box.net/developers/services</a> again.
|
||||
2. Make sure you set the redirect URL of this box.net service to {$a}.';
|
||||
$string['callbackwarning'] = '1. Get a Box.net API from <a href="http://www.box.net/developers/services">www.box.net/developers/services</a> for this Moodle site.
|
||||
2. Enter the Box.net API key here, then click Save and then return to this page. You will see that Moodle has generated a redirect URL for you.
|
||||
3. Edit your Box.net details on the box.net website again and set the redirect URL.';
|
||||
$string['clientid'] = 'Client ID';
|
||||
$string['clientsecret'] = 'Client secret';
|
||||
$string['configplugin'] = 'Box.net configuration';
|
||||
$string['filesourceinfo'] = 'Box.net ({$a->fullname}): {$a->filename}';
|
||||
$string['information'] = 'Get a client ID and secret from the <a href="https://app.box.com/developers/services">Box.net developer page</a> for your Moodle site.';
|
||||
$string['information'] = 'Get an API key from the <a href="http://www.box.net/developers/services">Box.net developer page</a> for your Moodle site.';
|
||||
$string['informationapiv2'] = 'Get a client ID and secret from the <a href="https://app.box.com/developers/services">Box.net developer page</a> for your Moodle site.';
|
||||
$string['invalidpassword'] = 'Invalid password';
|
||||
$string['migrationadvised'] = 'It appears that you were using Box.net with the API version 1, have you run the <a href="{$a}">migration tool</a> to convert the old references?';
|
||||
$string['migrationinfo'] = '<p>As part of the migration to the new API provided by Box.net, your file references have to be migrated. Unfortunately the reference system is not compatible with the API v2, so we are going to download them and convert them to real files.</p>
|
||||
|
||||
@@ -330,7 +330,7 @@ class repository_boxnet extends repository {
|
||||
$mform->addRule('clientsecret', $strrequired, 'required', null, 'client');
|
||||
$mform->setType('clientsecret', PARAM_RAW_TRIMMED);
|
||||
|
||||
$mform->addElement('static', null, '', get_string('information', 'repository_boxnet'));
|
||||
$mform->addElement('static', null, '', get_string('informationapiv2', 'repository_boxnet'));
|
||||
|
||||
if (strpos($CFG->wwwroot, 'https') !== 0) {
|
||||
$mform->addElement('static', null, '', get_string('warninghttps', 'repository_boxnet'));
|
||||
|
||||
Reference in New Issue
Block a user