Fix translation feature. Add translation support to the notmyidea theme.

This commit is contained in:
Alexis Metaireau 2011-01-05 16:22:52 +01:00
commit 79576f25b6
9 changed files with 33 additions and 40 deletions

View file

@ -159,6 +159,7 @@ def process_translations(content_list):
Also, for each content_list item, it
sets attribute 'translations'
"""
content_list.sort(key=attrgetter('slug'))
grouped_by_slugs = groupby(content_list, attrgetter('slug'))
index = []
translations = []