diff --git a/element/daterange/classes/element.php b/element/daterange/classes/element.php
index 62f7bc8..fdfdef8 100644
--- a/element/daterange/classes/element.php
+++ b/element/daterange/classes/element.php
@@ -178,6 +178,7 @@ class element extends \mod_customcert\element {
$rangeoptions['startdate']['type'] = PARAM_INT;
$rangeoptions['enddate']['type'] = PARAM_INT;
$rangeoptions['recurring']['type'] = PARAM_INT;
+ $rangeoptions['recurring']['helpbutton'] = ['recurring', 'customcertelement_daterange'];
$rangeoptions['datestring']['type'] = PARAM_NOTAGS;
$rangeoptions['rangedelete']['type'] = PARAM_BOOL;
diff --git a/element/daterange/lang/en/customcertelement_daterange.php b/element/daterange/lang/en/customcertelement_daterange.php
index b8037d8..08ce9f6 100644
--- a/element/daterange/lang/en/customcertelement_daterange.php
+++ b/element/daterange/lang/en/customcertelement_daterange.php
@@ -24,6 +24,7 @@
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
+$string['addrange'] = 'Add another range';
$string['completiondate'] = 'Completion date';
$string['courseenddate'] = 'Course end date';
$string['coursegradedate'] = 'Course grade date';
@@ -31,21 +32,21 @@ $string['coursestartdate'] = 'Course start date';
$string['dateitem'] = 'Date item';
$string['dateitem_help'] = 'This will be the date that is printed on the certificate';
$string['dateranges'] = 'Date ranges';
+$string['datestring'] = 'String';
+$string['end'] = 'End';
+$string['error:atleastone'] = 'You must have at least one date range configured';
+$string['error:datestring'] = 'You must provide string representation for the date range';
+$string['error:enddate'] = 'End date must occur after the start date';
+$string['error:recurring'] = 'Recurring range must not be longer than 12 months';
$string['fallbackstring'] = 'Fallback string';
$string['fallbackstring_help'] = 'This string will be displayed if no date range applies to a date. If the fallback string is not set, then there will be no output at all.';
-$string['help'] = 'Configure a string representation for each date range. Make sure your ranges do not overlap, otherwise the first matched date range will be applied. If no date range matches then the fallback string will be displayed (if it is set).
If you mark a date range as recurring, then the configured year will not be considered.';
-$string['placeholders'] = 'The following placeholders can be used in the string representation or fallback string.
{{range_first_year}} - first year of the matched range,
{{range_last_year}} - last year of the matched range,
{{recurring_range_first_year}} - first year of the matched recurring period,
{{recurring_range_last_year}} - last year of the matched recurring period,
{{current_year}} - the current year,
{{date_year}} - a year of the users\'s date.';
+$string['help'] = 'Configure a string representation for your date ranges.
If your ranges overlap the first matched date range will be applied.';
$string['issueddate'] = 'Issued date';
+$string['placeholders'] = 'The following placeholders can be used in the string representation or fallback string.
{{range_first_year}} - first year of the matched range,
{{range_last_year}} - last year of the matched range,
{{recurring_range_first_year}} - first year of the matched recurring period,
{{recurring_range_last_year}} - last year of the matched recurring period,
{{current_year}} - the current year,
{{date_year}} - a year of the users\'s date.';
$string['pluginname'] = 'Date range';
-$string['privacy:metadata'] = 'The Date range plugin does not store any personal data.';
-$string['start'] = 'Start';
-$string['end'] = 'End';
-$string['datestring'] = 'String';
-$string['error:atleastone'] = 'You must have at least one date range configured';
-$string['error:datestring'] = 'You must provide string representation for the datarange';
-$string['error:enddate'] = 'End date must be after Start date';
-$string['error:recurring'] = 'Recurring range must not be longer than 12 months';
$string['preview'] = 'Preview {$a}';
-$string['recurring'] = 'Recurring?';
-$string['setdeleted'] = 'Delete?';
-$string['addrange'] = 'Add another range';
+$string['privacy:metadata'] = 'The Date range plugin does not store any personal data.';
+$string['recurring'] = 'Recurring';
+$string['recurring_help'] = 'If you mark a date range as recurring then the configured year will not be considered.';
+$string['setdeleted'] = 'Delete';
+$string['start'] = 'Start';