diff --git a/core/modules/content_translation/content_translation.pages.inc b/core/modules/content_translation/content_translation.pages.inc index b5e328e..2e5fa6b 100644 --- a/core/modules/content_translation/content_translation.pages.inc +++ b/core/modules/content_translation/content_translation.pages.inc @@ -23,7 +23,7 @@ function content_translation_overview(EntityInterface $entity) { $languages = language_list(); $original = $entity->getUntranslated()->language()->id; $translations = $entity->getTranslationLanguages(); - $administrator = user_access('administer languages'); + $administrator = \Drupal::currentUser()->hasPermission('administer languages'); $rel = array(); foreach (array('canonical', 'edit-form', 'drupal:content-translation-overview') as $name) { @@ -123,7 +123,7 @@ function content_translation_overview(EntityInterface $entity) { $links['add']['title'] = t('Add'); } elseif ($administrator) { - $links['nofields'] = array('title' => t('No translatable fields'), 'href' => 'admin/config/regional/content-language', 'language' => $language); + $links['nofields'] = array('title' => t('No translatable fields'), 'route_name' => 'language.content_settings_page', 'language' => $language); } }