diff --git a/core/modules/locale/locale.admin.js b/core/modules/locale/locale.admin.js index 1afad13..69236e7 100644 --- a/core/modules/locale/locale.admin.js +++ b/core/modules/locale/locale.admin.js @@ -60,7 +60,7 @@ $tr.toggleClass('expanded'); // Change screen reader text. - $tr.find('.update-description-prefix').text(function () { + $tr.find('.js-update-description-prefix').text(function () { if ($tr.hasClass('expanded')) { return Drupal.t('Hide description'); } diff --git a/core/modules/locale/templates/locale-translation-last-check.html.twig b/core/modules/locale/templates/locale-translation-last-check.html.twig index a54574b..16da566 100644 --- a/core/modules/locale/templates/locale-translation-last-check.html.twig +++ b/core/modules/locale/templates/locale-translation-last-check.html.twig @@ -14,12 +14,12 @@ * @ingroup themeable */ #} -
+

{% if last_checked %} {% trans %} Last checked: {{ time }} ago {% endtrans %} {% else %} {{ 'Last checked: never'|t }} {% endif %} - ({{ link }})

+ ({{ link }})

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 15cb4ce..42f5508 100644 --- a/core/modules/locale/templates/locale-translation-update-info.html.twig +++ b/core/modules/locale/templates/locale-translation-update-info.html.twig @@ -18,15 +18,15 @@ * @ingroup themeable */ #} -
- Show description +
+ Show description {% if modules %} {% set module_list = modules|safe_join(', ') %} - {% trans %}Updates for: {{ module_list }}{% endtrans %} + {% trans %}Updates for: {{ module_list }}{% endtrans %} {% elseif missing_updates_status %} - {{ missing_updates_status }} + {{ missing_updates_status }} {% endif %} {% if details %} -
{{ details }}
+
{{ details }}
{% endif %}
diff --git a/core/themes/classy/templates/locale-translation-last-check.html.twig b/core/themes/classy/templates/locale-translation-last-check.html.twig new file mode 100644 index 0000000..a54574b --- /dev/null +++ b/core/themes/classy/templates/locale-translation-last-check.html.twig @@ -0,0 +1,25 @@ +{# +/** + * @file + * Default theme implementation for the last time we checked for update data. + * + * Available variables: + * - last_checked: Whether or not locale updates have been checked before. + * - time: The formatted time ago when the site last checked for available + * updates. + * - link: A link to manually check available updates. + * + * @see template_preprocess_locale_translation_last_check() + * + * @ingroup themeable + */ +#} +
+

+ {% if last_checked %} + {% trans %} Last checked: {{ time }} ago {% endtrans %} + {% else %} + {{ 'Last checked: never'|t }} + {% endif %} + ({{ link }})

+
diff --git a/core/themes/classy/templates/locale-translation-update-info.html.twig b/core/themes/classy/templates/locale-translation-update-info.html.twig new file mode 100644 index 0000000..82d58ab --- /dev/null +++ b/core/themes/classy/templates/locale-translation-update-info.html.twig @@ -0,0 +1,32 @@ +{# +/** + * @file + * Default theme implementation for displaying translation status information. + * + * 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. + * - missing_updates_status: If there are any modules that are missing + * translation updates, this variable will contain text indicating how many + * modules are missing translations. + * + * @see template_preprocess_locale_translation_update_info() + * + * @ingroup themeable + */ +#} +
+ Show description + {% if modules %} + {% set module_list = modules|safe_join(', ') %} + {% trans %}Updates for: {{ module_list }}{% endtrans %} + {% elseif missing_updates_status %} + {{ missing_updates_status }} + {% endif %} + {% if details %} +
{{ details }}
+ {% endif %} +