> Hi there mates,
>
> I've created a new site, and all is running ok. Last step in my
> development plan was to add support for internacionalization (by now,
> only 2 languages)
>
> I just added blocktrans in my templates in several places, and i'm
> getting allways the same exception
>
> Invalid block tag: 'blocktrans', expected 'endblock' or 'endblock
> title'
> 1 {% extends 'public.html' %}
> 2
> 3 {% block title %}
> 4 {% blocktrans %}Page title {% endblocktrans %}
> 5 {% endblock %}
>
> ...
>
> Python and django versions:
>> python --version
> Python 2.6.5
>> django-admin.py --version
> 1.2.3
>
> Any clue about what's happening?
"To give your template access to these tags, put {% load i18n %}
toward the top of your template."
--
Łukasz Rekucki
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment