Skip to content

Commit

Permalink
set lang properly in generic_page_renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Sep 23, 2015
1 parent 7e6e973 commit 1e5f4a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nikola/nikola.py
Expand Up @@ -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)
Expand Down

0 comments on commit 1e5f4a7

Please sign in to comment.