Commits

Christian Specht committed ae12b56

set locale to English once before build (pre_build hook)

source: https://groups.google.com/d/msg/blogofile-discuss/1qTU4nkBUuU/yj33kxCnd4YJ

  • Participants
  • Parent commits 5d8d2c9

Comments (0)

Files changed (3)

 filters.markdown.extensions.fenced_code.enabled = True
 filters.markdown.extensions.headerid.enabled = True
 filters.markdown.extensions.tables.enabled = True
+
+## set locale to English before build
+def pre_build():
+    import locale
+    locale.setlocale(locale.LC_ALL, 'english')

src/_templates/blog/post.mako

            category_links.append(category.name)
        else:
            category_links.append("<a href='%s'>%s</a>" % (category.path, category.name))
- 
-import locale
-locale.setlocale(locale.LC_ALL, 'english')
 %>
 
 <article>

src/index.html.mako

           </div>
 
           <h3>Recent Posts:</h3>
-<%
-import locale
-locale.setlocale(locale.LC_ALL, 'english')
-%>
 
           <div class="row-fluid">
 % for post in bf.config.blog.posts[0:3]: