#4539: blocktrans 'losing' variable content
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: mtredinnick
Status: new | Component: Internationalization
Version: SVN | Keywords: blocktrans
Stage: Unreviewed | Has_patch: 0
---------------------------------------+------------------------------------
Look at the following template:
{{{
{% load i18n %}
{% for spell in spells %}
{% blocktrans with spell.spell as spell and spell.wave as wave and
spell.target as target and spell.caster as caster and spell.count as
count%}
'{{spell}}', '{{wave}}', '{{target}}', '{{caster}}', '{{count}}'
{% endblocktrans %}
{% endfor %}
}}}
Imagine corresponding correct input list of dictionaries (spells). Output
looks like this:
{{{'spell', '', '', 'caster', 'count'}}}
So, variables ''target'' and ''wave'' gets lost. This behaviour heavily
depends on other variables, e.g. blocktrans with only ''wave'' and
''target'' works fine.
Behaviour could be seen in actual SVN version (rev. 5465). Simplest view
and template are attached. Feel free to ask any questions, I'll be
monitoring this ticket.
--
Ticket URL: <http://code.djangoproject.com/ticket/4539>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---