diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php
index 06fed4b1b0..6e089de80a 100644
--- a/core/lib/Drupal/Core/Config/ConfigImporter.php
+++ b/core/lib/Drupal/Core/Config/ConfigImporter.php
@@ -549,7 +549,7 @@ protected function processExtensions(&$context) {
     $operation = $this->getNextExtensionOperation();
     if (!empty($operation)) {
       $this->processExtension($operation['type'], $operation['op'], $operation['name']);
-      $context['message'] = t('Synchronizing extensions: @op @name.', ['@op' => $operation['op'], '@name' => $operation['name']]);
+      $context['message'] = $this->t('Synchronizing extensions: @op @name.', ['@op' => $operation['op'], '@name' => $operation['name']]);
       $processed_count = count($this->processedExtensions['module']['install']) + count($this->processedExtensions['module']['uninstall']);
       $processed_count += count($this->processedExtensions['theme']['uninstall']) + count($this->processedExtensions['theme']['install']);
       $context['finished'] = $processed_count / $this->totalExtensionsToProcess;
@@ -645,7 +645,7 @@ protected function finish(&$context) {
     // The import is now complete.
     $this->lock->release(static::LOCK_NAME);
     $this->reset();
-    $context['message'] = t('Finalizing configuration synchronization.');
+    $context['message'] = $this->t('Finalizing configuration synchronization.');
     $context['finished'] = 1;
   }
 
diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php b/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php
index d959881eac..64768d05a2 100644
--- a/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php
+++ b/core/lib/Drupal/Core/Entity/EntityDisplayRepository.php
@@ -187,7 +187,8 @@ public function getFormModeOptionsByBundle($entity_type_id, $bundle) {
    *   An array of display mode labels, keyed by the display mode ID.
    */
   protected function getDisplayModeOptions($display_type, $entity_type_id) {
-    $options = ['default' => t('Default')];
+    $options = ['default' => $this->t('Default')];
+
     foreach ($this->getDisplayModesByEntityType($display_type, $entity_type_id) as $mode => $settings) {
       $options[$mode] = $settings['label'];
     }
diff --git a/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php b/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
index 17031199e1..a98a130c7c 100644
--- a/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
+++ b/core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php
@@ -129,7 +129,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
 
     $form['expanded'] = [
       '#type' => 'checkbox',
-      '#title' => t('Show as expanded'),
+      '#title' => $this->t('Show as expanded'),
       '#description' => $this->t('If selected and this menu link has children, the menu will always appear expanded.'),
       '#default_value' => $this->menuLink->isExpanded(),
     ];
diff --git a/core/modules/language/tests/language_test/src/Controller/LanguageTestController.php b/core/modules/language/tests/language_test/src/Controller/LanguageTestController.php
index 2737f31cbf..c2e21b880e 100644
--- a/core/modules/language/tests/language_test/src/Controller/LanguageTestController.php
+++ b/core/modules/language/tests/language_test/src/Controller/LanguageTestController.php
@@ -75,7 +75,7 @@ public function typeLinkActiveClass() {
     return [
       'no_language' => [
         '#type' => 'link',
-        '#title' => t('Link to the current path with no langcode provided.'),
+        '#title' => $this->t('Link to the current path with no langcode provided.'),
         '#url' => Url::fromRoute('<current>'),
         '#options' => [
           'attributes' => [
@@ -86,7 +86,7 @@ public function typeLinkActiveClass() {
       ],
       'fr' => [
         '#type' => 'link',
-        '#title' => t('Link to a French version of the current path.'),
+        '#title' => $this->t('Link to a French version of the current path.'),
         '#url' => Url::fromRoute('<current>'),
         '#options' => [
           'language' => $languages['fr'],
@@ -98,7 +98,7 @@ public function typeLinkActiveClass() {
       ],
       'en' => [
         '#type' => 'link',
-        '#title' => t('Link to an English version of the current path.'),
+        '#title' => $this->t('Link to an English version of the current path.'),
         '#url' => Url::fromRoute('<current>'),
         '#options' => [
           'language' => $languages['en'],
diff --git a/core/modules/node/src/NodePermissions.php b/core/modules/node/src/NodePermissions.php
index 1996360ae1..0a011a998c 100644
--- a/core/modules/node/src/NodePermissions.php
+++ b/core/modules/node/src/NodePermissions.php
@@ -62,11 +62,11 @@ protected function buildPermissions(NodeType $type) {
       ],
       "view $type_id revisions" => [
         'title' => $this->t('%type_name: View revisions', $type_params),
-        'description' => t('To view a revision, you also need permission to view the content item.'),
+        'description' => $this->t('To view a revision, you also need permission to view the content item.'),
       ],
       "revert $type_id revisions" => [
         'title' => $this->t('%type_name: Revert revisions', $type_params),
-        'description' => t('To revert a revision, you also need permission to edit the content item.'),
+        'description' => $this->t('To revert a revision, you also need permission to edit the content item.'),
       ],
       "delete $type_id revisions" => [
         'title' => $this->t('%type_name: Delete revisions', $type_params),
