﻿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
13568	KeyError raised in template rendering when the number of placeholders differs between singular and plural	deltoide	deltoide	"Here is a simple example to reproduce the bug:

template file: index.html

{{{
{% load i18n %}

{% blocktrans with myextra_field as extra_field and myamount as amount count myyears as years %}
That will cost $ {{ amount }} per year. {{ extra_field }}
{% plural %}
That will cost $ {{ amount }} per {{ years }} years.
{% endblocktrans %}
}}}

views.py:

{{{
from django.http import HttpResponse
from django.template import Context, loader
from django.http import HttpResponse
def index(request):
    t = loader.get_template('index.html')
    c = Context({
          'myamount' : 10,
          'myyears' : 1,
          'myextra_field' : 2,
    })
    return HttpResponse(t.render(c))
}}}
"		closed	Internationalization	dev		fixed			Ready for checkin	1	0	0	0	0	0
