diff --git a/core/modules/language/config/install/tour.tour.language-edit.yml b/core/modules/language/config/install/tour.tour.language-edit.yml index 5b16513..8b5d4e1 100644 --- a/core/modules/language/config/install/tour.tour.language-edit.yml +++ b/core/modules/language/config/install/tour.tour.language-edit.yml @@ -23,7 +23,7 @@ tips: id: language-edit-label plugin: text label: 'Language name' - body: '

The language name is used throughout the site for all users and is typically written in English and then translated using Configuration Translation. If you want to provide the name in another language, you have to set the language of the configuration to that other language first.

' + body: '

The language name is used throughout the site for all users and is typically written in English and then translated using Configuration Translation. If you want to provide the name in another language, you can use the Configuration Translation interface.

' weight: 3 attributes: data-id: edit-label diff --git a/core/modules/language/language.module b/core/modules/language/language.module index 9a55958..fa7eb69 100644 --- a/core/modules/language/language.module +++ b/core/modules/language/language.module @@ -524,7 +524,7 @@ function language_tour_tips_alter(array &$tour_tips, EntityInterface $entity) { $additional_overview = t("This page also provides an overview of how much of the site's interface has been translated for each configured language."); } else { - $additional_overview = t("If the Interface Translation module is enabled, this page will provide an overview of how much of the site\'s interface has been translated for each configured language."); + $additional_overview = t("If the Interface Translation module is enabled, this page will provide an overview of how much of the site's interface has been translated for each configured language."); } $tour_tip->set('body', $tour_tip->get('body') . '

' . $additional_overview . '

'); } @@ -532,10 +532,10 @@ function language_tour_tips_alter(array &$tour_tips, EntityInterface $entity) { $additional_continue = ''; $additional_modules = array(); if (!Drupal::service('module_handler')->moduleExists('locale')) { - $additional_modules[] = t('Interface Translation'); + $additional_modules[] = Drupal::service('module_handler')->getName('locale'); } - if (!Drupal::service('module_handler')->moduleExists('translation_entity')) { - $additional_modules[] = t('Content Translation'); + if (!Drupal::service('module_handler')->moduleExists('content_translation')) { + $additional_modules[] = Drupal::service('module_handler')->getName('content_translation'); } if (!empty($additional_modules)) { $additional_continue = t('Depending on your site features, additional modules that you might want to enable are:') . '