Re: Evaluating variables in a blocktrans block within templates

2014-12-18 Thread Frankline
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

Re: Evaluating variables in a blocktrans block within templates

2014-12-18 Thread Andreas Kuhne
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

Evaluating variables in a blocktrans block within templates

2014-12-18 Thread Frankline
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