[ckan-changes] [okfn/ckan] 73a2b8: [#2217] Translation of content on tag list page

GitHub noreply at github.com
Tue Mar 13 15:34:17 UTC 2012


  Branch: refs/heads/feature-1821-multilingual-extension
  Home:   https://github.com/okfn/ckan
  Commit: 73a2b884d423ba584e8c9a985ff6d3380f0690ba
      https://github.com/okfn/ckan/commit/73a2b884d423ba584e8c9a985ff6d3380f0690ba
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-03-13 (Tue, 13 Mar 2012)

  Changed paths:
    M ckan/controllers/tag.py
  M ckan/lib/alphabet_paginate.py
  M ckan/lib/dictization/model_dictize.py
  M ckan/plugins/interfaces.py
  M ckan/templates/_util.html
  M ckan/templates/tag/index.html
  M ckan/tests/lib/test_dictization.py
  M ckanext/multilingual/plugin.py
  M ckanext/multilingual/tests/test_multilingual_plugin.py
  M setup.py

  Log Message:
  -----------
  [#2217] Translation of content on tag list page

ckan/plugins/interfaces.py
Add new ITagController plugin interface.

ckanext/multilingual/plugin.py
Add MultilingualTag plugin using the new ITagController interface.

Add tests for the new plugin.

ckan/controllers/tag.py
Put for_view: True in context and all_fields: True in data_dict when
calling tag_list()

ckan/lib/alphabet_paginate.py
Handle paginating lists of dicts.

ckan/lib/dictization/model_dictize.py:tag_dictize()
1. Add 'display_name' field to tag dicts. This is a hack, display_name
or title should be added to tag objects at model level.
2. If for_view in context call before_view() method of each
ITagController extension.

Some tweaks to the tag index template, and update some tests.


  Commit: 0c0c813b50d925637613bef3766cd2a8263d149e
      https://github.com/okfn/ckan/commit/0c0c813b50d925637613bef3766cd2a8263d149e
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-03-13 (Tue, 13 Mar 2012)

  Changed paths:
    M ckanext/multilingual/plugin.py
  M ckanext/multilingual/tests/test_multilingual_plugin.py

  Log Message:
  -----------
  Merge branch 'feature-1821-multilingual-extension' of github.com:okfn/ckan into feature-1821-multilingual-extension

Conflicts:
	ckanext/multilingual/tests/test_multilingual_plugin.py


Compare: https://github.com/okfn/ckan/compare/513d95d...0c0c813


More information about the ckan-changes mailing list