Commit 24f3e119 authored by catch's avatar catch

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
......@@ -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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment