Skip to content
Permalink
Browse files

set lang properly in generic_page_renderer

  • Loading branch information
ralsina committed Sep 23, 2015
1 parent 7e6e973 commit 1e5f4a70117e18bfde9e6a39bfdcefcdd10cbc56
Showing with 1 addition and 0 deletions.
  1. +1 −0 nikola/nikola.py
@@ -1734,6 +1734,7 @@ def scan_posts(self, really=False, ignore_quit=False, quiet=False):

def generic_page_renderer(self, lang, post, filters, context=None):
"""Render post fragments to final HTML pages."""
utils.LocaleBorg().set_locale(lang)
context = context.copy() if context else {}
deps = post.deps(lang) + \
self.template_system.template_deps(post.template_name)

0 comments on commit 1e5f4a7

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