diff --git a/src/Form/SmartlookAdminSettingsForm.php b/src/Form/SmartlookAdminSettingsForm.php
index b58c0b8..276c5ed 100644
--- a/src/Form/SmartlookAdminSettingsForm.php
+++ b/src/Form/SmartlookAdminSettingsForm.php
@@ -68,7 +68,7 @@ class SmartlookAdminSettingsForm extends ConfigFormBase {
       '#group' => 'tracking_scope',
     ];
 
-    $description = t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", [
+    $description = $this->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", [
       '%blog'          => '/blog',
       '%blog-wildcard' => '/blog/*',
       '%front'         => '<front>'
@@ -78,15 +78,15 @@ class SmartlookAdminSettingsForm extends ConfigFormBase {
       '#type'          => 'radios',
       '#title'         => $this->t('Add tracking to specific pages'),
       '#options'       => [
-        t('Every page except the listed pages'),
-        t('The listed pages only'),
+        $this->t('Every page except the listed pages'),
+        $this->t('The listed pages only'),
       ],
       '#default_value' => $config->get('visibility.request_path_mode'),
     ];
 
     $form['tracking']['page_visibility_settings']['smartlook_tracking_visibility_request_path_pages'] = [
       '#type'          => 'textarea',
-      '#title'         => t('Pages'),
+      '#title'         => $this->t('Pages'),
       '#title_display' => 'invisible',
       '#default_value' => !empty($visibility_request_path_pages) ? $visibility_request_path_pages : '',
       '#description'   => $description,
@@ -107,7 +107,7 @@ class SmartlookAdminSettingsForm extends ConfigFormBase {
     $form_state->setValue('smartlook_tracking_visibility_request_path_pages', trim($form_state->getValue('smartlook_tracking_visibility_request_path_pages')));
 
     if (strlen($form_state->getValue('smartlook_tracking_account')) != 40) {
-      $form_state->setErrorByName('smartlook_tracking_account', t('A valid Smartlook ID must be 40 characters long.'));
+      $form_state->setErrorByName('smartlook_tracking_account', $this->t('A valid Smartlook ID must be 40 characters long.'));
     }
 
     // Verify that every path is prefixed with a slash, but don't check PHP
@@ -115,7 +115,7 @@ class SmartlookAdminSettingsForm extends ConfigFormBase {
     $pages = preg_split('/(\r\n?|\n)/', $form_state->getValue('smartlook_tracking_visibility_request_path_pages'));
     foreach ($pages as $page) {
       if (strpos($page, '/') !== 0 && $page !== '<front>') {
-        $form_state->setErrorByName('smartlook_tracking_visibility_request_path_pages', t('Path "@page" not prefixed with slash.', [
+        $form_state->setErrorByName('smartlook_tracking_visibility_request_path_pages', $this->t('Path "@page" not prefixed with slash.', [
           '@page' => $page,
         ]));
         break;
