diff --git a/core/modules/language/src/Plugin/Block/LanguageBlock.php b/core/modules/language/src/Plugin/Block/LanguageBlock.php index 61c9152..1e7c26b 100644 --- a/core/modules/language/src/Plugin/Block/LanguageBlock.php +++ b/core/modules/language/src/Plugin/Block/LanguageBlock.php @@ -138,7 +138,7 @@ public function blockForm($form, FormStateInterface $form_state) { $languages = $this->languageManager->getLanguages(); // Warn the user that if only one language is enabled the block won't appear. if (count($languages) == 1) { - drupal_set_message($this->t('Only one language is enabled. Therefore the language switcher block will not be shown.'), 'warning'); + drupal_set_message($this->t('Only one language is enabled. Therefore the language switcher block will not be shown. To add a new language on the site, go to @language-link.', array('@language-link' => \Drupal::l(t('Language list'), Url::fromRoute('entity.configurable_language.collection')))), 'warning'); } // Warn the user that if there are no links to show because language-url // method detection isn't enabled, the block won't appear.