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 %}

Waiting on the following document:

{% plural %}

Waiting on the following {{ counter }} documents:

{% endblocktrans %} }}} and the output produced looks like: {{{

Waiting on the following documents:

}}} 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