Update translation utilities to use config.extra.translations
Because the embedded translation system (config.languages.LANG.translations) still does not support inheritance of translation strings from theme.
This commit is contained in:
parent
88cd61d141
commit
6b886c16a7
|
@ -17,7 +17,7 @@
|
|||
<th>Test</th>
|
||||
{% for impl in config.extra.tests.pipelines[name].impl %}
|
||||
<th>{{ impl.name }}
|
||||
<br>{{ latest[loop.index0] | split(pat="-") | nth(n=0) | int | date(format=trans(key="dateFormat", lang=lang)) }}
|
||||
<br>{{ latest[loop.index0] | split(pat="-") | nth(n=0) | int | date(format=widgets::t(key="dateFormat", lang=lang)) }}
|
||||
</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
|
@ -50,7 +50,7 @@
|
|||
{% if loop.index > config.extra.tests.number|default(value=10) %}{% break %}{% endif %}
|
||||
{% set date_commit = run | split(pat="-") %}
|
||||
<details class="testrun">
|
||||
<summary><a href="{{ get_url(path=config.extra.tests.directory~"/"~impl.name~"/" ~ date_commit.0) }}">{{ date_commit[0] | int | date(format=trans(key="dateFormat", lang=lang)) }}</a> (commit {% if config.extra.tests.commiturls %}<a href="{{ config.extra.tests.commiturls[suite_index] }}{{ date_commit[1] }}">{{ date_commit[1] }}</a>{% else %}{{ date_commit[1] }}{% endif %})</summary>
|
||||
<summary><a href="{{ get_url(path=config.extra.tests.directory~"/"~impl.name~"/" ~ date_commit.0) }}">{{ date_commit[0] | int | date(format=widgets::t(key="dateFormat", lang=lang)) }}</a> (commit {% if config.extra.tests.commiturls %}<a href="{{ config.extra.tests.commiturls[suite_index] }}{{ date_commit[1] }}">{{ date_commit[1] }}</a>{% else %}{{ date_commit[1] }}{% endif %})</summary>
|
||||
<ul>
|
||||
{% for testname, result in data[suite_index][run] %}
|
||||
<li>{{ result }} {{ testname }}</li>
|
||||
|
|
Loading…
Reference in New Issue