_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:
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
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 %}
3 matches
Mail list logo