Skip to content

Commit

Permalink
MDL-71584 tool_brickfield: Fixed up language string issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurchward committed May 12, 2021
1 parent c53a081 commit 38f57b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 38 deletions.
26 changes: 3 additions & 23 deletions admin/tool/brickfield/lang/en/tool_brickfield.php
Expand Up @@ -31,7 +31,7 @@
$string['accessibilityreport'] = 'Accessibility toolkit';
$string['analysistype'] = 'Enable analysis requests';
$string['analysistypedisabled'] = 'Content analysis is disabled';
$string['analysistype_desc'] = 'Prevent content analysis from being requested';
$string['analysistype_desc'] = 'Allow content accessibility analysis to be requested';
$string['analysis:disabled'] = 'Disabled';
$string['analysis:byrequest'] = 'By request';
$string['brickfield'] = 'Brickfield toolkit';
Expand Down Expand Up @@ -138,8 +138,6 @@
$string['tblpreview'] = 'Preview';
$string['tbltarget'] = 'Activity';
$string['tblupdateto'] = 'Update to';
$string['termsandconditions'] = '<p>These are the terms and conditions you agree to... blah blah...</p>';
$string['termsandconditionslink'] = 'terms and conditions';
$string['titleerrorscount'] = 'Error details:&nbsp;(showing first {$a} errors)';
$string['titleactivityresultsall'] = 'Results per activity: all reviewed courses ({$a->count} courses)';
$string['titleactivityresultspartial'] = 'Results per activity: course {$a->name}';
Expand All @@ -163,8 +161,6 @@
$string['warningcheckidbody'] = 'There is an issue with a Brickfield check
which is active but not listed in the database. Please investigate.';
$string['warningcheckidsubject'] = 'Brickfield Toolkit checkID warning';
$string['warningscontact'] = 'Email address for receiving warnings';
$string['warningscontact_desc'] = 'An email address to receive any Brickfield Toolkit warnings';

// Check descriptions.
$string['checkdesc:alinksdontopennewwindow'] = 'Links opening into a new window should warn users in advance';
Expand Down Expand Up @@ -204,8 +200,7 @@
$string['activated'] = 'The plugin is activated and ready to use.';
$string['activationform'] = 'Brickfield registration';
$string['activationheader'] = 'Brickfield activation';
$string['activationinfo'] = '<p>In order to use this plugin, you must provide valid keys for this site in this form.</p><p>Please {$a}register your details (opens in new window)</a> to receive those keys if you do not already have them. </p><p>Once activated, your keys will then be validated via scheduled cron tasks.</p>';
$string['automatedsentdaily'] = '';
$string['activationinfo'] = '<p>In order to use this plugin, you must provide valid keys for this site in this form.</p><p>Please <a href="{$a}" data-action="send_info" target="_blank">register at the Brickfield Portal (opens in new window)</a> to receive those keys if you do not already have them. </p><p>Once activated, your keys will then be validated via scheduled cron tasks.</p>';
$string['contenttypeerrors'] = 'Total results of activity content tests per course and per content type.';
$string['contentyperesults'] = 'Total passed/failed for content areas per course.';
$string['country'] = 'Country';
Expand All @@ -218,35 +213,20 @@
$string['installeddescription'] = 'The plugin has been installed, redirect to activation form.';
$string['language'] = 'Language';
$string['language_help'] = 'Language of the site';
$string['mail'] = 'Email';
$string['mail_help'] = 'This email will be used to register the account';
$string['mobileservice'] = 'Mobile services enabled ({$a})';
$string['moreinfo'] = 'More information';
$string['notifications'] = 'Receive notifications';
$string['notifications_help'] = 'Set to "Yes" if you want to receive email notifications. If enabled, you can set another email to receive these notifications.';
$string['numcourses'] = 'Number of courses ({$a})';
$string['numfactivities'] = 'Number of activities ({$a})';
$string['numfiles'] = 'Number of files ({$a})';
$string['numusers'] = 'Number of users ({$a})';
$string['percheckerrors'] = 'Number of specific tests and errors per check per course.';
$string['privacy'] = 'Privacy notice and data processing agreement';
$string['privacy_help'] = 'Access the link to read the entire policy';
$string['privacydesc'] = 'I agree to the <a href="{$a}" target="_blank">privacy notice and data processing agreement</a> for someurl.com';
$string['registerplugin'] = 'Register with {$a}';
$string['registration'] = 'Registration form';
$string['registrationheader'] = 'Register here';
$string['registrationheaderinfo'] = '<p>This registration process allows you to use the Brickfield accessibility toolkit version for your registered Moodle site.</p> <p>This usage is subject to the terms and conditions as stated here and which you agree to, by using this product.</p>';
$string['release'] = 'Moodle release ({$a})';
$string['secretkey'] = 'API key';
$string['secretkey_help'] = 'This code is received by email after registration.';
$string['sendfollowinginfo'] = '<p>The following information will be periodically sent to contribute to overall statistics only. It will not be made public on any central listing.</p> {$a}';
$string['sitehash'] = 'Secret key';
$string['sitehash_help'] = 'This code is received by email after registration.';
$string['sitename'] = 'Site name';
$string['sitename_help'] = 'The name of the site';
$string['siteurl'] = 'Site URL';
$string['siteurl_help'] = 'The URL of the site';
$string['usedifferentemail'] = 'Use different email';
$string['usersmobileregistered'] = 'Number of users with registered mobile devices ({$a})';
$string['validationerror'] = 'Registration key validation has failed. Check that your registered site URL and keys are correct.';

Expand All @@ -272,7 +252,7 @@
$string['pdf:filename'] = 'Brickfield_Summaryreport_CourseID-{$a}';

// Advanced page.
$string['bannercontentone'] = 'The Enterprise Accessibility Toolkit has a full set of features to help your organisation improve accessibility of your courses. {$a} to book a free demo of the advanced features.';
$string['bannercontentone'] = 'The Enterprise Accessibility Toolkit has a full set of features to help your organisation improve accessibility of your courses. <a href="{$a}">Contact Brickfield Education Labs</a> to book a free demo of the advanced features.';
$string['bannercontenttwo'] = 'Build an effective and inclusive teaching and learning platform by Finding content that does not meet the guidelines, Fixing the issues and Future-proofing your Moodle course content with accessible files, editor and enhanced features.';
$string['bannerheadingone'] = 'Upgrade to the Enterprise Accessibility Toolkit';
$string['contactus'] = 'Contact us';
Expand Down
12 changes: 1 addition & 11 deletions admin/tool/brickfield/registration.php
Expand Up @@ -41,15 +41,6 @@
$thisurl = new moodle_url(\tool_brickfield\accessibility::get_plugin_url().'/registration.php');
$PAGE->set_url($thisurl);

$termsandconditions = optional_param('terms', 0, PARAM_BOOL);
if ($termsandconditions) {
$PAGE->set_pagelayout('popup');
echo $OUTPUT->header();
echo format_text(get_string('termsandconditions', 'tool_brickfield'), FORMAT_HTML, ['noclean' => true]);
echo $OUTPUT->footer();
exit;
}

$context = context_system::instance();
$PAGE->set_context($context);
$PAGE->set_title(get_string('registration', manager::PLUGINNAME));
Expand Down Expand Up @@ -85,8 +76,7 @@
echo $OUTPUT->notification(get_string('activated', manager::PLUGINNAME), 'success');
}

$keyinfo = get_string('activationinfo', manager::PLUGINNAME, '<a href="' . $registration->get_regurl() .
'" data-action="send_info" target="_blank">');
$keyinfo = get_string('activationinfo', manager::PLUGINNAME, $registration->get_regurl());
echo format_text($keyinfo, FORMAT_HTML, ['noclean' => true]);

$registrationform->display();
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/brickfield/templates/advanced.mustache
Expand Up @@ -35,7 +35,7 @@
<h2>{{# str }}bannerheadingone, tool_brickfield{{/ str }}</h2>
</div>
<p>
{{# str }}bannercontentone, tool_brickfield, <a href="https://www.brickfield.ie/moodle_talk_to_sales/">{{# str }}contactus, tool_brickfield{{/ str }}</a>{{/ str }}
{{# str }}bannercontentone, tool_brickfield, https://www.brickfield.ie/moodle_talk_to_sales/{{/ str }}
</p>
</section>

Expand Down
3 changes: 0 additions & 3 deletions blocks/accessreview/lang/en/block_accessreview.php
Expand Up @@ -32,9 +32,6 @@
$string['errordisplay'] = 'Display errors in this format';
$string['errorssummary'] = 'Accessibility review';
$string['frown'] = 'Errors found, sorry!';
$string['guides'] = 'Guides';
$string['link:pdf'] = 'Link to PDF resource on {$a} - opens in new window';
$string['link:video'] = 'Link to video resource on {$a} - opens in new window';
$string['nodata'] = 'No accessibility results data was found.';
$string['pluginname'] = 'Accessibility review';
$string['privacy:metadata:preference:block_accessreviewtogglestate'] = 'The user\'s preference for hiding or showing the course accessibility highlighting.';
Expand Down

0 comments on commit 38f57b6

Please sign in to comment.