From 7315cc848b099a12bec80e3797b3507b9859bdc7 Mon Sep 17 00:00:00 2001 From: tobes Date: Mon, 1 Jul 2013 13:30:33 +0100 Subject: [PATCH] [#1062] Remove lang from docs --- ckan/templates/admin/config.html | 2 +- ckan/templates/admin/index.html | 2 +- ckan/templates/footer.html | 2 +- ckan/templates/package/search.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ckan/templates/admin/config.html b/ckan/templates/admin/config.html index c1bec60febb..20e53a13a47 100644 --- a/ckan/templates/admin/config.html +++ b/ckan/templates/admin/config.html @@ -22,7 +22,7 @@

{% set about_url = h.url_for(controller='home', action='about') %} {% set home_url = h.url_for(controller='home', action='index') %} - {% set docs_url = "http://docs.ckan.org/{0}/{1}/theming.html".format(request.environ.CKAN_LANG[:2], g.ckan_doc_version) %} + {% set docs_url = "http://docs.ckan.org/{0}/theming.html".format(g.ckan_doc_version) %} {% trans %}

Site Title: This is the title of this CKAN instance It appears in various places throughout CKAN.

diff --git a/ckan/templates/admin/index.html b/ckan/templates/admin/index.html index c457a13ffe5..747a59e66dc 100644 --- a/ckan/templates/admin/index.html +++ b/ckan/templates/admin/index.html @@ -15,7 +15,7 @@

{{ _('What are sysadmins?') }}

- {% set docs_url = "http://docs.ckan.org/{0}/{1}/paster.html#sysadmin-give-sysadmin-rights".format(request.environ.CKAN_LANG[:2], g.ckan_doc_version) %} + {% set docs_url = "http://docs.ckan.org/{0}/paster.html#sysadmin-give-sysadmin-rights".format(g.ckan_doc_version) %} {% trans %}

A sysadmin is someone that has full control over a CKAN instance. You can only add CKAN sysadmins via the sysadmin paster diff --git a/ckan/templates/footer.html b/ckan/templates/footer.html index eebd3271286..b53c5e0ac07 100644 --- a/ckan/templates/footer.html +++ b/ckan/templates/footer.html @@ -10,7 +10,7 @@

    {% block footer_links_ckan %} - {% set api_url = 'http://docs.ckan.org/{0}/{1}/api.html'.format(request.environ.CKAN_LANG[:2], g.ckan_doc_version) %} + {% set api_url = 'http://docs.ckan.org/{0}/api.html'.format(g.ckan_doc_version) %}
  • {{ _('CKAN API') }}
  • {{ _('Open Knowledge Foundation') }}
  • diff --git a/ckan/templates/package/search.html b/ckan/templates/package/search.html index 1fb3bad88b2..b2558696e4c 100644 --- a/ckan/templates/package/search.html +++ b/ckan/templates/package/search.html @@ -49,7 +49,7 @@
    {% 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[:2], g.ckan_doc_version)) %} + {% set api_doc_link = h.link_to(_('API Docs'), 'http://docs.ckan.org/{0}/api.html'.format(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 %}