[ckan-changes] [okfn/ckan] 531bf9: [#2199] Translate facets on dataset search page
GitHub
noreply at github.com
Tue Feb 28 14:41:54 UTC 2012
Branch: refs/heads/feature-1821-multilingual-extension
Home: https://github.com/okfn/ckan
Commit: 531bf9a348538c51d941cee9fc744046d393a8b5
https://github.com/okfn/ckan/commit/531bf9a348538c51d941cee9fc744046d393a8b5
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-02-28 (Tue, 28 Feb 2012)
Changed paths:
M ckan/lib/helpers.py
M ckan/templates/facets.html
M ckanext/multilingual/plugin.py
Log Message:
-----------
[#2199] Translate facets on dataset search page
ckanext/multilingual/plugin.py
Add after_search() method that looks up translations of facet items and
puts them in a translations dict in the pylons template context.
ckan/lib/helpers.py:facet_items()
Append a third value to each facet item: its translated name from the
translations dict.
ckan/templates/facets.html:facet_sidebar()
Use the translated names put into the facet items by facet_items().
More information about the ckan-changes
mailing list