Commit d76697cd authored by alexpott's avatar alexpott

Issue #1182850 by xjm, Stefan Lehmann, jmcintyre, Bojhan: Remove full stops at...

Issue #1182850 by xjm, Stefan Lehmann, jmcintyre, Bojhan: Remove full stops at the end of checkbox options.
parent 0d1b8985
......@@ -43,7 +43,7 @@ public function isNegated() {
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['negate'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Negate the condition.'),
'#title' => $this->t('Negate the condition'),
'#default_value' => $this->configuration['negate'],
);
return $form;
......
......@@ -38,7 +38,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['prefix_suffix'] = array(
'#type' => 'checkbox',
'#title' => t('Display prefix and suffix.'),
'#title' => t('Display prefix and suffix'),
'#default_value' => $this->getSetting('prefix_suffix'),
'#weight' => 10,
);
......
......@@ -13,7 +13,7 @@ views.field.comment:
label: 'Link this field to its comment'
link_to_entity:
type: boolean
label: 'Link field to the entity if there is no comment.'
label: 'Link field to the entity if there is no comment'
views.field.comment_depth:
type: views_field
......@@ -40,7 +40,7 @@ views.field.comment_link:
label: 'Text to display'
link_to_entity:
type: views_field
label: 'Link field to the entity if there is no comment.'
label: 'Link field to the entity if there is no comment'
views.field.comment_link_approve:
type: views.field.comment_link
......
......@@ -69,7 +69,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#default_value' => $this->options['link_to_comment'],
);
$form['link_to_entity'] = array(
'#title' => t('Link field to the entity if there is no comment.'),
'#title' => t('Link field to the entity if there is no comment'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_entity'],
);
......
......@@ -73,7 +73,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
'#default_value' => $this->options['text'],
);
$form['link_to_entity'] = array(
'#title' => t('Link field to the entity if there is no comment.'),
'#title' => t('Link field to the entity if there is no comment'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_entity'],
);
......
......@@ -209,7 +209,7 @@ function contact_form_user_admin_settings_alter(&$form, FormStateInterface $form
);
$form['contact']['contact_default_status'] = array(
'#type' => 'checkbox',
'#title' => t('Enable the personal contact form by default for new users.'),
'#title' => t('Enable the personal contact form by default for new users'),
'#description' => t('Changing this setting will not affect existing users.'),
'#default_value' => \Drupal::config('contact.settings')->get('user_default_enabled'),
);
......
......@@ -63,7 +63,7 @@ public function form(array $form, FormStateInterface $form_state) {
);
$form['selected'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Make this the default form.'),
'#title' => $this->t('Make this the default form'),
'#default_value' => $default_form === $contact_form->id(),
);
......
......@@ -140,7 +140,7 @@ public function form(array $form, FormStateInterface $form_state) {
$form['copy'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Send yourself a copy.'),
'#title' => $this->t('Send yourself a copy'),
// Do not allow anonymous users to send themselves a copy, because it can
// be abused to spam people.
'#access' => $user->isAuthenticated(),
......
......@@ -608,7 +608,7 @@ function content_translation_form_field_ui_field_instance_edit_form_alter(array
$form['instance']['translatable'] = array(
'#type' => 'checkbox',
'#title' => t('Users may translate this field.'),
'#title' => t('Users may translate this field'),
'#default_value' => $instance->isTranslatable(),
'#weight' => -1,
'#disabled' => !$bundle_is_translatable,
......
......@@ -81,7 +81,7 @@ entity_view_display.field.number_decimal:
label: 'Scale'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
label: 'Display prefix and suffix'
entity_view_display.field.number_integer:
type: entity_field_view_display_base
......@@ -96,7 +96,7 @@ entity_view_display.field.number_integer:
label: 'Thousand marker'
prefix_suffix:
type: boolean
label: 'Display prefix and suffix.'
label: 'Display prefix and suffix'
entity_view_display.field.number_unformatted:
type: entity_field_view_display_base
......
......@@ -227,7 +227,7 @@ protected function configureFormTable(array &$form, $type) {
$configurable = $this->languageTypes->get('configurable');
$table_form['configurable'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Customize %language_name language detection to differ from User interface text language detection settings.', array('%language_name' => $info['name'])),
'#title' => $this->t('Customize %language_name language detection to differ from User interface text language detection settings', array('%language_name' => $info['name'])),
'#default_value' => in_array($type, $configurable),
'#attributes' => array('class' => array('language-customization-checkbox')),
'#attached' => array(
......
......@@ -182,7 +182,7 @@ public function form(array $form, FormStateInterface $form_state) {
);
$form['display']['display_submitted'] = array(
'#type' => 'checkbox',
'#title' => t('Display author and date information.'),
'#title' => t('Display author and date information'),
'#default_value' => $type->displaySubmitted(),
'#description' => t('Author username and publish date will be displayed.'),
);
......
......@@ -152,7 +152,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form['bandwidth_optimization']['page_compression'] = array(
'#type' => 'checkbox',
'#title' => t('Compress cached pages.'),
'#title' => t('Compress cached pages'),
'#default_value' => $config->get('response.gzip'),
'#states' => array(
'visible' => array(
......@@ -162,13 +162,13 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['bandwidth_optimization']['preprocess_css'] = array(
'#type' => 'checkbox',
'#title' => t('Aggregate CSS files.'),
'#title' => t('Aggregate CSS files'),
'#default_value' => $config->get('css.preprocess'),
'#disabled' => $disabled,
);
$form['bandwidth_optimization']['preprocess_js'] = array(
'#type' => 'checkbox',
'#title' => t('Aggregate JavaScript files.'),
'#title' => t('Aggregate JavaScript files'),
'#default_value' => $config->get('js.preprocess'),
'#disabled' => $disabled,
);
......
......@@ -103,7 +103,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$configurable_timezones = $system_date->get('timezone.user.configurable');
$form['timezone']['configurable_timezones'] = array(
'#type' => 'checkbox',
'#title' => t('Users may set their own time zone.'),
'#title' => t('Users may set their own time zone'),
'#default_value' => $configurable_timezones,
);
......@@ -119,7 +119,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['timezone']['configurable_timezones_wrapper']['empty_timezone_message'] = array(
'#type' => 'checkbox',
'#title' => t('Remind users at login if their time zone is not set.'),
'#title' => t('Remind users at login if their time zone is not set'),
'#default_value' => $system_date->get('timezone.user.warn'),
'#description' => t('Only applied if users may set their own time zone.')
);
......@@ -129,9 +129,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#title' => t('Time zone for new users'),
'#default_value' => $system_date->get('timezone.user.default'),
'#options' => array(
DRUPAL_USER_TIMEZONE_DEFAULT => t('Default time zone.'),
DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone.'),
DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration.'),
DRUPAL_USER_TIMEZONE_DEFAULT => t('Default time zone'),
DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone'),
DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration'),
),
'#description' => t('Only applied if users may set their own time zone.')
);
......
......@@ -31,12 +31,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form = array(
'checkbox_1_default_off' => array(
'#type' => 'checkbox',
'#title' => t('This checkbox defaults to unchecked.'),
'#title' => t('This checkbox defaults to unchecked'),
'#default_value' => FALSE,
),
'checkbox_1_default_on' => array(
'#type' => 'checkbox',
'#title' => t('This checkbox defaults to checked.'),
'#title' => t('This checkbox defaults to checked'),
'#default_value' => TRUE,
),
'text_1' => array(
......@@ -60,12 +60,12 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$form += array(
'checkbox_2_default_off' => array(
'#type' => 'checkbox',
'#title' => t('This checkbox defaults to unchecked.'),
'#title' => t('This checkbox defaults to unchecked'),
'#default_value' => FALSE,
),
'checkbox_2_default_on' => array(
'#type' => 'checkbox',
'#title' => t('This checkbox defaults to checked.'),
'#title' => t('This checkbox defaults to checked'),
'#default_value' => TRUE,
),
'text_2' => array(
......
......@@ -10,7 +10,7 @@ entity_view_display.field.telephone_link:
mapping:
title:
type: label
label: 'Title to replace basic numeric telephone number display.'
label: 'Title to replace basic numeric telephone number display'
entity_form_display.field.telephone_default:
type: entity_field_form_display_base
......
......@@ -39,7 +39,7 @@ public static function defaultSettings() {
public function settingsForm(array $form, FormStateInterface $form_state) {
$elements['title'] = array(
'#type' => 'textfield',
'#title' => t('Title to replace basic numeric telephone number display.'),
'#title' => t('Title to replace basic numeric telephone number display'),
'#default_value' => $this->getSetting('title'),
);
......
......@@ -12,7 +12,7 @@ user.settings:
label: 'Name'
verify_mail:
type: boolean
label: 'Require email verification when a visitor creates an account.'
label: 'Require email verification when a visitor creates an account'
notify:
type: mapping
label: 'Notify user'
......@@ -25,7 +25,7 @@ user.settings:
label: 'Notify user when password reset'
status_activated:
type: boolean
label: 'Notify user when account is activated.'
label: 'Notify user when account is activated'
status_blocked:
type: boolean
label: 'Account blocked'
......@@ -46,7 +46,7 @@ user.settings:
label: 'Who can register accounts?'
signatures:
type: boolean
label: 'Enable signatures.'
label: 'Enable signatures'
cancel_method:
type: string
label: 'When cancelling a user account'
......
......@@ -128,7 +128,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['registration_cancellation']['user_email_verification'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Require email verification when a visitor creates an account.'),
'#title' => $this->t('Require email verification when a visitor creates an account'),
'#default_value' => $config->get('verify_mail'),
'#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.')
);
......@@ -163,7 +163,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['personalization']['user_signatures'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Enable signatures.'),
'#title' => $this->t('Enable signatures'),
'#default_value' => $filter_exists ? $config->get('signatures') : 0,
'#access' => $filter_exists,
);
......@@ -293,7 +293,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['email_activated']['user_mail_status_activated_notify'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Notify user when account is activated.'),
'#title' => $this->t('Notify user when account is activated'),
'#default_value' => $config->get('notify.status_activated'),
);
$form['email_activated']['settings'] = array(
......@@ -326,7 +326,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['email_blocked']['user_mail_status_blocked_notify'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Notify user when account is blocked.'),
'#title' => $this->t('Notify user when account is blocked'),
'#default_value' => $config->get('notify.status_blocked'),
);
$form['email_blocked']['settings'] = array(
......@@ -378,7 +378,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
);
$form['email_canceled']['user_mail_status_canceled_notify'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'),
'#title' => $this->t('Notify user when account is canceled'),
'#default_value' => $config->get('notify.status_canceled'),
);
$form['email_canceled']['settings'] = array(
......
......@@ -92,7 +92,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$override_access = $admin_access && ($this->entity->id() != $user->id());
$form['user_cancel_confirm'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Require email confirmation to cancel account.'),
'#title' => $this->t('Require email confirmation to cancel account'),
'#default_value' => !$override_access,
'#access' => $override_access,
'#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'),
......@@ -101,7 +101,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$default_notify = $this->config('user.settings')->get('notify.status_canceled');
$form['user_cancel_notify'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'),
'#title' => $this->t('Notify user when account is canceled'),
'#default_value' => ($override_access ? FALSE : $default_notify),
'#access' => $override_access && $default_notify,
'#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'),
......
......@@ -148,14 +148,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
// Allow to send the account cancellation confirmation mail.
$form['user_cancel_confirm'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Require email confirmation to cancel account.'),
'#title' => $this->t('Require email confirmation to cancel account'),
'#default_value' => FALSE,
'#description' => $this->t('When enabled, the user must confirm the account cancellation via email.'),
);
// Also allow to send account canceled notification mail, if enabled.
$form['user_cancel_notify'] = array(
'#type' => 'checkbox',
'#title' => $this->t('Notify user when account is canceled.'),
'#title' => $this->t('Notify user when account is canceled'),
'#default_value' => FALSE,
'#access' => $this->config('user.settings')->get('notify.status_canceled'),
'#description' => $this->t('When enabled, the user will receive an email notification after the account has been canceled.'),
......
......@@ -441,8 +441,8 @@ function testMassUserCancelByAdmin() {
$this->drupalPostForm('admin/people', $edit, t('Apply'));
$this->assertText(t('Are you sure you want to cancel these user accounts?'), 'Confirmation form to cancel accounts displayed.');
$this->assertText(t('When cancelling these accounts'), 'Allows to select account cancellation method.');
$this->assertText(t('Require email confirmation to cancel account.'), 'Allows to send confirmation mail.');
$this->assertText(t('Notify user when account is canceled.'), 'Allows to send notification mail.');
$this->assertText(t('Require email confirmation to cancel account'), 'Allows to send confirmation mail.');
$this->assertText(t('Notify user when account is canceled'), 'Allows to send notification mail.');
// Confirm deletion.
$this->drupalPostForm(NULL, NULL, t('Cancel accounts'));
......
......@@ -532,7 +532,7 @@ views_field:
label: 'Add "…" at the end of trimmed text'
more_link:
type: boolean
label: 'Add a read-more link if output is trimmed.'
label: 'Add a read-more link if output is trimmed'
more_link_text:
type: label
label: 'More link label'
......
......@@ -64,7 +64,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['reset_button'] = array(
'#type' => 'checkbox',
'#title' => t('Include reset button (resets all applied exposed filters).'),
'#title' => t('Include reset button (resets all applied exposed filters)'),
'#default_value' => $this->options['reset_button'],
);
......
......@@ -968,7 +968,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['alter']['more_link'] = array(
'#type' => 'checkbox',
'#title' => t('Add a read-more link if output is trimmed.'),
'#title' => t('Add a read-more link if output is trimmed'),
'#default_value' => $this->options['alter']['more_link'],
'#states' => array(
'visible' => array(
......
......@@ -149,7 +149,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['subquery_regenerate'] = array(
'#type' => 'checkbox',
'#title' => t('Generate subquery each time view is run.'),
'#title' => t('Generate subquery each time view is run'),
'#default_value' => $this->options['subquery_regenerate'],
'#description' => t('Will re-generate the subquery for this relationship every time the view is run, instead of only when these options are saved. Use for testing if you are making changes elsewhere. WARNING: seriously impairs performance.'),
);
......
......@@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['test_enable'] = array(
'#type' => 'checkbox',
'#title' => t('Controls whether the filter plugin should be active.'),
'#title' => t('Controls whether the filter plugin should be active'),
'#default_value' => $this->options['test_enable'],
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment