summaryrefslogtreecommitdiff
path: root/examples/basic/translate.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/translate.py')
-rw-r--r--examples/basic/translate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic/translate.py b/examples/basic/translate.py
index 66a5f9c..71547f4 100644
--- a/examples/basic/translate.py
+++ b/examples/basic/translate.py
@@ -1,8 +1,8 @@
from __future__ import print_function
-from jinja import Environment
+from jinja2 import Environment
-env = Environment(extensions=["jinja.ext.i18n"])
+env = Environment(extensions=["jinja2.ext.i18n"])
env.globals["gettext"] = {"Hello %(user)s!": "Hallo %(user)s!"}.__getitem__
env.globals["ngettext"] = lambda s, p, n: {
"%(count)s user": "%(count)d Benutzer",