diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index b113b86..cbe7acf 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -535,7 +535,6 @@ function locale_translation_status_form($form, &$form_state) { uasort($options, 'drupal_sort_title'); } - $last_checked = Drupal::state()->get('locale.translation_last_checked'); $form['last_checked'] = array( '#theme' => 'locale_translation_last_check', @@ -754,10 +753,10 @@ function theme_locale_translate_edit_form_strings($variables) { */ function template_preprocess_locale_translation_update_info(&$variables) { $details = array(); + $releases = array(); // Build output for available updates. if (isset($variables['updates'])) { - $releases = array(); if ($variables['updates']) { foreach ($variables['updates'] as $update) { $modules[] = $update['name']; @@ -765,7 +764,6 @@ function template_preprocess_locale_translation_update_info(&$variables) { } $variables['modules'] = $modules; } - $details['available_updates_list'] = array( '#theme' => 'item_list', '#items' => $releases, @@ -776,7 +774,6 @@ function template_preprocess_locale_translation_update_info(&$variables) { if (isset($variables['not_found'])) { $variables['missing_updates_status'] = format_plural(count($variables['not_found']), 'Missing translations for one project', 'Missing translations for @count projects'); if ($variables['not_found']) { - $releases = array(); foreach ($variables['not_found'] as $update) { $version = $update['version'] ? $update['version'] : t('no version'); $releases[] = t('@module (@version).', array('@module' => $update['name'], '@version' => $version)) . ' ' . $update['info'];