Nicely answered.
Thanks Andreas.
On Thu, Dec 18, 2014 at 3:27 PM, Andreas Kuhne
wrote:
>
> Hi Frankline,
>
> You can only reference variables in the templates directly with the
> blocktrans tag. See
> https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#blocktrans-template-tag.
> So yo
Hi Frankline,
You can only reference variables in the templates directly with the
blocktrans tag. See
https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#blocktrans-template-tag.
So you have to use the "with" statement on blocktrans to access properties
of a class.
Regards,
Andréas
2
Hi all,
I recently had a weird problem in my django templates regarding evaluating
variables within a blocktrans, but I finally figured it out. I guess I just
want to know the reason why it worked, an explanation sort of.
THIS DID NOT WORK
{% blocktrans %}Approve all {{ objects.count }} users{% e
3 matches
Mail list logo