Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#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().
- Loading branch information
Sean Hammond
committed
Feb 28, 2012
1 parent
9285e3c
commit 531bf9a
Showing
3 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters