diff --git a/modules/cart/src/Plugin/Block/CartBlock.php b/modules/cart/src/Plugin/Block/CartBlock.php
index 415ea7d..a83824d 100644
--- a/modules/cart/src/Plugin/Block/CartBlock.php
+++ b/modules/cart/src/Plugin/Block/CartBlock.php
@@ -138,7 +138,7 @@ class CartBlock extends BlockBase implements ContainerFactoryPluginInterface {
     $links = [];
     $links[] = [
       '#type' => 'link',
-      '#title' => t('Cart'),
+      '#title' => $this->t('Cart'),
       '#url' => Url::fromRoute('commerce_cart.page'),
     ];
 
diff --git a/modules/order/src/Form/OrderAddForm.php b/modules/order/src/Form/OrderAddForm.php
index 0fe80cb..cba1e98 100644
--- a/modules/order/src/Form/OrderAddForm.php
+++ b/modules/order/src/Form/OrderAddForm.php
@@ -64,7 +64,7 @@ class OrderAddForm extends FormBase {
     if ($store_query->count()->execute() == 0) {
       $link = Link::createFromRoute('Add a new store.', 'entity.commerce_store.add_page');
       $form['warning'] = [
-        '#markup' => t("Orders can't be created until a store has been added. @link", ['@link' => $link->toString()]),
+        '#markup' => $this->t("Orders can't be created until a store has been added. @link", ['@link' => $link->toString()]),
       ];
       return $form;
     }
@@ -108,7 +108,7 @@ class OrderAddForm extends FormBase {
     $form['actions']['#type'] = 'actions';
     $form['actions']['submit'] = [
       '#type' => 'submit',
-      '#value' => t('Create'),
+      '#value' => $this->t('Create'),
       '#button_type' => 'primary',
     ];
 
diff --git a/modules/order/src/Form/OrderReassignForm.php b/modules/order/src/Form/OrderReassignForm.php
index 6ab0041..15176be 100644
--- a/modules/order/src/Form/OrderReassignForm.php
+++ b/modules/order/src/Form/OrderReassignForm.php
@@ -82,7 +82,7 @@ class OrderReassignForm extends FormBase {
     $form['actions']['#type'] = 'actions';
     $form['actions']['submit'] = [
       '#type' => 'submit',
-      '#value' => t('Reassign order'),
+      '#value' => $this->t('Reassign order'),
       '#button_type' => 'primary',
     ];
 
