On 27 November 2010 14:12, Vyrphan <vyrp...@gmail.com> wrote: > 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?
http://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#specifying-translation-strings-in-template-code "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-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.