diff --git a/recaptcha.module b/recaptcha.module index 13248987b9ce074a5a6725ff9188f8e8460b5735..c19e1155e6e7214d75d6f8f872d6697dd6e440d1 100644 --- a/recaptcha.module +++ b/recaptcha.module @@ -21,7 +21,7 @@ require_once dirname(__FILE__) . '/src/ReCaptcha/RequestMethod/Drupal8Post.php'; function recaptcha_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'recaptcha.admin_settings_form': - return t('Google reCAPTCHA is a free service to protect your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.', array('@url' => 'https://www.google.com/recaptcha')); + return t('Google reCAPTCHA is a free service to protect your website from spam and abuse. reCAPTCHA uses an advanced risk analysis engine and adaptive CAPTCHAs to keep automated software from engaging in abusive activities on your site. It does this while letting your valid users pass through with ease.', array(':url' => 'https://www.google.com/recaptcha')); break; } } diff --git a/src/Form/ReCaptchaAdminSettingsForm.php b/src/Form/ReCaptchaAdminSettingsForm.php index f30c6d6c774c28620eb1a03ba5c3bf9d5d565b58..f7def9427a15d64b70a8a939f6a3adeb532ad3ec 100644 --- a/src/Form/ReCaptchaAdminSettingsForm.php +++ b/src/Form/ReCaptchaAdminSettingsForm.php @@ -43,7 +43,7 @@ class ReCaptchaAdminSettingsForm extends ConfigFormBase { $form['general']['recaptcha_site_key'] = [ '#default_value' => $config->get('site_key'), - '#description' => t('The site key given to you when you register for reCAPTCHA.', ['@url' => 'http://www.google.com/recaptcha/admin']), + '#description' => t('The site key given to you when you register for reCAPTCHA.', [':url' => 'http://www.google.com/recaptcha/admin']), '#maxlength' => 40, '#required' => TRUE, '#title' => t('Site key'), @@ -52,7 +52,7 @@ class ReCaptchaAdminSettingsForm extends ConfigFormBase { $form['general']['recaptcha_secret_key'] = [ '#default_value' => $config->get('secret_key'), - '#description' => t('The secret key given to you when you register for reCAPTCHA.', ['@url' => 'http://www.google.com/recaptcha/admin']), + '#description' => t('The secret key given to you when you register for reCAPTCHA.', [':url' => 'http://www.google.com/recaptcha/admin']), '#maxlength' => 40, '#required' => TRUE, '#title' => t('Secret key'), @@ -97,7 +97,7 @@ class ReCaptchaAdminSettingsForm extends ConfigFormBase { ]; $form['widget']['recaptcha_tabindex'] = [ '#default_value' => $config->get('widget.tabindex'), - '#description' => t('Set the tabindex of the widget and challenge (Default = 0). If other elements in your page use tabindex, it should be set to make user navigation easier.', ['@tabindex' => Url::fromUri('http://www.w3.org/TR/html4/interact/forms.html', ['fragment' => 'adef-tabindex'])->toString()]), + '#description' => t('Set the tabindex of the widget and challenge (Default = 0). If other elements in your page use tabindex, it should be set to make user navigation easier.', [':tabindex' => Url::fromUri('http://www.w3.org/TR/html4/interact/forms.html', ['fragment' => 'adef-tabindex'])->toString()]), '#maxlength' => 4, '#title' => t('Tabindex'), '#type' => 'textfield',