diff --git a/src/Form/SecureLoginConfigForm.php b/src/Form/SecureLoginConfigForm.php
index 2a83b38..810e677 100644
--- a/src/Form/SecureLoginConfigForm.php
+++ b/src/Form/SecureLoginConfigForm.php
@@ -41,26 +41,26 @@ class SecureLoginConfigForm extends ConfigFormBase {
 
     $form['base_url'] = array(
       '#type'          => 'textfield',
-      '#title'         => t('Secure base URL'),
+      '#title'         => $this->t('Secure base URL'),
       '#default_value' => $conf->get('base_url'),
-      '#description'   => t('The base URL for secure pages. Leave blank to allow Drupal to determine it automatically (recommended). It is not allowed to have a trailing slash; Drupal will add it for you. For example: %base_secure_url%. Note that in order for cookies to work, the hostnames in the secure base URL and the insecure base URL must be in the same domain as per the appropriate setting in <code>settings.php</code>, which you may need to modify.', array('%base_secure_url%' => $base_secure_url)),
+      '#description'   => $this->t('The base URL for secure pages. Leave blank to allow Drupal to determine it automatically (recommended). It is not allowed to have a trailing slash; Drupal will add it for you. For example: %base_secure_url%. Note that in order for cookies to work, the hostnames in the secure base URL and the insecure base URL must be in the same domain as per the appropriate setting in <code>settings.php</code>, which you may need to modify.', array('%base_secure_url%' => $base_secure_url)),
     );
     $form['secure_forms'] = array(
       '#type'          => 'checkbox',
-      '#title'         => t('Redirect form pages to secure URL'),
+      '#title'         => $this->t('Redirect form pages to secure URL'),
       '#default_value' => $conf->get('secure_forms'),
-      '#description'   => t('If enabled, any pages containing the forms enabled below will be redirected to the secure URL. Users can be assured that they are entering their private data on a secure URL, the contents of which have not been tampered with.'),
+      '#description'   => $this->t('If enabled, any pages containing the forms enabled below will be redirected to the secure URL. Users can be assured that they are entering their private data on a secure URL, the contents of which have not been tampered with.'),
     );
     $form['all_forms'] = array(
       '#type'          => 'checkbox',
-      '#title'         => t('Submit all forms to secure URL'),
+      '#title'         => $this->t('Submit all forms to secure URL'),
       '#default_value' => $conf->get('all_forms'),
-      '#description'   => t('If enabled, all forms will be submitted to the secure URL.'),
+      '#description'   => $this->t('If enabled, all forms will be submitted to the secure URL.'),
     );
     $form['forms'] = array(
       '#type'          => 'fieldset',
-      '#title'         => t('Forms'),
-      '#description'   => t('If checked, these forms will be submitted to the secure URL. Note, some forms must be checked to enforce secure authenticated sessions.'),
+      '#title'         => $this->t('Forms'),
+      '#description'   => $this->t('If checked, these forms will be submitted to the secure URL. Note, some forms must be checked to enforce secure authenticated sessions.'),
       '#states' => array(
         'invisible' => array(
           ':input[name="all_forms"]' => array('checked' => TRUE),
@@ -69,31 +69,31 @@ class SecureLoginConfigForm extends ConfigFormBase {
     );
     $form['forms']['form_user_form'] = array(
       '#type' => 'checkbox',
-      '#title' => t('User edit form'),
+      '#title' => $this->t('User edit form'),
       '#default_value' => $conf->get('form_user_form'),
     );
     $form['forms']['form_user_login_form'] = array(
       '#type' => 'checkbox',
-      '#title' => t('User login form'),
+      '#title' => $this->t('User login form'),
       '#default_value' => $conf->get('form_user_login_form'),
-      '#description' => t('Must be checked to enforce secure authenticated sessions.'),
+      '#description' => $this->t('Must be checked to enforce secure authenticated sessions.'),
     );
     $form['forms']['form_user_pass'] = array(
       '#type' => 'checkbox',
-      '#title' => t('User password request form'),
+      '#title' => $this->t('User password request form'),
       '#default_value' => $conf->get('form_user_pass'),
     );
     $form['forms']['form_user_pass_reset'] = array(
       '#type' => 'checkbox',
-      '#title' => t('User password reset form'),
+      '#title' => $this->t('User password reset form'),
       '#default_value' => $conf->get('form_user_pass_reset'),
-      '#description' => t('Must be checked to enforce secure authenticated sessions.'),
+      '#description' => $this->t('Must be checked to enforce secure authenticated sessions.'),
     );
     $form['forms']['form_user_register_form'] = array(
       '#type' => 'checkbox',
-      '#title' => t('User registration form'),
+      '#title' => $this->t('User registration form'),
       '#default_value' => $conf->get('form_user_register_form'),
-      '#description' => $this->config('user.settings')->get('verify_mail') ? '' : t('Must be checked to enforce secure authenticated sessions.'),
+      '#description' => $this->config('user.settings')->get('verify_mail') ? '' : $this->t('Must be checked to enforce secure authenticated sessions.'),
     );
     \Drupal::moduleHandler()->alter('securelogin', $forms);
     foreach ($forms as $id => $item) {
@@ -105,9 +105,9 @@ class SecureLoginConfigForm extends ConfigFormBase {
     }
     $form['other_forms'] = array(
       '#type' => 'textfield',
-      '#title' => t('Other forms to secure'),
+      '#title' => $this->t('Other forms to secure'),
       '#default_value' => $conf->get('other_forms'),
-      '#description' => t('List the form IDs of any other forms that you want secured, separated by a space. If the form has a base form ID, you must list the base form ID rather than the form ID.'),
+      '#description' => $this->t('List the form IDs of any other forms that you want secured, separated by a space. If the form has a base form ID, you must list the base form ID rather than the form ID.'),
       '#states' => array(
         'invisible' => array(
           ':input[name="all_forms"]' => array('checked' => TRUE),
@@ -154,10 +154,10 @@ class SecureLoginConfigForm extends ConfigFormBase {
       $form_state->setValue('base_url', NULL);
     }
     elseif (!UrlHelper::isValid($form_state->getValue('base_url'), TRUE)) {
-      $form_state->setErrorByName('base_url', t('The secure base URL must be a valid URL.'));
+      $form_state->setErrorByName('base_url', $this->t('The secure base URL must be a valid URL.'));
     }
     elseif (strtolower(parse_url($form_state->getValue('base_url'), PHP_URL_SCHEME)) !== 'https') {
-      $form_state->setErrorByName('base_url', t('The secure base URL must start with <em>https://</em>.'));
+      $form_state->setErrorByName('base_url', $this->t('The secure base URL must start with <em>https://</em>.'));
     }
 
     parent::validateForm($form, $form_state);
