Skip to content

Commit

Permalink
Forgot lang argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Oct 16, 2016
1 parent fe859aa commit 8a5d156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nikola/plugins/misc/taxonomies_classifier.py
Expand Up @@ -152,7 +152,7 @@ def create_hierarchy(cat_hierarchy, parent=None):
node.classification_name = taxonomy.recombine_classification_from_hierarchy(node.classification_path)
hierarchy_lookup[node.classification_name] = node
classifications = natsort.natsorted(result, key=lambda e: e.name, alg=natsort.ns.F | natsort.ns.IC)
taxonomy.sort_classifications(classifications)
taxonomy.sort_classifications(classifications, lang)
return classifications

root_list = create_hierarchy(hierarchy)
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/taxonomies.py
Expand Up @@ -60,7 +60,7 @@ def _generate_classification_overview(self, taxonomy, lang):
classifications = natsort.natsorted([tag for tag, posts in self.site.posts_per_classification[taxonomy.classification_name][lang].items()
if len(posts) >= kw["minimum_post_count"]],
alg=natsort.ns.F | natsort.ns.IC)
taxonomy.sort_classifications(classifications)
taxonomy.sort_classifications(classifications, lang)

# Set up classifications in context
context[taxonomy.metadata_name] = classifications
Expand Down

0 comments on commit 8a5d156

Please sign in to comment.