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 @@ ...@@ -19,5 +19,5 @@
<h3>{{ title }}</h3> <h3>{{ title }}</h3>
{{ summary_list }} {{ summary_list }}
<div class="links"> <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> </div>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#} #}
{% if title %} {% if title %}
<h4 class="label"> <h4 class="label">
{{ '!title!required'|t({ '!title': title, '!required': required }) }} {% trans %}{{ title|passthrough }}{{ required|passthrough }}{% endtrans %}
</h4> </h4>
{% endif %} {% endif %}
{{ content }} {{ content }}
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
*/ */
#} #}
{% if time %} {% 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 %} {% else %}
{{ 'n/a'|t }} {{ 'n/a'|t }}
{% endif %} {% endif %}
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="locale checked"> <div class="locale checked">
<p> <p>
{% if last_checked %} {% if last_checked %}
{{ 'Last checked: @time ago'|t({'@time': time}) }} {% trans %} Last checked: {{ time }} ago {% endtrans %}
{% else %} {% else %}
{{ 'Last checked: never'|t }} {{ 'Last checked: never'|t }}
{% endif %} {% endif %}
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
<div class="inner" tabindex="0" role="button"> <div class="inner" tabindex="0" role="button">
<span class="update-description-prefix visually-hidden">Show description</span> <span class="update-description-prefix visually-hidden">Show description</span>
{% if modules %} {% 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 %} {% elseif missing_updates_status %}
<span class="text">{{ missing_updates_status }}</span> <span class="text">{{ missing_updates_status }}</span>
{% endif %} {% 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