diff --git a/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php b/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php index 6649493..a922585 100644 --- a/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php +++ b/core/modules/locale/lib/Drupal/locale/Controller/LocaleController.php @@ -64,6 +64,7 @@ public function checkTranslation() { return batch_process('admin/reports/translations'); } - return new RedirectResponse(url('admin/reports/translations', array('absolute' => TRUE))); + $url = $this->urlGenerator->generateFromPath('admin/reports/translations', array('absolute' => TRUE)); + return new RedirectResponse($url); } } diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 5a0e6d7..932b2a1 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -215,11 +215,6 @@ function locale_menu() { 'access arguments' => array('translate interface'), 'file' => 'locale.pages.inc', ); - $items['admin/reports/translations/check'] = array( - 'title' => 'Manual translation update check', - 'type' => MENU_CALLBACK, - 'route_name' => 'locale_check_translation', - ); return $items; }