summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2008-04-20 13:27:49 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2008-04-20 13:27:49 +0200
commit0553093657926ceffe3055210acf3198a9d1ed12 (patch)
tree7503cae7c6fc0c045ebd6e35c88957d7907f1ba6 /examples
parentf59bac20dff640f8b4156b1a4e4331ea32cbd9af (diff)
downloadjinja2-0553093657926ceffe3055210acf3198a9d1ed12.tar.gz
refactored extensions a bit
--HG-- branch : trunk
Diffstat (limited to 'examples')
-rw-r--r--examples/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/translate.py b/examples/translate.py
index 0169c88..3358765 100644
--- a/examples/translate.py
+++ b/examples/translate.py
@@ -1,6 +1,6 @@
from jinja2 import Environment
-print Environment(parser_extensions=['jinja2.i18n.trans']).from_string("""\
+print Environment(extensions=['jinja2.i18n.TransExtension']).from_string("""\
{% trans %}Hello {{ user }}!{% endtrans %}
{% trans count=users|count %}{{ count }} user{% pluralize %}{{ count }} users{% endtrans %}
""").render(user="someone")