diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index c0e2b65..83bdebb 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -52,18 +52,8 @@ function locale_translation_manual_status() { * @see \Drupal\locale\Form\TranslationStatusForm */ function template_preprocess_locale_translation_update_info(array &$variables) { - // Build output for available updates. - if (isset($variables['updates'])) { - $variables['available_updates'] = []; - if ($variables['updates']) { - foreach ($variables['updates'] as $update) { - $variables['modules'][] = $update['name']; - // Format date for Twig template. - $release = $update; - $release['date'] = \Drupal::service('date.formatter')->format($update['timestamp'], 'html_date'); - $variables['available_updates'][] = $release; - } - } + foreach ($variables['updates'] as $update) { + $variables['modules'][] = $update['name']; } } diff --git a/core/modules/locale/templates/locale-translation-update-info.html.twig b/core/modules/locale/templates/locale-translation-update-info.html.twig index b3f81e1..a66ee54 100644 --- a/core/modules/locale/templates/locale-translation-update-info.html.twig +++ b/core/modules/locale/templates/locale-translation-update-info.html.twig @@ -7,7 +7,7 @@ * * Available variables: * - modules: A list of modules names that have available translation updates. - * - available_updates: A list of available translation updates. + * - updates: A list of available translation updates. * - not_found: A list of modules missing translation updates. * * @see template_preprocess_locale_translation_update_info() @@ -34,7 +34,7 @@ {% if available_updates %} {% endif %}