diff --git a/src/Plugin/Field/FieldFormatter/GalleryFormatterFormatter.php b/src/Plugin/Field/FieldFormatter/GalleryFormatterFormatter.php
index 8e875f5..10efbca 100644
--- a/src/Plugin/Field/FieldFormatter/GalleryFormatterFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/GalleryFormatterFormatter.php
@@ -45,17 +45,17 @@ class GalleryFormatterFormatter extends ResponsiveImageFormatter implements Cont
     }
     $elements['slide_style'] = [
       '#type' => 'select',
-      '#title' => t('Select the slide style'),
+      '#title' => $this->t('Select the slide style'),
       '#options' => $options,
       '#default_value' => $this->getSetting('slide_style'),
-      '#description' => t('Select the imagecache style you would like to show when clicked on the thumbnail.'),
+      '#description' => $this->t('Select the imagecache style you would like to show when clicked on the thumbnail.'),
     ];
     $elements['thumb_style'] = [
       '#type' => 'select',
-      '#title' => t('Select the thumbnail style'),
+      '#title' => $this->t('Select the thumbnail style'),
       '#options' => $options,
       '#default_value' => $this->getSetting('thumb_style'),
-      '#description' => t('Select the imagecache style you would like to show for the thumbnails list.'),
+      '#description' => $this->t('Select the imagecache style you would like to show for the thumbnails list.'),
     ];
     $style_options = ['@todo'];
     // @TODO Implement a plugin type instead of defining a new hook.
@@ -68,10 +68,10 @@ class GalleryFormatterFormatter extends ResponsiveImageFormatter implements Cont
     ksort($style_options);
     $elements['style'] = [
       '#type' => 'select',
-      '#title' => t('Style'),
-      '#options' => ['nostyle' => t('No style')] + $style_options,
+      '#title' => $this->t('Style'),
+      '#options' => ['nostyle' => $this->t('No style')] + $style_options,
       '#default_value' => $this->getSetting('style'),
-      '#description' => t('Choose the gallery style.'),
+      '#description' => $this->t('Choose the gallery style.'),
     ];
     $modal_options = [];
     // integration with other modules for jQuery modal windows
@@ -90,10 +90,10 @@ class GalleryFormatterFormatter extends ResponsiveImageFormatter implements Cont
     $modal_options['none'] = t('Do not use modal');
     $elements['modal'] = [
      '#type' => 'select',
-     '#title' => t('Use jQuery modal for full image link'),
+     '#title' => $this->t('Use jQuery modal for full image link'),
      '#options' => $modal_options,
      '#default_value' => $this->getSetting('modal'),
-     '#description' => t("Select which jQuery modal module you'd like to display the full link image in, if any."),
+     '#description' => $this->t("Select which jQuery modal module you'd like to display the full link image in, if any."),
     ];
     return $elements;
   }
@@ -106,13 +106,13 @@ class GalleryFormatterFormatter extends ResponsiveImageFormatter implements Cont
     $summary = [];
 
     if (!empty($settings['slide_style']) || !empty($settings['thumb_style'])) {
-      $summary[] = t('Slides style: @value', ['@value' => $settings['slide_style']]);
-      $summary[] = t('Thumbnails style: @value', ['@value' => $settings['thumb_style']]);
-      $summary[] = t('Gallery style: @value', ['@value' => $settings['style']]);
-      $summary[] = t('Modal: @value', ['@value' => $settings['modal']]);
+      $summary[] = $this->t('Slides style: @value', ['@value' => $settings['slide_style']]);
+      $summary[] = $this->t('Thumbnails style: @value', ['@value' => $settings['thumb_style']]);
+      $summary[] = $this->t('Gallery style: @value', ['@value' => $settings['style']]);
+      $summary[] = $this->t('Modal: @value', ['@value' => $settings['modal']]);
     }
     else {
-      $summary[] = t('Customize your options for the jQuery Gallery.');
+      $summary[] = $this->t('Customize your options for the jQuery Gallery.');
     }
 
     return $summary;
