diff --git a/core/modules/content_translation/content_translation.install b/core/modules/content_translation/content_translation.install index 4c33938..47c00e7 100644 --- a/core/modules/content_translation/content_translation.install +++ b/core/modules/content_translation/content_translation.install @@ -18,12 +18,12 @@ function content_translation_install() { // Translation works when at least two languages are added. if (count(\Drupal::languageManager()->getLanguages()) < 2) { // @todo: Switch to Url::fromRoute() once https://www.drupal.org/node/2589967 is resolved. - $t_args = [':language_url' => Url::fromUri('internal:/admin/config/regional/language')->toUriString()]; + $t_args = [':language_url' => Url::fromUri('internal:/admin/config/regional/language')->toString()]; $message = t('This site has only a single language enabled. Add at least one more language in order to translate content.', $t_args); drupal_set_message($message, 'warning'); } // Point the user to the content translation settings. - $t_args = [':settings_url' => Url::fromUri('internal:/admin/config/regional/content-language')->toUriString()]; + $t_args = [':settings_url' => Url::fromUri('internal:/admin/config/regional/content-language')->toString()]; $message = t('Enable translation for content types, taxonomy vocabularies, accounts, or any other element you wish to translate.', $t_args); drupal_set_message($message, 'warning'); }