diff --git a/src/Plugin/Field/FieldFormatter/BootstrapCarouselImageFormatter.php b/src/Plugin/Field/FieldFormatter/BootstrapCarouselImageFormatter.php
index 0cbbf13..5374751 100644
--- a/src/Plugin/Field/FieldFormatter/BootstrapCarouselImageFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/BootstrapCarouselImageFormatter.php
@@ -1,10 +1,5 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\bootstrap_carousel_if\Plugin\Field\FieldFormatter\BootstrapCarouselImageFormatter.
- */
-
 namespace Drupal\bootstrap_carousel_if\Plugin\Field\FieldFormatter;
 
 use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatterBase;
@@ -112,42 +107,42 @@ class BootstrapCarouselImageFormatter extends ImageFormatterBase implements Cont
   public function settingsForm(array $form, FormStateInterface $form_state) {
   	$element = array();
     $element['interval'] = array(
-      '#title' => t('Interval'),
+      '#title' => $this->t('Interval'),
       '#type' => 'textfield',
       '#default_value' => $this->getSetting('interval'),
       '#size' => 10,
       '#required' => TRUE,
     );
     $element['pause'] = array(
-      '#title' => t('Pause on hover'),
+      '#title' => $this->t('Pause on hover'),
       '#type' => 'select',
       '#options' => array(0 => 'no', 'hover' => 'yes'),
       '#default_value' => $this->getSetting('pause'),
     );
     $element['wrap'] = array(
-      '#title' => t('Wrap'),
+      '#title' => $this->t('Wrap'),
       '#type' => 'select',
       '#options' => array(0 => 'no', 1 => 'yes'),
       '#default_value' => $this->getSetting('wrap'),
     );
     $element['indicators'] = array(
-      '#title' => t('Indicators'),
+      '#title' => $this->t('Indicators'),
       '#type' => 'select',
       '#options' => array(0 => 'no', 1 => 'yes'),
       '#default_value' => $this->getSetting('indicators'),
     );
     $element['controls'] = array(
-      '#title' => t('Controls'),
+      '#title' => $this->t('Controls'),
       '#type' => 'select',
       '#options' => array(0 => 'no', 1 => 'yes'),
       '#default_value' => $this->getSetting('controls'),
     );
     $image_styles = image_style_options(FALSE);
     $element['image_style'] = array(
-      '#title' => t('Image style'),
+      '#title' => $this->t('Image style'),
       '#type' => 'select',
       '#default_value' => $this->getSetting('image_style'),
-      '#empty_option' => t('None (original image)'),
+      '#empty_option' => $this->t('None (original image)'),
       '#options' => $image_styles,
       '#description' => array(
         '#markup' => $this->linkGenerator->generate($this->t('Configure Image Styles'), new Url('entity.image_style.collection')),
@@ -173,13 +168,13 @@ class BootstrapCarouselImageFormatter extends ImageFormatterBase implements Cont
     // their styles in code.
     $image_style_setting = $settings['image_style'];
     if (isset($image_styles[$image_style_setting])) {
-      $summary[] = t('Bootstrap carousel : @style', array('@style' => $image_styles[$image_style_setting]));
+      $summary[] = $this->t('Bootstrap carousel : @style', array('@style' => $image_styles[$image_style_setting]));
     }
     else {
       $summary[] = t('Bootstrap carousel : Original image');
     }
 
-    $summary[] = t('Interval @interval, @pause, @wrap, @indicators, @controls', array(
+    $summary[] = $this->t('Interval @interval, @pause, @wrap, @indicators, @controls', array(
       '@interval' => $settings['interval'],
       '@pause' => $settings['pause'] ? t('pause on hover') : t('no pause'),
       '@wrap' => $settings['wrap'] ? t('with wrap') : t('no wrap'),
