'blocktrans' doesn't allow other block tags (seen u'plural') inside it

2009-02-05 Thread Tipan
_points_value as user_points_value_t %}That's {{ user_points_value_t}} entry.{% plural %}That's {{ user_points_value_t}} entries.{% endblocktrans %} Throws a template syntax error: 'blocktrans' doesn't allow other block tags (seen u'plural') inside it Exception Value: &#

Re: 'blocktrans' doesn't allow other block tags (seen u'plural') inside it

2009-02-05 Thread Arien
late has: > {% blocktrans with user_points_value as user_points_value_t %}That's > {{ user_points_value_t}} entry.{% plural %}That's > {{ user_points_value_t}} entries.{% endblocktrans %} > > Throws a template syntax error: > 'blocktrans' doesn't allow other block tags (se

Re: 'blocktrans' doesn't allow other block tags (seen u'plural') inside it

2009-02-05 Thread Tipan
Thanks Arien. It's a subtle difference but clearly I'd read and not understood. Duh! Looks obvious now. Much appreciated.Tim > > You want to use "count" instead of "with" in the blocktrans tag: > >   >>> from django.template import Context, Template >   >>> t = Template(""" >   ... {% load i18n %}