Skip to content

Commit fd55acf

Browse files
committed
Reordered lang strings and removed duplicates (#531)
1 parent 4aedc78 commit fd55acf

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

classes/task/issue_certificates_task.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class issue_certificates_task extends \core\task\scheduled_task {
3939
*
4040
* @return string
4141
*/
42-
public function get_name() {
43-
return get_string('issuecertificate', 'customcert');
42+
public function get_name(): string {
43+
return get_string('taskissuecertificate', 'customcert');
4444
}
4545

4646
/**

lang/en/customcert.php

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
$string['cannotverifyallcertificates'] = 'You do not have the permission to verify all certificates on the site.';
3535
$string['certificate'] = 'Certificate';
3636
$string['certificateexecutionperiod'] = 'Certificate execution period';
37-
$string['certificateexecutionperiod_desc'] = 'Specify the period for which certificates should be executed based after the course end date. Set to 0 to execute all certificates, regardless of their age.';
37+
$string['certificateexecutionperiod_desc'] = 'If not 0, the task will not process certificates whose course has been inactive or the last issue is older than the configured time. This may help to improve the performance of the scheduled task.';
3838
$string['certificatesperrun'] = 'Certificates per run';
3939
$string['certificatesperrun_desc'] = 'Enter the number of certificates to process per scheduled task run where 0 means it will process all certificates.';
4040
$string['code'] = 'Code';
@@ -128,7 +128,7 @@
128128
$string['height'] = 'Height';
129129
$string['height_help'] = 'This is the height of the certificate PDF in mm. For reference an A4 piece of paper is 297mm high and a letter is 279mm high.';
130130
$string['includeinnotvisiblecourses'] = 'Include certificates in hidden courses';
131-
$string['includeinnotvisiblecourses_desc'] = 'Check this box to include certificates in courses that are not visible to the user.';
131+
$string['includeinnotvisiblecourses_desc'] = 'Certificates from hidden courses are not proccesed by default. If you want to include them, enable this setting.';
132132
$string['invalidcode'] = 'Invalid code supplied.';
133133
$string['invalidcolour'] = 'Invalid colour chosen, please enter a valid HTML colour name, or a six-digit, or three-digit hexadecimal colour.';
134134
$string['invalidelementwidthorheightnotnumber'] = 'Please enter a valid number.';
@@ -215,6 +215,7 @@
215215
$string['subplugintype_customcertelement'] = 'Element';
216216
$string['subplugintype_customcertelement_plural'] = 'Elements';
217217
$string['taskemailcertificate'] = 'Handles emailing certificates.';
218+
$string['taskissuecertificate'] = 'Issue certificates task';
218219
$string['templatename'] = 'Template name';
219220
$string['templatenameexists'] = 'That template name is currently in use, please choose another.';
220221
$string['topcenter'] = 'Center';
@@ -224,6 +225,8 @@
224225
$string['uploadimage'] = 'Upload image';
225226
$string['uploadimagedesc'] = 'This link will take you to a new screen where you will be able to upload images. Images uploaded using
226227
this method will be available throughout your site to all users who are able to create a certificate.';
228+
$string['useadhoc'] = 'Use Email Certificate adhoc task';
229+
$string['useadhoc_desc'] = 'If enabled, the email will be processed on an adhoc task created per issue. If disabled, the email will be processed by the scheduled task. This may help to improve the performance of the scheduled task.';
227230
$string['userlanguage'] = 'Use user preferences';
228231
$string['userlanguage_help'] = 'You can force the language of the certificate to override the user\'s language preferences.';
229232
$string['verified'] = 'Verified';
@@ -238,21 +241,3 @@
238241
$string['verifycertificatedesc'] = 'This link will take you to a new screen where you will be able to verify certificates on the site';
239242
$string['width'] = 'Width';
240243
$string['width_help'] = 'This is the width of the certificate PDF in mm. For reference an A4 piece of paper is 210mm wide and a letter is 216mm wide.';
241-
242-
$string['userlanguage'] = 'Use user preferences';
243-
$string['languageoptions'] = 'Force Certificate Language';
244-
$string['userlanguage_help'] = 'You can force the language of the certificate to override the user\'s language preferences.';
245-
246-
// Scheduled task configuration performance settings.
247-
$string['certificateexecutionperiod'] = 'Ignore inactive certificates older than';
248-
$string['certificateexecutionperiod_desc'] = 'If not 0, the task will not process certificates whose course has been inactive or the last issue is older than the configured time. This may help to improve the performance of the scheduled task.';
249-
$string['certificatesperrun'] = 'Certificates per run';
250-
$string['certificatesperrun_desc'] = 'Enter the number of certificates to process per scheduled task run where 0 means it will process all certificates.';
251-
$string['customcert:managelanguages'] = 'Manage language on edit form';
252-
$string['includeinnotvisiblecourses'] = 'Include certificates in hidden courses';
253-
$string['includeinnotvisiblecourses_desc'] = 'Certificates from hidden courses are not proccesed by default. If you want to include them, enable this setting.';
254-
$string['scheduledtaskconfigheading'] = 'Scheduled task configuration';
255-
$string['scheduledtaskconfigdesc'] = 'Configure the settings for the scheduled task that processes certificates.';
256-
$string['issuecertificate'] = 'Issue certificates task';
257-
$string['useadhoc'] = 'Use Email Certificate adhoc task';
258-
$string['useadhoc_desc'] = 'If enabled, the email will be processed on an adhoc task created per issue. If disabled, the email will be processed by the scheduled task. This may help to improve the performance of the scheduled task.';

0 commit comments

Comments
 (0)