diff --git a/core/modules/config_translation/src/Controller/ConfigTranslationController.php b/core/modules/config_translation/src/Controller/ConfigTranslationController.php index 9c7fd67..0791e6c 100644 --- a/core/modules/config_translation/src/Controller/ConfigTranslationController.php +++ b/core/modules/config_translation/src/Controller/ConfigTranslationController.php @@ -128,6 +128,9 @@ public function itemPage(Request $request, RouteMatchInterface $route_match, $pl $page['#title'] = $this->t('Translations for %label', array('%label' => $mapper->getTitle())); $languages = $this->languageManager->getLanguages(); + if (count($languages) == 1) { + drupal_set_message($this->t('In order to translate configuration, the website must have at least two languages.', array('@url' => $this->url('entity.configurable_language.collection')))); + } $original_langcode = $mapper->getLangcode(); if (!isset($languages[$original_langcode])) { // If the language is not configured on the site, create a dummy language