locale-translation-last-check.html.twig

Same filename in this branch
  1. 11.x core/themes/stable9/templates/admin/locale-translation-last-check.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/admin/locale-translation-last-check.html.twig
  2. 9 core/themes/stable/templates/admin/locale-translation-last-check.html.twig
  3. 9 core/modules/locale/templates/locale-translation-last-check.html.twig
  4. 8.9.x core/themes/stable/templates/admin/locale-translation-last-check.html.twig
  5. 8.9.x core/modules/locale/templates/locale-translation-last-check.html.twig
  6. 10 core/themes/stable9/templates/admin/locale-translation-last-check.html.twig
  7. 10 core/modules/locale/templates/locale-translation-last-check.html.twig

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 also

template_preprocess_locale_translation_last_check()

1 theme call to locale-translation-last-check.html.twig
TranslationStatusForm::buildForm in core/modules/locale/src/Form/TranslationStatusForm.php
Form builder for displaying the current translation status.

File

core/modules/locale/templates/locale-translation-last-check.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the last time we checked for update data.
  5. *
  6. * Available variables:
  7. * - last_checked: Whether or not locale updates have been checked before.
  8. * - time: The formatted time ago when the site last checked for available
  9. * updates.
  10. * - link: A link to manually check available updates.
  11. *
  12. * @see template_preprocess_locale_translation_last_check()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <div class="locale checked">
  18. <p>
  19. {% if last_checked %}
  20. {% trans %} Last checked: {{ time }} ago {% endtrans %}
  21. {% else %}
  22. {{ 'Last checked: never'|t }}
  23. {% endif %}
  24. <span class="check-manually">({{ link }})</span></p>
  25. </div>

Related topics


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.