Skip to content

Commit 1f958e6

Browse files
avdata99wardi
andauthored
Update ckanext/datastore/templates/package/resource_read.html
Co-authored-by: Ian Ward <ian@excess.org>
1 parent e8320a5 commit 1f958e6

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

ckanext/datastore/templates/package/resource_read.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
{% for fmt in h.datastore_dump_formats(resource_id=res.id) %}
1515
<li>
1616
{% if fmt.available %}
17-
<a class="dropdown-item" href="{{ h.url_for('datastore.dump', resource_id=res.id, format=fmt.name, bom=True) }}"
18-
target="_blank" rel="noreferrer"><span>{{ fmt.label }}</span></a>
17+
<a class="dropdown-item" href="{{ h.url_for('datastore.dump', resource_id=res.id, format=fmt.name, bom=True) }}"
18+
target="_blank" rel="noreferrer"><span>{{ fmt.label }}</span></a>
1919
{% else %}
20-
<span class="dropdown-item disabled" title="{{ fmt.reason }}" aria-disabled="true">
21-
{{ fmt.label }} <small class="text-muted">({{ _('unavailable') }})</small>
22-
</span>
20+
<span class="dropdown-item disabled" title="{{ fmt.reason }}" aria-disabled="true">
21+
{% trans format_label=fmt.label %}
22+
{{ format_label }} <small class="text-muted">(unavailable)</small>
23+
{% endtrans %}
24+
</span>
2325
{% endif %}
2426
</li>
2527
{% endfor %}

0 commit comments

Comments
 (0)