﻿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
19667	blocktrans plural to fail on untranslated languages	rgaudin@…	nobody	"Reproduce:
* Pick a language with a different plural system then English. The language must exists in Django core. Arabic for example.
* Set your browser to it.
* Add a plural blocktrans {% blocktrans count nb_users=5 %}{{ nb_users }} user{% plural %}{{ nb_users }} users{% endblocktrans %}
* Don't add translation for it.
* Browse it.

It will fail with TemplateSyntaxError: Caught TypeError while rendering: not all arguments converted during string formatting

I believe what happens is:
* Django finds a translation in django core and consider the language supported.
* Django sets its internal plural mechanism to Arabic.
* Django can't find a matching plural translation in the nonexistent Arabic translation NOR in the default English as the plural system is different.

If this assumption is true, the problem might be in gettext itself.
"	Bug	closed	Internationalization	1.3	Normal	worksforme	i18n locale		Accepted	0	0	0	0	0	0
