diff --git a/ckan/templates/package/search.html b/ckan/templates/package/search.html
index e58db9298e9..73326b159d5 100644
--- a/ckan/templates/package/search.html
+++ b/ckan/templates/package/search.html
@@ -75,15 +75,15 @@
{% set api_link = h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=3)) %}
{% set api_doc_link = h.link_to(_('API Docs'), 'http://docs.ckan.org/{0}/{1}/api.html'.format(request.environ.CKAN_LANG, g.ckan_doc_version)) %}
{% if g.dumps_url -%}
+ {% set dump_link = h.link_to(_('full {format} dump').format(format=g.dumps_format), g.dumps_url) %}
{% trans %}
- You can also access this registry using the {{ api_link }} (see {{ api_doc_link}}).
+ You can also access this registry using the {{ api_link }} (see {{ api_doc_link }}) or download a {{ dump_link }}.
{% endtrans %}
{% else %}
- {% set dump = h.link_to(_('full {format} dump').format(format=g.dumps_format), g.dumps_url) %}
{% trans %}
- You can also access this registry using the {{ api_link }} (see {{ api_doc_link }}) or download a {{ dump_link }}.
+ You can also access this registry using the {{ api_link }} (see {{ api_doc_link}}).
{% endtrans %}
- {%- endif %}.
+ {%- endif %}