Yes, sorry. Now I see. {% blocktrans with value|filter as myvar %} This will have {{ myvar }} inside. {% endblocktrans %} That makes sense, definitly.
Thanks a lot! Katja Malcolm Tredinnick schrieb: > On Fri, 2007-09-07 at 00:07 -0700, ksuess wrote: >> http://code.djangoproject.com/ticket/5073 >> Isn't it a typical use case that attributes of variables are used in >> templates? >> If this is not supported a view has to call a template like this >> return render_to_response('polls/detail.html', {'object': p, >> 'question': p.question,}) >> which is not very nice >> What do you think? > > As mentioned in the ticket resolution, you need to alias those lookups. > The reason is that things like variable lookups need to be typed in > exactly, without any change, by anybody translating that string. That is > quite a burden on the translators and very error prone. > > So we ask the template author to choose a single word alias instead of > the long lookup form. You don't have to do it in the view, you do it as > part of the blocktrans tag, as mentioned in the docs (referenced in the > ticket). > > Regards, > Malcolm > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---