[ckan-changes] [okfn/ckan] f1d68c: Fix bug in translating lists in multilingual plugi...

GitHub noreply at github.com
Wed May 30 11:32:11 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: f1d68c3d2d4d25a0c0f8a89a68940643fc19b156
      https://github.com/okfn/ckan/commit/f1d68c3d2d4d25a0c0f8a89a68940643fc19b156
  Author: John Glover <j at johnglover.net>
  Date:   2012-05-30 (Wed, 30 May 2012)

  Changed paths:
    M ckanext/multilingual/plugin.py

  Log Message:
  -----------
  Fix bug in translating lists in multilingual plugin.

Get translations of individual items in a list
instead of looking for a translation of the entire
list object.

Also use 'in' to check for dict keys instead of
the deprecated '.has_key()'.





More information about the ckan-changes mailing list