﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14126	blocktrans count is parsing incorrectly	Mark Jones	Ramiro Morales	"Context looks like: {'docs_needed': 2, ...  (from the stack trace provided)

{{{
    {% blocktrans count docs_needed as counter %} 
}}}
Generates this error: Caught !KeyError while rendering: u'docs_needed'

{{{
    {% blocktrans count docs_needed|default:2 as counter %} 
}}}
Generates this error:  Caught !KeyError while rendering: u'docs_needed'

{{{
    {% blocktrans count docs_needed|length as counter %}
}}}
Does not give a !KeyError, but produces the wrong result since the length of docs_needed is 1 since it is scalar?

The template contains:
{{{
			{% blocktrans count docs_needed|length as counter %}
				<h3>Waiting on the following document:</h3>
			{% plural %}
				<h3>Waiting on the following {{ counter }} documents:</h3>
			{% endblocktrans %}
}}} 

and the output produced looks like:

{{{
    <h3>Waiting on the following  documents:</h3>
}}}

The documentation @ http://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#blocktrans-template-tag makes it look like a scalar is needed after the word key word '''count''' because it uses '''list|length''' as an example, which appears to be a filter creating a scalar value.


I'm using Django 1.2.1 (not a version you can pick below)"		closed	Translations	1.2		fixed	blocktrans plural		Design decision needed	0	0	0	0	0	0
