```
diff --git a/ckan/templates/package/search.html b/ckan/templates/package/search.html
index 3accc96..3f985d8 100644
--- a/ckan/templates/package/search.html
+++ b/ckan/templates/package/search.html
@@ -71,15 +71,20 @@
 
   <section class="module">
     <div class="module-content">
-      {% trans %}
       <small>
-        You can also access this registry using the {{ h.link_to(_('API'), h.url_for(cont
-        (see {{ h.link_to(_('API Docs'), 'http://docs.ckan.org/{0}/{1}/api.html'.format(r
+        {% set api_link = h.link_to(_('API'), h.url_for(controller='api', action='get_api
+        {% set api_doc_link = h.link_to(_('API Docs'), 'http://docs.ckan.org/{0}/{1}/api.
         {% if g.dumps_url -%}
-          or download a <a href="{{ g.dumps_url }}">full {{ g.dumps_format }} dump</a>
+          {% trans %}
+            You can also access this registry using the {{ api_link }} (see {{ api_doc_li
+          {% endtrans %}
+        {% else %}
+          {% set dump = h.link_to(_('full {format} dump').format(format=g.dumps_format), 
+          {% trans %}
+            You can also access this registry using the {{ api_link }} (see {{ api_doc_li
+          {% endtrans %}
         {%- endif %}.
       </small>
-      {% endtrans %}
     </div>
   </section>
 {% endblock %}
```

do you want me to commit this to this branch?