Skip to content
Permalink
Browse files

Forgot lang argument.

  • Loading branch information
felixfontein committed Oct 16, 2016
1 parent fe859aa commit 8a5d156c250f18c7f80a485443b3ada0d3d1e9d4
Showing with 2 additions and 2 deletions.
  1. +1 −1 nikola/plugins/misc/taxonomies_classifier.py
  2. +1 −1 nikola/plugins/task/taxonomies.py
@@ -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)
@@ -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

0 comments on commit 8a5d156

Please sign in to comment.
You can’t perform that action at this time.