commit 228df953dbf3b8512a8b513b7bbc7acf76e3babb Author: Joel Pittet Date: Sat Sep 19 02:20:19 2015 +0200 all the fixes diff --git a/core/modules/locale/css/locale.admin.css b/core/modules/locale/css/locale.admin.css index 741ab9b..0d1e42e 100644 --- a/core/modules/locale/css/locale.admin.css +++ b/core/modules/locale/css/locale.admin.css @@ -123,6 +123,14 @@ font-size: 0.9em; color: #666; } +.locale-translation-update__details ul { + margin: 0; + padding: 0; +} +.locale-translation-update__details li { + margin: 0 0 0.25em 1.5em; + padding: 0; +} @media screen and (max-width: 40em) { #locale-translation-status-form th.title { width: 20%; diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index fb81382..c0e2b65 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -54,14 +54,14 @@ function locale_translation_manual_status() { function template_preprocess_locale_translation_update_info(array &$variables) { // Build output for available updates. if (isset($variables['updates'])) { - $variables['available_updates_list'] = array(); + $variables['available_updates'] = []; if ($variables['updates']) { foreach ($variables['updates'] as $update) { $variables['modules'][] = $update['name']; - // Format date for twig template. + // Format date for Twig template. $release = $update; - $release['date'] = format_date($update['timestamp'], 'html_date'); - $variables['available_updates_list'][] = $release; + $release['date'] = \Drupal::service('date.formatter')->format($update['timestamp'], 'html_date'); + $variables['available_updates'][] = $release; } } } 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 ed94ca4..b3f81e1 100644 --- a/core/modules/locale/templates/locale-translation-update-info.html.twig +++ b/core/modules/locale/templates/locale-translation-update-info.html.twig @@ -6,9 +6,8 @@ * Displays translation status information per language. * * Available variables: - * - modules: A list of names of modules that have available translation - * updates. - * - details: Rendered list of the translation details. + * - modules: A list of modules names that have available translation updates. + * - available_updates: A list of available translation updates. * - not_found: A list of modules missing translation updates. * * @see template_preprocess_locale_translation_update_info() @@ -30,11 +29,11 @@ {%- endtrans -%} {% endif %} - {% if available_updates_list or not_found %} + {% if available_updates or not_found %}
- {% if available_updates_list %} + {% if available_updates %} @@ -44,11 +43,11 @@ Prefix the missing updates list if there is an available updates lists before it. #} - {% if available_updates_list %} + {% if available_updates %} {{ 'Missing translations for:'|t }} {% endif %} {% if not_found %} -