Permalink
Browse files

Merge pull request #13 from concentricsky/8bdb9fc460c5294fc8922c05b6c…

…35455a77c60e3

Fixed compatibility error when the jingo2.ext.i18n extension is not loaded.
  • Loading branch information...
2 parents b4ecca1 + 8bdb9fc commit 474d7de291ad95ff05509aac5df86ae01836a0a5 @davedash davedash committed Oct 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 jingo/__init__.py
View
@@ -59,7 +59,8 @@ def get_env():
e = Environment(**opts)
# Install null translations since gettext isn't always loaded up during
# testing.
- e.install_null_translations()
+ if 'jinja2.ext.i18n' in e.extensions:
+ e.install_null_translations()
return e

0 comments on commit 474d7de

Please sign in to comment.