includes/registration.forms.inc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/includes/registration.forms.inc b/includes/registration.forms.inc index f2c6c54..049d948 100644 --- a/includes/registration.forms.inc +++ b/includes/registration.forms.inc @@ -626,10 +626,11 @@ function registration_entity_settings_form($form, &$form_state, $settings, $enti $form['scheduling']['open_relative'] = array( '#type' => 'textfield', - '#title' => t('Open Offset'), - '#description' => t('Uses PHP !relative_date_formats relative to the event date. Examples: !examples.', array( + '#title' => t('Offset for automatic opening of registrations'), + '#description' => t("Uses PHP !relative_date_formats relative to the event date. Examples: !examples. You can omit this field if you don't want registrations to !action automatically", array( '!relative_date_formats' => l(t('relative date formats'), 'http://php.net/manual/en/datetime.formats.relative.php'), '!examples' => "'-1 day', '-2 days 14:00', '-7 weekdays', 'first day of this month'", // These can't be translated. + '!action' => t('open'), )), '#default_value' => !empty($settings['open_relative']) ? $settings['open_relative'] : '', '#states' => array( @@ -668,10 +669,11 @@ function registration_entity_settings_form($form, &$form_state, $settings, $enti $form['scheduling']['close_relative'] = array( '#type' => 'textfield', - '#title' => t('Close Offset'), - '#description' => t('Uses PHP !relative_date_formats relative to the event date. Examples: !examples.', array( + '#title' => t('Offset for automatic closing of registrations'), + '#description' => t("Uses PHP !relative_date_formats relative to the event date. Examples: !examples. You can omit this field if you don't want registrations to !action automatically", array( '!relative_date_formats' => l(t('relative date formats'), 'http://php.net/manual/en/datetime.formats.relative.php'), '!examples' => "'-1 day', '-2 days 14:00', '-7 weekdays', 'first day of this month'", // These can't be translated. + '!action' => t('close'), )), '#default_value' => !empty($settings['close_relative']) ? $settings['close_relative'] : '', '#states' => array( @@ -754,11 +756,13 @@ function registration_entity_settings_form($form, &$form_state, $settings, $enti $form['reminder']['reminder_settings']['reminder_relative'] = array( '#type' => 'textfield', - '#title' => t('Reminder Offset'), - '#description' => t('Uses PHP !relative_date_formats relative to the event date. Examples: !examples.', array( + '#title' => t('Offset for automatic sending of reminders'), + '#description' => t("Uses PHP !relative_date_formats relative to the event date. Examples: !examples. You can omit this field if you don't want registrations to !action automatically", array( '!relative_date_formats' => l(t('relative date formats'), 'http://php.net/manual/en/datetime.formats.relative.php'), '!examples' => "'-1 day', '-2 days 14:00', '-7 weekdays', 'first day of this month'", // These can't be translated. - )), '#default_value' => !empty($settings['reminder_relative']) ? $settings['reminder_relative'] : '', + '!action' => t('remind'), + )), + '#default_value' => !empty($settings['reminder_relative']) ? $settings['reminder_relative'] : '', '#states' => array( 'visible' => array('xor', array(':input[name="reminder[reminder_settings][reminder_type]"]' => array('value' => 'relative')),