Skip to content
Snippets Groups Projects
Commit 24f3e119 authored by catch's avatar catch
Browse files

Issue #2047227 by StephaneQ, SeanKelly, richardj: Update templates to leverage...

Issue #2047227 by StephaneQ, SeanKelly, richardj: Update templates to leverage support for the Twig {% trans %} tag extension.
parent 1eb27ae0
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -19,5 +19,5 @@
<h3>{{ title }}</h3>
{{ summary_list }}
<div class="links">
<a href="{{ source_url }}">{{ 'More<span class="visually-hidden"> posts about %title</span>'|t({ '%title': title }) }}</a>
<a href="{{ source_url }}">{% trans %}More<span class="visually-hidden"> posts about {{ title|placeholder }}</span>{% endtrans %}</a>
</div>
......@@ -17,7 +17,7 @@
#}
{% if title %}
<h4 class="label">
{{ '!title!required'|t({ '!title': title, '!required': required }) }}
{% trans %}{{ title|passthrough }}{{ required|passthrough }}{% endtrans %}
</h4>
{% endif %}
{{ content }}
......
......@@ -17,7 +17,7 @@
*/
#}
{% if time %}
<span class="submitted">{{ 'By !author @time ago'|t({'@time': time, '!author': author}) }}</span>
<span class="submitted">{% trans %}By {{ author|passthrough }} {{ time }} ago{% endtrans %}</span>
{% else %}
{{ 'n/a'|t }}
{% endif %}
......@@ -17,7 +17,7 @@
<div class="locale checked">
<p>
{% if last_checked %}
{{ 'Last checked: @time ago'|t({'@time': time}) }}
{% trans %} Last checked: {{ time }} ago {% endtrans %}
{% else %}
{{ 'Last checked: never'|t }}
{% endif %}
......
......@@ -21,7 +21,8 @@
<div class="inner" tabindex="0" role="button">
<span class="update-description-prefix visually-hidden">Show description</span>
{% if modules %}
<span class="text">{{ 'Updates for: @modules'|t({'@modules': modules|join(', ')}) }}</span>
{% set module_list = modules|join(', ') %}
<span class="text">{% trans %}Updates for: {{ module_list }}{% endtrans %}</span>
{% elseif missing_updates_status %}
<span class="text">{{ missing_updates_status }}</span>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment